Emulated Wiimote: Added Classic Controller analog gamepad support, and added its keyboard configuration to the GUI

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2400 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2009-02-24 02:40:17 +00:00
parent f23b24ae76
commit b739dd3817
13 changed files with 747 additions and 223 deletions

View File

@ -191,6 +191,15 @@ struct PadNunchuck
int L, R, U, D;
int Shake;
};
struct PadClassicController
{
int A, B, X, Y;
int P, M, H;
int Tl, Zl, Zr, Tr;
int Dl, Du, Dr, Dd;
int Ll, Lu, Lr, Ld;
int Rl, Ru, Rr, Rd;
};
struct CONTROLLER_STATE_NEW // GC PAD INFO/STATE
{
PadAxis Axis; // 6 Axes (Main, Sub, Triggers)
@ -201,6 +210,7 @@ struct CONTROLLER_MAPPING_NEW // GC PAD MAPPING
PadAxis Axis; // (See above)
PadWiimote Wm;
PadNunchuck Nc;
PadClassicController Cc;
bool enabled; // Pad attached?
int DeadZoneL; // Analog 1 Deadzone
int DeadZoneR; // Analog 2 Deadzone