Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #ifndef SDL_JOYSTICK_HIDAPI_H
24 #define SDL_JOYSTICK_HIDAPI_H
30 #include "../../hidapi/hidapi/hidapi.h"
31 #include "../usb_ids.h"
34 #define SDL_JOYSTICK_HIDAPI_PS4
35 #define SDL_JOYSTICK_HIDAPI_SWITCH
36 #define SDL_JOYSTICK_HIDAPI_XBOX360
37 #define SDL_JOYSTICK_HIDAPI_XBOXONE
38 #define SDL_JOYSTICK_HIDAPI_GAMECUBE
42 #undef SDL_JOYSTICK_HIDAPI_XBOXONE
44 #undef SDL_JOYSTICK_HIDAPI_XBOX360
49 #undef SDL_JOYSTICK_HIDAPI_XBOXONE
52 #if defined(__IPHONEOS__) || defined(__TVOS__) || defined(__ANDROID__)
54 #define SDL_JOYSTICK_HIDAPI_STEAM
58 #define USB_PACKET_LENGTH 64
107 } SDL_HIDAPI_DeviceDriver;
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverPS4
SDL_bool(* UpdateDevice)(SDL_HIDAPI_Device *device)
struct _SDL_HIDAPI_DeviceDriver * driver
void(* FreeDevice)(SDL_HIDAPI_Device *device)
SDL_bool HIDAPI_JoystickConnected(SDL_HIDAPI_Device *device, SDL_JoystickID *pJoystickID)
SDL_bool HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version, const char *name)
int(* RumbleJoystick)(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble)
struct _SDL_HIDAPI_Device * next
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSwitch
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360
SDL_atomic_t rumble_pending
SDL_JoystickID * joysticks
GLuint const GLchar * name
int(* GetDevicePlayerIndex)(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id)
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXboxOne
void HIDAPI_JoystickDisconnected(SDL_HIDAPI_Device *device, SDL_JoystickID joystickID)
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSteam
A type representing an atomic integer value. It is a struct so people don't accidentally use numeric ...
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverGameCube
void HIDAPI_UpdateDevices(void)
SDL_bool(* IsSupportedDevice)(const char *name, SDL_GameControllerType type, Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number, int interface_class, int interface_subclass, int interface_protocol)
struct hid_device_ hid_device
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
void(* SetDevicePlayerIndex)(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index)
static SDL_AudioDeviceID device
GLuint GLuint GLsizei GLenum type
SDL_bool(* InitDevice)(SDL_HIDAPI_Device *device)
void(* CloseJoystick)(SDL_HIDAPI_Device *device, SDL_Joystick *joystick)
SDL_bool(* OpenJoystick)(SDL_HIDAPI_Device *device, SDL_Joystick *joystick)
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360W