- bool GetState(int joystickID, int buttonID);
- int GetButtonID(void);
- int GetJoystickID(void);
+ // 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];
+ static bool button[8][256];
+ static uint8_t hat[8][32];
+ static int32_t axis[8][32];