SDL
2.0
|
Go to the source code of this file.
Data Structures | |
struct | SDL_JoystickAxisInfo |
struct | SDL_Joystick |
struct | SDL_Joystick::balldelta |
Macros | |
#define | MAKE_VIDPID(VID, PID) (((Uint32)(VID))<<16|(PID)) |
Functions | |
int | SDL_SYS_JoystickInit (void) |
int | SDL_SYS_NumJoysticks (void) |
void | SDL_SYS_JoystickDetect (void) |
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) |
#define MAKE_VIDPID | ( | VID, | |
PID | |||
) | (((Uint32)(VID))<<16|(PID)) |
Definition at line 72 of file SDL_sysjoystick.h.
Referenced by SDL_GetJoystickGUIDType(), SDL_IsJoystickProductFlightStick(), SDL_IsJoystickProductThrottle(), SDL_IsJoystickProductWheel(), SDL_JoystickAxesCenteredAtZero(), and SDL_ShouldIgnoreGameController().
SDL_JoystickID SDL_SYS_GetInstanceIdOfDeviceIndex | ( | int | device_index | ) |
Definition at line 409 of file SDL_sysjoystick.m.
References device, GetDeviceForIndex(), and recDevice::instance_id.
Referenced by SDL_GameControllerOpen(), and SDL_JoystickGetDeviceInstanceID().
SDL_bool SDL_SYS_JoystickAttached | ( | SDL_Joystick * | joystick | ) |
Definition at line 469 of file SDL_sysjoystick.m.
References NULL.
Referenced by SDL_JoystickGetAttached().
void SDL_SYS_JoystickClose | ( | SDL_Joystick * | joystick | ) |
Definition at line 704 of file SDL_sysjoystick.m.
References recDevice::accelerometer, recDevice::controller, device, recDevice::joystick, NULL, recDevice::remote, and SDL_AppleTVRemoteOpenedAsJoystick.
Referenced by SDL_JoystickClose().
Definition at line 395 of file SDL_sysjoystick.m.
References SDL_UpdateSteamControllers().
Referenced by SDL_JoystickUpdate().
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID | ( | int | device_index | ) |
Definition at line 771 of file SDL_sysjoystick.m.
References device, GetDeviceForIndex(), recDevice::guid, and SDL_zero.
Referenced by SDL_JoystickGetDeviceGUID().
SDL_JoystickGUID SDL_SYS_JoystickGetGUID | ( | SDL_Joystick * | joystick | ) |
Definition at line 784 of file SDL_sysjoystick.m.
References recDevice::guid, and SDL_zero.
Referenced by SDL_JoystickGetGUID().
int SDL_SYS_JoystickInit | ( | void | ) |
Definition at line 330 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_InitSteamControllers(), SDL_SYS_AddJoystickDevice(), SDL_TRUE, SteamControllerConnectedCallback(), and SteamControllerDisconnectedCallback().
Referenced by SDL_JoystickInit().
const char* SDL_SYS_JoystickNameForDeviceIndex | ( | int | device_index | ) |
Definition at line 402 of file SDL_sysjoystick.m.
References device, GetDeviceForIndex(), and recDevice::name.
Referenced by SDL_JoystickNameForIndex(), and SDL_JoystickOpen().
int SDL_SYS_JoystickOpen | ( | SDL_Joystick * | joystick, |
int | device_index | ||
) |
Definition at line 421 of file SDL_sysjoystick.m.
References recDevice::accelerometer, recDevice::controller, device, GetDeviceForIndex(), recDevice::instance_id, recDevice::joystick, motionManager, recDevice::naxes, recDevice::nbuttons, recDevice::nhats, NULL, recDevice::remote, SDL_AppleTVRemoteOpenedAsJoystick, and SDL_SetError.
Referenced by SDL_JoystickOpen().
Definition at line 734 of file SDL_sysjoystick.m.
References motionManager, NULL, numjoysticks, SDL_DelHintCallback, SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION, SDL_QuitSteamControllers(), and SDL_SYS_RemoveJoystickDevice().
Referenced by SDL_JoystickQuit().
void SDL_SYS_JoystickUpdate | ( | SDL_Joystick * | joystick | ) |
Definition at line 682 of file SDL_sysjoystick.m.
References recDevice::accelerometer, recDevice::controller, device, recDevice::m_bSteamController, NULL, SDL_SYS_AccelerometerUpdate(), SDL_SYS_MFIJoystickUpdate(), and SDL_UpdateSteamController().
Referenced by SDL_JoystickOpen(), and SDL_JoystickUpdate().
int SDL_SYS_NumJoysticks | ( | void | ) |
Definition at line 389 of file SDL_sysjoystick.m.
References numjoysticks.
Referenced by SDL_NumJoysticks().