Go to the documentation of this file.
21 #include "../SDL_internal.h"
23 #ifndef SDL_sysjoystick_h_
24 #define SDL_sysjoystick_h_
32 typedef struct _SDL_JoystickAxisInfo
82 #define SDL_HARDWARE_BUS_USB 0x03
83 #define SDL_HARDWARE_BUS_BLUETOOTH 0x05
86 #define MAKE_VIDPID(VID, PID) (((Uint32)(VID))<<16|(PID))
88 typedef struct _SDL_JoystickDriver
103 const char *(*GetDeviceName)(
int device_index);
106 int (*GetDevicePlayerIndex)(
int device_index);
109 void (*SetDevicePlayerIndex)(
int device_index,
int player_index);
122 int (*Open)(SDL_Joystick * joystick,
int device_index);
125 int (*Rumble)(SDL_Joystick * joystick,
Uint16 low_frequency_rumble,
Uint16 high_frequency_rumble);
132 void (*Update)(SDL_Joystick * joystick);
135 void (*Close)(SDL_Joystick * joystick);
143 #define SDL_MAX_RUMBLE_DURATION_MS 0xFFFF
struct joystick_hwdata * hwdata
SDL_JoystickDriver SDL_BSD_JoystickDriver
SDL_JoystickAxisInfo * axes
SDL_JoystickPowerLevel epowerlevel
struct _SDL_Joystick::balldelta * balls
SDL_bool has_initial_value
SDL_bool force_recentering
SDL_JoystickDriver SDL_HAIKU_JoystickDriver
SDL_JoystickDriver SDL_DARWIN_JoystickDriver
SDL_bool is_game_controller
Uint16 low_frequency_rumble
SDL_JoystickDriver SDL_DUMMY_JoystickDriver
SDL_JoystickDriver SDL_WINDOWS_JoystickDriver
SDL_JoystickID instance_id
SDL_JoystickDriver SDL_IOS_JoystickDriver
SDL_bool sent_initial_value
SDL_bool delayed_guide_button
struct _SDL_JoystickDriver * driver
SDL_JoystickDriver SDL_LINUX_JoystickDriver
SDL_bool has_second_value
struct _SDL_Joystick * next
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
SDL_JoystickDriver SDL_EMSCRIPTEN_JoystickDriver
SDL_JoystickDriver SDL_HIDAPI_JoystickDriver
SDL_JoystickDriver SDL_ANDROID_JoystickDriver
Uint16 high_frequency_rumble