SDL
2.0
|
Go to the source code of this file.
Data Structures | |
struct | SDL_Joystick |
struct | SDL_Joystick::balldelta |
Functions | |
int | SDL_SYS_JoystickInit (void) |
int | SDL_SYS_NumJoysticks () |
void | SDL_SYS_JoystickDetect () |
const char * | SDL_SYS_JoystickNameForDeviceIndex (int device_index) |
SDL_JoystickID | SDL_SYS_GetInstanceIdOfDeviceIndex (int device_index) |
int | SDL_SYS_JoystickOpen (SDL_Joystick *joystick, int device_index) |
SDL_bool | SDL_SYS_JoystickAttached (SDL_Joystick *joystick) |
void | SDL_SYS_JoystickUpdate (SDL_Joystick *joystick) |
void | SDL_SYS_JoystickClose (SDL_Joystick *joystick) |
void | SDL_SYS_JoystickQuit (void) |
SDL_JoystickGUID | SDL_SYS_JoystickGetDeviceGUID (int device_index) |
SDL_JoystickGUID | SDL_SYS_JoystickGetGUID (SDL_Joystick *joystick) |
SDL_JoystickID SDL_SYS_GetInstanceIdOfDeviceIndex | ( | int | device_index | ) |
Definition at line 347 of file SDL_sysjoystick.m.
References GetDeviceForIndex(), and recDevice::instance_id.
Referenced by SDL_GameControllerOpen(), and SDL_JoystickOpen().
SDL_bool SDL_SYS_JoystickAttached | ( | SDL_Joystick * | joystick | ) |
Definition at line 404 of file SDL_sysjoystick.m.
References NULL.
Referenced by SDL_JoystickGetAttached().
void SDL_SYS_JoystickClose | ( | SDL_Joystick * | joystick | ) |
Definition at line 639 of file SDL_sysjoystick.m.
References recDevice::accelerometer, recDevice::controller, recDevice::joystick, and NULL.
Referenced by SDL_JoystickClose().
void SDL_SYS_JoystickDetect | ( | ) |
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID | ( | int | device_index | ) |
Definition at line 701 of file SDL_sysjoystick.m.
References GetDeviceForIndex(), recDevice::guid, and SDL_zero.
Referenced by SDL_JoystickGetDeviceGUID().
SDL_JoystickGUID SDL_SYS_JoystickGetGUID | ( | SDL_Joystick * | joystick | ) |
Definition at line 714 of file SDL_sysjoystick.m.
References recDevice::guid, and SDL_zero.
Referenced by SDL_JoystickGetGUID().
int SDL_SYS_JoystickInit | ( | void | ) |
Definition at line 274 of file SDL_sysjoystick.m.
References recDevice::controller, sort_controllers::controllers, NULL, numjoysticks, SDL_AddHintCallback, SDL_FALSE, SDL_GetHintBoolean, SDL_HINT_ACCELEROMETER_AS_JOYSTICK, SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION, SDL_SYS_AddJoystickDevice(), and SDL_TRUE.
Referenced by SDL_JoystickInit().
const char* SDL_SYS_JoystickNameForDeviceIndex | ( | int | device_index | ) |
Definition at line 340 of file SDL_sysjoystick.m.
References GetDeviceForIndex(), and recDevice::name.
Referenced by SDL_JoystickNameForIndex(), and SDL_JoystickOpen().
int SDL_SYS_JoystickOpen | ( | SDL_Joystick * | joystick, |
int | device_index | ||
) |
Definition at line 359 of file SDL_sysjoystick.m.
References recDevice::accelerometer, recDevice::controller, GetDeviceForIndex(), recDevice::instance_id, recDevice::joystick, motionManager, recDevice::naxes, recDevice::nbuttons, recDevice::nhats, NULL, and SDL_SetError.
Referenced by SDL_JoystickOpen().
Definition at line 666 of file SDL_sysjoystick.m.
References motionManager, NULL, numjoysticks, SDL_DelHintCallback, SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION, and SDL_SYS_RemoveJoystickDevice().
Referenced by SDL_JoystickQuit().
void SDL_SYS_JoystickUpdate | ( | SDL_Joystick * | joystick | ) |
Definition at line 622 of file SDL_sysjoystick.m.
References recDevice::accelerometer, recDevice::controller, NULL, SDL_SYS_AccelerometerUpdate(), and SDL_SYS_MFIJoystickUpdate().
Referenced by SDL_GameControllerOpen(), SDL_JoystickOpen(), and SDL_JoystickUpdate().
int SDL_SYS_NumJoysticks | ( | ) |
Definition at line 329 of file SDL_sysjoystick.m.
References numjoysticks.
Referenced by SDL_NumJoysticks().