All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_sysjoystick.h File Reference
#include "SDL_config.h"
#include "SDL_joystick.h"
#include "SDL_joystick_c.h"

Go to the source code of this file.


struct  _SDL_Joystick
struct  _SDL_Joystick::balldelta


SDL_JoystickID SDL_SYS_GetInstanceIdOfDeviceIndex (int device_index)
SDL_bool SDL_SYS_JoystickAttached (SDL_Joystick *joystick)
void SDL_SYS_JoystickClose (SDL_Joystick *joystick)
void SDL_SYS_JoystickDetect ()
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID (int device_index)
SDL_JoystickGUID SDL_SYS_JoystickGetGUID (SDL_Joystick *joystick)
int SDL_SYS_JoystickInit (void)
const char * SDL_SYS_JoystickNameForDeviceIndex (int device_index)
SDL_bool SDL_SYS_JoystickNeedsPolling ()
int SDL_SYS_JoystickOpen (SDL_Joystick *joystick, int device_index)
void SDL_SYS_JoystickQuit (void)
void SDL_SYS_JoystickUpdate (SDL_Joystick *joystick)
int SDL_SYS_NumJoysticks ()

Function Documentation

SDL_JoystickID SDL_SYS_GetInstanceIdOfDeviceIndex ( int  device_index)

Definition at line 65 of file SDL_sysjoystick.m.

Referenced by SDL_GameControllerOpen(), and SDL_JoystickOpen().

SDL_bool SDL_SYS_JoystickAttached ( SDL_Joystick joystick)

Definition at line 87 of file SDL_sysjoystick.m.

References SDL_TRUE.

Referenced by SDL_JoystickGetAttached().

void SDL_SYS_JoystickClose ( SDL_Joystick joystick)
void SDL_SYS_JoystickDetect ( )

Definition at line 48 of file SDL_sysjoystick.m.

Referenced by SDL_JoystickUpdate().

SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID ( int  device_index)
SDL_JoystickGUID SDL_SYS_JoystickGetGUID ( SDL_Joystick joystick)

Definition at line 143 of file SDL_sysjoystick.m.

References _SDL_Joystick::name, SDL_memcpy(), SDL_min, SDL_strlen(), and SDL_zero.

Referenced by SDL_JoystickGetGUID().

int SDL_SYS_JoystickInit ( void  )
const char* SDL_SYS_JoystickNameForDeviceIndex ( int  device_index)
SDL_bool SDL_SYS_JoystickNeedsPolling ( )

Definition at line 52 of file SDL_sysjoystick.m.

References SDL_FALSE.

Referenced by SDL_PrivateJoystickNeedsPolling().

void SDL_SYS_JoystickQuit ( void  )

Definition at line 129 of file SDL_sysjoystick.m.

References NULL, pad_sem, running, SDL_DestroySemaphore(), and SDL_WaitThread().

Referenced by SDL_JoystickQuit().

int SDL_SYS_NumJoysticks ( )

Definition at line 43 of file SDL_sysjoystick.m.

Referenced by SDL_NumJoysticks().