SDL  2.0
SDL_HIDAPI_DeviceDriver Struct Reference

#include <SDL_hidapijoystick_c.h>

Data Fields

const char * hint
 
SDL_bool enabled
 
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)
 
const char *(* GetDeviceName )(Uint16 vendor_id, Uint16 product_id)
 
SDL_bool(* InitDevice )(SDL_HIDAPI_Device *device)
 
int(* GetDevicePlayerIndex )(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id)
 
void(* SetDevicePlayerIndex )(SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index)
 
SDL_bool(* UpdateDevice )(SDL_HIDAPI_Device *device)
 
SDL_bool(* OpenJoystick )(SDL_HIDAPI_Device *device, SDL_Joystick *joystick)
 
int(* RumbleJoystick )(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble)
 
void(* CloseJoystick )(SDL_HIDAPI_Device *device, SDL_Joystick *joystick)
 
void(* FreeDevice )(SDL_HIDAPI_Device *device)
 

Detailed Description

Definition at line 92 of file SDL_hidapijoystick_c.h.

Field Documentation

◆ CloseJoystick

void(* SDL_HIDAPI_DeviceDriver::CloseJoystick) (SDL_HIDAPI_Device *device, SDL_Joystick *joystick)

Definition at line 104 of file SDL_hidapijoystick_c.h.

◆ enabled

SDL_bool SDL_HIDAPI_DeviceDriver::enabled

Definition at line 95 of file SDL_hidapijoystick_c.h.

◆ FreeDevice

void(* SDL_HIDAPI_DeviceDriver::FreeDevice) (SDL_HIDAPI_Device *device)

Definition at line 105 of file SDL_hidapijoystick_c.h.

◆ GetDeviceName

const char*(* SDL_HIDAPI_DeviceDriver::GetDeviceName) (Uint16 vendor_id, Uint16 product_id)

Definition at line 97 of file SDL_hidapijoystick_c.h.

◆ GetDevicePlayerIndex

int(* SDL_HIDAPI_DeviceDriver::GetDevicePlayerIndex) (SDL_HIDAPI_Device *device, SDL_JoystickID instance_id)

Definition at line 99 of file SDL_hidapijoystick_c.h.

◆ hint

const char* SDL_HIDAPI_DeviceDriver::hint

Definition at line 94 of file SDL_hidapijoystick_c.h.

◆ InitDevice

SDL_bool(* SDL_HIDAPI_DeviceDriver::InitDevice) (SDL_HIDAPI_Device *device)

Definition at line 98 of file SDL_hidapijoystick_c.h.

◆ IsSupportedDevice

SDL_bool(* SDL_HIDAPI_DeviceDriver::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)

Definition at line 96 of file SDL_hidapijoystick_c.h.

◆ OpenJoystick

SDL_bool(* SDL_HIDAPI_DeviceDriver::OpenJoystick) (SDL_HIDAPI_Device *device, SDL_Joystick *joystick)

Definition at line 102 of file SDL_hidapijoystick_c.h.

◆ RumbleJoystick

int(* SDL_HIDAPI_DeviceDriver::RumbleJoystick) (SDL_HIDAPI_Device *device, SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble)

Definition at line 103 of file SDL_hidapijoystick_c.h.

◆ SetDevicePlayerIndex

void(* SDL_HIDAPI_DeviceDriver::SetDevicePlayerIndex) (SDL_HIDAPI_Device *device, SDL_JoystickID instance_id, int player_index)

Definition at line 100 of file SDL_hidapijoystick_c.h.

◆ UpdateDevice

SDL_bool(* SDL_HIDAPI_DeviceDriver::UpdateDevice) (SDL_HIDAPI_Device *device)

Definition at line 101 of file SDL_hidapijoystick_c.h.


The documentation for this struct was generated from the following file: