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_PS5
36 #define SDL_JOYSTICK_HIDAPI_SWITCH
37 #define SDL_JOYSTICK_HIDAPI_XBOX360
38 #define SDL_JOYSTICK_HIDAPI_XBOXONE
39 #define SDL_JOYSTICK_HIDAPI_GAMECUBE
41 #if defined(__IPHONEOS__) || defined(__TVOS__) || defined(__ANDROID__)
43 #define SDL_JOYSTICK_HIDAPI_STEAM
47 #define USB_PACKET_LENGTH 64
50 struct _SDL_HIDAPI_DeviceDriver;
52 typedef struct _SDL_HIDAPI_Device
68 struct _SDL_HIDAPI_DeviceDriver *
driver;
82 struct _SDL_HIDAPI_Device *
next;
85 typedef struct _SDL_HIDAPI_DeviceDriver
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_HIDAPI_DeviceDriver SDL_HIDAPI_DriverPS4
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSteam
void HIDAPI_UpdateDevices(void)
void HIDAPI_DumpPacket(const char *prefix, Uint8 *data, int size)
SDL_bool HIDAPI_JoystickConnected(SDL_HIDAPI_Device *device, SDL_JoystickID *pJoystickID)
void HIDAPI_JoystickDisconnected(SDL_HIDAPI_Device *device, SDL_JoystickID joystickID)
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverGameCube
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360
SDL_bool HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version, const char *name)
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXboxOne
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSwitch
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverPS5
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360W
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLuint GLsizei GLenum type
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLuint const GLchar * name
struct hid_device_ hid_device
static SDL_AudioDeviceID device
struct _SDL_HIDAPI_Device * next
struct _SDL_HIDAPI_DeviceDriver * driver
SDL_atomic_t rumble_pending
SDL_JoystickID * joysticks
A type representing an atomic integer value. It is a struct so people don't accidentally use numeric ...
static SDL_Joystick * joystick
typedef int(__stdcall *FARPROC)()