21 #include "../SDL_internal.h" 23 #ifndef SDL_sysjoystick_h_ 24 #define SDL_sysjoystick_h_ 32 typedef struct _SDL_JoystickAxisInfo
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)) 92 typedef struct _SDL_JoystickDriver
107 const char *(*GetDeviceName)(
int device_index);
110 int (*GetDevicePlayerIndex)(
int device_index);
123 int (*Open)(SDL_Joystick * joystick,
int device_index);
126 int (*Rumble)(SDL_Joystick * joystick,
Uint16 low_frequency_rumble,
Uint16 high_frequency_rumble,
Uint32 duration_ms);
133 void (*Update)(SDL_Joystick * joystick);
136 void (*Close)(SDL_Joystick * joystick);
SDL_JoystickID instance_id
struct _SDL_JoystickDriver * driver
SDL_bool delayed_guide_button
SDL_JoystickDriver SDL_DUMMY_JoystickDriver
SDL_JoystickAxisInfo * axes
SDL_bool has_initial_value
SDL_JoystickDriver SDL_DARWIN_JoystickDriver
SDL_bool is_game_controller
SDL_JoystickDriver SDL_WINDOWS_JoystickDriver
SDL_bool force_recentering
struct joystick_hwdata * hwdata
struct _SDL_Joystick * next
SDL_JoystickDriver SDL_LINUX_JoystickDriver
SDL_JoystickPowerLevel epowerlevel
SDL_JoystickDriver SDL_HIDAPI_JoystickDriver
SDL_JoystickDriver SDL_IOS_JoystickDriver
SDL_JoystickDriver SDL_ANDROID_JoystickDriver
SDL_JoystickDriver SDL_HAIKU_JoystickDriver
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_bool sent_initial_value
SDL_JoystickDriver SDL_BSD_JoystickDriver
SDL_JoystickDriver SDL_EMSCRIPTEN_JoystickDriver