NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_game_key.hpp
1
#pragma once
2
#include <types.h>
3
4
class
Remocon
{
5
public
:
6
/// @unofficial
7
enum
EXTENSION_TYPE_e
{
8
EXTENSION_NONE
= 0,
///< No Wii remote extension is connected.
9
EXTENSION_NUNCHUK
,
///< The nunchuck controller is connected.
10
EXTENSION_UNKNOWN
= 3,
///< It has not been checked yet whether an extension is connected.
11
};
12
13
virtual
~Remocon
();
14
15
int
mIndex;
16
EXTENSION_TYPE_e mAttachedExtension;
17
char
mPad1[8];
18
int
mDownButtons
;
///< The buttons currently pressed down.
19
char
mPad2[4];
20
int
mTriggeredButtons
;
///< The buttons newly pressed down.
21
char
mPad3[0x6c];
22
bool
mIsShaking;
23
};
24
25
class
dGameKeyCore_c
:
public
Remocon
{
26
public
:
27
u32 getAccVerticalAngleX();
28
};
29
30
class
dGameKey_c
{
31
public
:
32
virtual
~dGameKey_c
();
33
34
dGameKeyCore_c
*mRemocon[4];
35
36
short
getAccVerticalAngleX(
int
plNo) {
37
return
mRemocon[plNo]->getAccVerticalAngleX() / 65536;
38
}
39
40
static
dGameKey_c
*m_instance;
41
};
Remocon
Definition
d_game_key.hpp:4
Remocon::mTriggeredButtons
int mTriggeredButtons
The buttons newly pressed down.
Definition
d_game_key.hpp:20
Remocon::EXTENSION_TYPE_e
EXTENSION_TYPE_e
Definition
d_game_key.hpp:7
Remocon::EXTENSION_NONE
@ EXTENSION_NONE
No Wii remote extension is connected.
Definition
d_game_key.hpp:8
Remocon::EXTENSION_NUNCHUK
@ EXTENSION_NUNCHUK
The nunchuck controller is connected.
Definition
d_game_key.hpp:9
Remocon::EXTENSION_UNKNOWN
@ EXTENSION_UNKNOWN
It has not been checked yet whether an extension is connected.
Definition
d_game_key.hpp:10
Remocon::mDownButtons
int mDownButtons
The buttons currently pressed down.
Definition
d_game_key.hpp:18
dGameKeyCore_c
Definition
d_game_key.hpp:25
dGameKey_c
Definition
d_game_key.hpp:30
include
game
bases
d_game_key.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2