SDL  2.0
SDL_JoystickDriver Struct Reference

#include <SDL_sysjoystick.h>

+ Collaboration diagram for SDL_JoystickDriver:

Data Fields

int(* Init )(void)
 
int(* GetCount )(void)
 
void(* Detect )(void)
 
const char *(* GetDeviceName )(int device_index)
 
int(* GetDevicePlayerIndex )(int device_index)
 
void(* SetDevicePlayerIndex )(int device_index, int player_index)
 
SDL_JoystickGUID(* GetDeviceGUID )(int device_index)
 
SDL_JoystickID(* GetDeviceInstanceID )(int device_index)
 
int(* Open )(SDL_Joystick *joystick, int device_index)
 
int(* Rumble )(SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble)
 
int(* RumbleTriggers )(SDL_Joystick *joystick, Uint16 left_rumble, Uint16 right_rumble)
 
SDL_bool(* HasLED )(SDL_Joystick *joystick)
 
int(* SetLED )(SDL_Joystick *joystick, Uint8 red, Uint8 green, Uint8 blue)
 
int(* SetSensorsEnabled )(SDL_Joystick *joystick, SDL_bool enabled)
 
void(* Update )(SDL_Joystick *joystick)
 
void(* Close )(SDL_Joystick *joystick)
 
void(* Quit )(void)
 
SDL_bool(* GetGamepadMapping )(int device_index, SDL_GamepadMapping *out)
 

Detailed Description

Definition at line 125 of file SDL_sysjoystick.h.

Field Documentation

◆ Close

void(* SDL_JoystickDriver::Close) (SDL_Joystick *joystick)

Definition at line 180 of file SDL_sysjoystick.h.

◆ Detect

void(* SDL_JoystickDriver::Detect) (void)

Definition at line 137 of file SDL_sysjoystick.h.

Referenced by SDL_JoystickUpdate().

◆ GetCount

int(* SDL_JoystickDriver::GetCount) (void)

Definition at line 134 of file SDL_sysjoystick.h.

Referenced by SDL_GetDriverAndJoystickIndex(), and SDL_NumJoysticks().

◆ GetDeviceGUID

SDL_JoystickGUID(* SDL_JoystickDriver::GetDeviceGUID) (int device_index)

Definition at line 149 of file SDL_sysjoystick.h.

Referenced by SDL_JoystickGetDeviceGUID(), and SDL_JoystickOpen().

◆ GetDeviceInstanceID

SDL_JoystickID(* SDL_JoystickDriver::GetDeviceInstanceID) (int device_index)

Definition at line 152 of file SDL_sysjoystick.h.

Referenced by SDL_JoystickGetDeviceInstanceID(), and SDL_JoystickOpen().

◆ GetDeviceName

const char*(* SDL_JoystickDriver::GetDeviceName) (int device_index)

Definition at line 140 of file SDL_sysjoystick.h.

Referenced by SDL_JoystickNameForIndex(), and SDL_JoystickOpen().

◆ GetDevicePlayerIndex

int(* SDL_JoystickDriver::GetDevicePlayerIndex) (int device_index)

Definition at line 143 of file SDL_sysjoystick.h.

Referenced by SDL_PrivateJoystickAdded().

◆ GetGamepadMapping

SDL_bool(* SDL_JoystickDriver::GetGamepadMapping) (int device_index, SDL_GamepadMapping *out)

Definition at line 186 of file SDL_sysjoystick.h.

Referenced by SDL_PrivateJoystickGetAutoGamepadMapping().

◆ HasLED

SDL_bool(* SDL_JoystickDriver::HasLED) (SDL_Joystick *joystick)

Definition at line 166 of file SDL_sysjoystick.h.

◆ Init

int(* SDL_JoystickDriver::Init) (void)

Definition at line 131 of file SDL_sysjoystick.h.

◆ Open

int(* SDL_JoystickDriver::Open) (SDL_Joystick *joystick, int device_index)

Definition at line 159 of file SDL_sysjoystick.h.

Referenced by SDL_JoystickOpen().

◆ Quit

void(* SDL_JoystickDriver::Quit) (void)

Definition at line 183 of file SDL_sysjoystick.h.

Referenced by SDL_JoystickQuit().

◆ Rumble

int(* SDL_JoystickDriver::Rumble) (SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble)

Definition at line 162 of file SDL_sysjoystick.h.

◆ RumbleTriggers

int(* SDL_JoystickDriver::RumbleTriggers) (SDL_Joystick *joystick, Uint16 left_rumble, Uint16 right_rumble)

Definition at line 163 of file SDL_sysjoystick.h.

◆ SetDevicePlayerIndex

void(* SDL_JoystickDriver::SetDevicePlayerIndex) (int device_index, int player_index)

Definition at line 146 of file SDL_sysjoystick.h.

Referenced by SDL_SetJoystickIDForPlayerIndex().

◆ SetLED

int(* SDL_JoystickDriver::SetLED) (SDL_Joystick *joystick, Uint8 red, Uint8 green, Uint8 blue)

Definition at line 167 of file SDL_sysjoystick.h.

◆ SetSensorsEnabled

int(* SDL_JoystickDriver::SetSensorsEnabled) (SDL_Joystick *joystick, SDL_bool enabled)

Definition at line 170 of file SDL_sysjoystick.h.

◆ Update

void(* SDL_JoystickDriver::Update) (SDL_Joystick *joystick)

Definition at line 177 of file SDL_sysjoystick.h.

Referenced by SDL_JoystickOpen().


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