zenilib
0.5.3.0
|
Go to the source code of this file.
Classes | |
struct | _SDL_Joystick |
struct | _SDL_Joystick::balldelta |
Functions | |
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 () |
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 | ) |
Definition at line 119 of file SDL_sysjoystick.m.
References SDL_SetError(), sharedDelegate, SDLUIAccelerationDelegate::sharedDelegate, and SDLUIAccelerationDelegate::shutdown.
Referenced by SDL_JoystickClose().
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 | ) |
Definition at line 133 of file SDL_sysjoystick.m.
References SDL_memcpy(), SDL_min, SDL_strlen(), SDL_SYS_JoystickNameForDeviceIndex(), and SDL_zero.
Referenced by SDL_JoystickGetDeviceGUID().
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().
Definition at line 38 of file SDL_sysjoystick.m.
References analog_map, calc_bezier_y(), i, JoystickUpdate(), NULL, pad_sem, running, SDL_CreateSemaphore(), SDL_CreateThread(), and SDL_SetError().
Referenced by SDL_JoystickInit().
Definition at line 59 of file SDL_sysjoystick.m.
References accelerometerName.
Referenced by SDL_JoystickNameForIndex(), SDL_JoystickOpen(), and SDL_SYS_JoystickGetDeviceGUID().
SDL_bool SDL_SYS_JoystickNeedsPolling | ( | ) |
Definition at line 52 of file SDL_sysjoystick.m.
References SDL_FALSE.
Referenced by SDL_PrivateJoystickNeedsPolling().
int SDL_SYS_JoystickOpen | ( | SDL_Joystick * | joystick, |
int | device_index | ||
) |
Definition at line 76 of file SDL_sysjoystick.m.
References _SDL_Joystick::naxes, _SDL_Joystick::nballs, _SDL_Joystick::nbuttons, _SDL_Joystick::nhats, SDLUIAccelerationDelegate::sharedDelegate, and SDLUIAccelerationDelegate::startup.
Referenced by SDL_JoystickOpen().
Definition at line 129 of file SDL_sysjoystick.m.
References NULL, pad_sem, running, SDL_DestroySemaphore(), and SDL_WaitThread().
Referenced by SDL_JoystickQuit().
void SDL_SYS_JoystickUpdate | ( | SDL_Joystick * | joystick | ) |
Definition at line 98 of file SDL_sysjoystick.m.
References analog_map, button_map, SDLUIAccelerationDelegate::getLastOrientation:, i, pad, pad_sem, SDL_PRESSED, SDL_PrivateJoystickAxis(), SDL_PrivateJoystickButton(), SDL_RELEASED, SDL_SemPost(), SDL_SemWait(), SDLUIAccelerationDelegate::setHasNewData:, sharedDelegate, and SDLUIAccelerationDelegate::sharedDelegate.
Referenced by SDL_GameControllerOpen(), SDL_JoystickOpen(), and SDL_JoystickUpdate().
int SDL_SYS_NumJoysticks | ( | ) |
Definition at line 43 of file SDL_sysjoystick.m.
Referenced by SDL_NumJoysticks().