]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/gamepad.h
Added logging to Gamepad::CheckButtonPressed().
[virtualjaguar] / src / gui / gamepad.h
index 43779c150464c4c19f2c92cf87d8dac07adfd48f..902dae128b2694ec888c83355a6ccd6948039046 100644 (file)
@@ -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,15 +38,18 @@ 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);
                static int GetJoystickID(void);
                static void Update(void);
+               static void DumpJoystickStatesToLog(void);
 
                // 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];