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