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
61 struct _SDL_HIDAPI_DeviceDriver;
63 typedef struct _SDL_HIDAPI_Device
78 struct _SDL_HIDAPI_DeviceDriver *
driver;
89 struct _SDL_HIDAPI_Device *
next;
92 typedef struct _SDL_HIDAPI_DeviceDriver
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverPS4
SDL_bool HIDAPI_JoystickConnected(SDL_HIDAPI_Device *device, SDL_JoystickID *pJoystickID)
struct _SDL_HIDAPI_DeviceDriver * driver
SDL_bool HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version, const char *name)
SDL_JoystickID * joysticks
struct _SDL_HIDAPI_Device * next
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSwitch
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360
GLuint const GLchar * name
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)
struct hid_device_ hid_device
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
static SDL_AudioDeviceID device
SDL_atomic_t rumble_pending
GLuint GLuint GLsizei GLenum type
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360W