Go to the documentation of this file.
21 #include "../SDL_internal.h"
23 #ifndef SDL_sysjoystick_h_
24 #define SDL_sysjoystick_h_
39 } SDL_JoystickAxisInfo;
49 SDL_JoystickAxisInfo *
axes;
77 #if defined(__IPHONEOS__) || defined(__ANDROID__)
78 #define HAVE_STEAMCONTROLLERS
79 #define USE_STEAMCONTROLLER_HIDAPI
80 #elif defined(__LINUX__)
81 #define HAVE_STEAMCONTROLLERS
82 #define USE_STEAMCONTROLLER_LINUX
86 #define SDL_HARDWARE_BUS_USB 0x03
87 #define SDL_HARDWARE_BUS_BLUETOOTH 0x05
90 #define MAKE_VIDPID(VID, PID) (((Uint32)(VID))<<16|(PID))
107 const char *(*GetDeviceName)(
int device_index);
123 int (*
Open)(SDL_Joystick * joystick,
int device_index);
141 } SDL_JoystickDriver;
SDL_bool has_initial_value
int(* Rumble)(SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms)
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_JoystickDriver SDL_DARWIN_JoystickDriver
SDL_bool is_game_controller
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)
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