mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 02:09:06 +00:00
Keyboard Wiimote emulation cleanup, phase one
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4665 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
0fa1f968c7
commit
828bf052f0
3 changed files with 48 additions and 30 deletions
|
@ -171,6 +171,15 @@ struct SIR
|
|||
int Distance;
|
||||
};
|
||||
|
||||
class ShakeData
|
||||
{
|
||||
public:
|
||||
ShakeData();
|
||||
int Shake;
|
||||
int Roll, Pitch;
|
||||
};
|
||||
|
||||
|
||||
// Keyboard input
|
||||
struct KeyboardWiimote
|
||||
{
|
||||
|
@ -190,6 +199,7 @@ struct KeyboardWiimote
|
|||
|
||||
// Raw X and Y coordinate and processed X and Y coordinates
|
||||
SIR IR;
|
||||
ShakeData shakeData;
|
||||
};
|
||||
extern KeyboardWiimote g_Wiimote_kbd;
|
||||
struct KeyboardNunchuck
|
||||
|
@ -207,6 +217,7 @@ struct KeyboardNunchuck
|
|||
SHAKE,
|
||||
LAST_CONSTANT
|
||||
};
|
||||
ShakeData shakeData;
|
||||
};
|
||||
extern KeyboardNunchuck g_NunchuckExt;
|
||||
struct KeyboardClassicController
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue