Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #ifndef SDL_JOYSTICK_HIDAPI_H
24 #define SDL_JOYSTICK_HIDAPI_H
26 #include "../../hidapi/hidapi/hidapi.h"
29 #define SDL_JOYSTICK_HIDAPI_PS4
30 #define SDL_JOYSTICK_HIDAPI_SWITCH
31 #define SDL_JOYSTICK_HIDAPI_XBOX360
32 #define SDL_JOYSTICK_HIDAPI_XBOXONE
36 #undef SDL_JOYSTICK_HIDAPI_XBOXONE
38 #undef SDL_JOYSTICK_HIDAPI_XBOX360
43 #undef SDL_JOYSTICK_HIDAPI_XBOXONE
57 } SDL_HIDAPI_DeviceDriver;
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverPS4
SDL_bool(* Init)(SDL_Joystick *joystick, hid_device *dev, Uint16 vendor_id, Uint16 product_id, void **context)
void(* Quit)(SDL_Joystick *joystick, hid_device *dev, void *context)
SDL_bool(* Update)(SDL_Joystick *joystick, hid_device *dev, void *context)
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSwitch
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360
static screen_context_t context
const char * HIDAPI_XboxControllerName(Uint16 vendor_id, Uint16 product_id)
SDL_bool(* IsSupportedDevice)(Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number)
int(* Rumble)(SDL_Joystick *joystick, hid_device *dev, void *context, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms)
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXboxOne
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSteam
SDL_bool HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version)
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