SDL  2.0
SDL_hidapijoystick_c.h File Reference
#include "../../SDL_internal.h"
#include "SDL_atomic.h"
#include "SDL_mutex.h"
#include "SDL_joystick.h"
#include "SDL_gamecontroller.h"
#include "../../hidapi/hidapi/hidapi.h"
#include "../usb_ids.h"
+ Include dependency graph for SDL_hidapijoystick_c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SDL_HIDAPI_Device
 
struct  SDL_HIDAPI_DeviceDriver
 

Macros

#define SDL_JOYSTICK_HIDAPI_PS4
 
#define SDL_JOYSTICK_HIDAPI_SWITCH
 
#define SDL_JOYSTICK_HIDAPI_XBOX360
 
#define SDL_JOYSTICK_HIDAPI_XBOXONE
 
#define SDL_JOYSTICK_HIDAPI_GAMECUBE
 
#define USB_PACKET_LENGTH   64
 

Functions

SDL_bool HIDAPI_IsDevicePresent (Uint16 vendor_id, Uint16 product_id, Uint16 version, const char *name)
 
void HIDAPI_UpdateDevices (void)
 
SDL_bool HIDAPI_JoystickConnected (SDL_HIDAPI_Device *device, SDL_JoystickID *pJoystickID)
 
void HIDAPI_JoystickDisconnected (SDL_HIDAPI_Device *device, SDL_JoystickID joystickID)
 

Variables

SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverPS4
 
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSteam
 
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSwitch
 
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360
 
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360W
 
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXboxOne
 
SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverGameCube
 

Macro Definition Documentation

◆ SDL_JOYSTICK_HIDAPI_GAMECUBE

#define SDL_JOYSTICK_HIDAPI_GAMECUBE

Definition at line 39 of file SDL_hidapijoystick_c.h.

◆ SDL_JOYSTICK_HIDAPI_PS4

#define SDL_JOYSTICK_HIDAPI_PS4

Definition at line 35 of file SDL_hidapijoystick_c.h.

◆ SDL_JOYSTICK_HIDAPI_SWITCH

#define SDL_JOYSTICK_HIDAPI_SWITCH

Definition at line 36 of file SDL_hidapijoystick_c.h.

◆ SDL_JOYSTICK_HIDAPI_XBOX360

#define SDL_JOYSTICK_HIDAPI_XBOX360

Definition at line 37 of file SDL_hidapijoystick_c.h.

◆ SDL_JOYSTICK_HIDAPI_XBOXONE

#define SDL_JOYSTICK_HIDAPI_XBOXONE

Definition at line 38 of file SDL_hidapijoystick_c.h.

◆ USB_PACKET_LENGTH

#define USB_PACKET_LENGTH   64

Definition at line 59 of file SDL_hidapijoystick_c.h.

Function Documentation

◆ HIDAPI_IsDevicePresent()

SDL_bool HIDAPI_IsDevicePresent ( Uint16  vendor_id,
Uint16  product_id,
Uint16  version,
const char *  name 
)

◆ HIDAPI_JoystickConnected()

SDL_bool HIDAPI_JoystickConnected ( SDL_HIDAPI_Device device,
SDL_JoystickID pJoystickID 
)

◆ HIDAPI_JoystickDisconnected()

void HIDAPI_JoystickDisconnected ( SDL_HIDAPI_Device device,
SDL_JoystickID  joystickID 
)

◆ HIDAPI_UpdateDevices()

void HIDAPI_UpdateDevices ( void  )

Referenced by SDL_JoystickUpdate().

Variable Documentation

◆ SDL_HIDAPI_DriverGameCube

SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverGameCube

◆ SDL_HIDAPI_DriverPS4

SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverPS4

◆ SDL_HIDAPI_DriverSteam

SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSteam

◆ SDL_HIDAPI_DriverSwitch

SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverSwitch

◆ SDL_HIDAPI_DriverXbox360

SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360

◆ SDL_HIDAPI_DriverXbox360W

SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXbox360W

◆ SDL_HIDAPI_DriverXboxOne

SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXboxOne