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:
bztdlinux
2009-12-09 16:33:32 +00:00
parent 0fa1f968c7
commit 828bf052f0
3 changed files with 48 additions and 30 deletions

View File

@ -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