Go to the documentation of this file.
39 #ifndef SDL_joystick_h_
40 #define SDL_joystick_h_
311 #define SDL_JOYSTICK_AXIS_MAX 32767
312 #define SDL_JOYSTICK_AXIS_MIN -32768
339 #define SDL_HAT_CENTERED 0x00
340 #define SDL_HAT_UP 0x01
341 #define SDL_HAT_RIGHT 0x02
342 #define SDL_HAT_DOWN 0x04
343 #define SDL_HAT_LEFT 0x08
344 #define SDL_HAT_RIGHTUP (SDL_HAT_RIGHT|SDL_HAT_UP)
345 #define SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN)
346 #define SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP)
347 #define SDL_HAT_LEFTDOWN (SDL_HAT_LEFT|SDL_HAT_DOWN)
377 int ball,
int *dx,
int *dy);
SDL_JoystickGUID SDL_JoystickGetDeviceGUID(int device_index)
@ SDL_JOYSTICK_TYPE_GAMECONTROLLER
void SDL_LockJoysticks(void)
void SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, char *pszGUID, int cbGUID)
int SDL_JoystickNumBalls(SDL_Joystick *joystick)
int SDL_JoystickNumHats(SDL_Joystick *joystick)
int SDL_JoystickEventState(int state)
int SDL_JoystickNumButtons(SDL_Joystick *joystick)
SDL_JoystickGUID SDL_JoystickGetGUID(SDL_Joystick *joystick)
SDL_bool SDL_JoystickGetAxisInitialState(SDL_Joystick *joystick, int axis, Sint16 *state)
@ SDL_JOYSTICK_TYPE_GUITAR
Sint16 SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis)
@ SDL_JOYSTICK_POWER_EMPTY
int SDL_JoystickGetPlayerIndex(SDL_Joystick *joystick)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
@ SDL_JOYSTICK_TYPE_DANCE_PAD
SDL_Joystick * SDL_JoystickFromInstanceID(SDL_JoystickID instance_id)
SDL_JoystickID SDL_JoystickGetDeviceInstanceID(int device_index)
Uint16 SDL_JoystickGetDeviceProduct(int device_index)
int SDL_JoystickGetDevicePlayerIndex(int device_index)
@ SDL_JOYSTICK_TYPE_DRUM_KIT
@ SDL_JOYSTICK_POWER_MEDIUM
SDL_bool SDL_JoystickGetAttached(SDL_Joystick *joystick)
@ SDL_JOYSTICK_POWER_UNKNOWN
@ SDL_JOYSTICK_TYPE_FLIGHT_STICK
@ SDL_JOYSTICK_POWER_WIRED
@ SDL_JOYSTICK_TYPE_THROTTLE
const char * SDL_JoystickNameForIndex(int device_index)
Uint16 SDL_JoystickGetVendor(SDL_Joystick *joystick)
Uint16 SDL_JoystickGetDeviceProductVersion(int device_index)
SDL_JoystickGUID SDL_JoystickGetGUIDFromString(const char *pchGUID)
SDL_JoystickType SDL_JoystickGetDeviceType(int device_index)
int SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy)
SDL_JoystickID SDL_JoystickInstanceID(SDL_Joystick *joystick)
Uint16 SDL_JoystickGetDeviceVendor(int device_index)
void SDL_JoystickUpdate(void)
int SDL_NumJoysticks(void)
void SDL_UnlockJoysticks(void)
Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat)
Uint16 SDL_JoystickGetProduct(SDL_Joystick *joystick)
Uint16 SDL_JoystickGetProductVersion(SDL_Joystick *joystick)
SDL_Joystick * SDL_JoystickFromPlayerIndex(int player_index)
void SDL_JoystickSetPlayerIndex(SDL_Joystick *joystick, int player_index)
SDL_Joystick * SDL_JoystickOpen(int device_index)
@ SDL_JOYSTICK_POWER_FULL
int SDL_JoystickNumAxes(SDL_Joystick *joystick)
@ SDL_JOYSTICK_TYPE_ARCADE_PAD
SDL_JoystickType SDL_JoystickGetType(SDL_Joystick *joystick)
const char * SDL_JoystickName(SDL_Joystick *joystick)
void SDL_JoystickClose(SDL_Joystick *joystick)
Uint8 SDL_JoystickGetButton(SDL_Joystick *joystick, int button)
@ SDL_JOYSTICK_TYPE_WHEEL
@ SDL_JOYSTICK_TYPE_UNKNOWN
int SDL_JoystickRumble(SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms)
SDL_JoystickPowerLevel SDL_JoystickCurrentPowerLevel(SDL_Joystick *joystick)
@ SDL_JOYSTICK_TYPE_ARCADE_STICK