39 #ifndef _SDL_joystick_h 40 #define _SDL_joystick_h 207 #define SDL_HAT_CENTERED 0x00 208 #define SDL_HAT_UP 0x01 209 #define SDL_HAT_RIGHT 0x02 210 #define SDL_HAT_DOWN 0x04 211 #define SDL_HAT_LEFT 0x08 212 #define SDL_HAT_RIGHTUP (SDL_HAT_RIGHT|SDL_HAT_UP) 213 #define SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN) 214 #define SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP) 215 #define SDL_HAT_LEFTDOWN (SDL_HAT_LEFT|SDL_HAT_DOWN) 245 int ball,
int *dx,
int *dy);
SDL_JoystickGUID SDL_JoystickGetGUIDFromString(const char *pchGUID)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void SDL_JoystickClose(SDL_Joystick *joystick)
SDL_Joystick * SDL_JoystickFromInstanceID(SDL_JoystickID joyid)
const char * SDL_JoystickNameForIndex(int device_index)
SDL_JoystickGUID SDL_JoystickGetGUID(SDL_Joystick *joystick)
SDL_JoystickPowerLevel SDL_JoystickCurrentPowerLevel(SDL_Joystick *joystick)
SDL_Joystick * SDL_JoystickOpen(int device_index)
uint8_t Uint8
An unsigned 8-bit integer type.
int SDL_JoystickEventState(int state)
int32_t Sint32
A signed 32-bit integer type.
int SDL_JoystickNumHats(SDL_Joystick *joystick)
SDL_bool SDL_JoystickGetAttached(SDL_Joystick *joystick)
const char * SDL_JoystickName(SDL_Joystick *joystick)
Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat)
void SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, char *pszGUID, int cbGUID)
Uint8 SDL_JoystickGetButton(SDL_Joystick *joystick, int button)
SDL_JoystickGUID SDL_JoystickGetDeviceGUID(int device_index)
int SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy)
int SDL_JoystickNumAxes(SDL_Joystick *joystick)
int SDL_NumJoysticks(void)
void SDL_JoystickUpdate(void)
int SDL_JoystickNumBalls(SDL_Joystick *joystick)
int SDL_JoystickNumButtons(SDL_Joystick *joystick)
Sint16 SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis)
SDL_JoystickID SDL_JoystickInstanceID(SDL_Joystick *joystick)
int16_t Sint16
A signed 16-bit integer type.