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
4class Remocon {
5public:
6 /// @unofficial
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
25class dGameKeyCore_c : public Remocon {
26public:
27 u32 getAccVerticalAngleX();
28};
29
31public:
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};
int mTriggeredButtons
The buttons newly pressed down.
@ EXTENSION_NONE
No Wii remote extension is connected.
Definition d_game_key.hpp:8
@ EXTENSION_NUNCHUK
The nunchuck controller is connected.
Definition d_game_key.hpp:9
@ EXTENSION_UNKNOWN
It has not been checked yet whether an extension is connected.
int mDownButtons
The buttons currently pressed down.