X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fgamepad.h;h=73aaef8261554f3566df3f29b8b804efeeb07628;hb=2e7108fbe3b1a8a42f155069e4648d43fda57789;hp=43779c150464c4c19f2c92cf87d8dac07adfd48f;hpb=9d399cea8466c7e4a6a1336dafdc830c4680d977;p=virtualjaguar diff --git a/src/gui/gamepad.h b/src/gui/gamepad.h index 43779c1..73aaef8 100644 --- a/src/gui/gamepad.h +++ b/src/gui/gamepad.h @@ -30,7 +30,7 @@ class Gamepad { // really should make all methods and members be static so that we can -// call this stuff without instantiating one. :-) +// call this stuff without instantiating one. :-) [DONE] public: Gamepad(); ~Gamepad(); @@ -38,6 +38,7 @@ class Gamepad // Class methods... static void AllocateJoysticks(void); static void DeallocateJoysticks(void); + static const char * GetJoystickName(int joystickID); static bool GetState(int joystickID, int buttonID); static int CheckButtonPressed(void); static int GetButtonID(void); @@ -47,6 +48,7 @@ class Gamepad // Support up to 8 gamepads static int numJoysticks; static SDL_Joystick * pad[8]; + static char padName[8][128]; static int numButtons[8]; static int numAxes[8]; static int numHats[8];