Go to the documentation of this file.
21 #include "../SDL_internal.h"
23 #ifndef SDL_sysjoystick_h_
24 #define SDL_sysjoystick_h_
40 } SDL_JoystickAxisInfo;
49 SDL_JoystickAxisInfo *
axes;
82 #define SDL_HARDWARE_BUS_USB 0x03
83 #define SDL_HARDWARE_BUS_BLUETOOTH 0x05
86 #define MAKE_VIDPID(VID, PID) (((Uint32)(VID))<<16|(PID))
103 const char *(*GetDeviceName)(
int device_index);
122 int (*
Open)(SDL_Joystick * joystick,
int device_index);
140 } SDL_JoystickDriver;
143 #define SDL_MAX_RUMBLE_DURATION_MS 0xFFFF
SDL_bool has_initial_value
struct joystick_hwdata * hwdata
SDL_bool sent_initial_value
SDL_JoystickGUID(* GetDeviceGUID)(int device_index)
SDL_JoystickDriver SDL_BSD_JoystickDriver
SDL_JoystickAxisInfo * axes
SDL_JoystickPowerLevel epowerlevel
struct _SDL_Joystick::balldelta * balls
void(* Close)(SDL_Joystick *joystick)
SDL_bool force_recentering
int(* GetDevicePlayerIndex)(int device_index)
SDL_JoystickDriver SDL_HAIKU_JoystickDriver
SDL_bool has_second_value
SDL_JoystickDriver SDL_DARWIN_JoystickDriver
SDL_bool is_game_controller
Uint16 low_frequency_rumble
SDL_JoystickDriver SDL_DUMMY_JoystickDriver
SDL_JoystickDriver SDL_WINDOWS_JoystickDriver
int(* Open)(SDL_Joystick *joystick, int device_index)
SDL_JoystickID instance_id
void(* Update)(SDL_Joystick *joystick)
SDL_JoystickDriver SDL_IOS_JoystickDriver
SDL_JoystickID(* GetDeviceInstanceID)(int device_index)
void(* SetDevicePlayerIndex)(int device_index, int player_index)
int(* Rumble)(SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble)
SDL_bool delayed_guide_button
struct _SDL_JoystickDriver * driver
SDL_JoystickDriver SDL_LINUX_JoystickDriver
struct _SDL_Joystick * next
const SDL_PRINTF_FORMAT_STRING char int const SDL_PRINTF_FORMAT_STRING char int const SDL_PRINTF_FORMAT_STRING char int const SDL_PRINTF_FORMAT_STRING char const char const SDL_SCANF_FORMAT_STRING 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