SDL
2.0
|
Go to the source code of this file.
Data Structures | |
struct | ControllerDescription_t |
Macros | |
#define | MAKE_CONTROLLER_ID(nVID, nPID) (unsigned int)( (unsigned int)nVID << 16 | (unsigned int)nPID ) |
Functions | |
static const SDL_INLINE char * | GetControllerTypeOverride (int nVID, int nPID) |
static SDL_INLINE EControllerType | GuessControllerType (int nVID, int nPID) |
static const SDL_INLINE char * | GuessControllerName (int nVID, int nPID) |
Variables | |
static const ControllerDescription_t | arrControllers [] |
#define MAKE_CONTROLLER_ID | ( | nVID, | |
nPID | |||
) | (unsigned int)( (unsigned int)nVID << 16 | (unsigned int)nPID ) |
Definition at line 64 of file controller_type.h.
enum EControllerType |
Definition at line 31 of file controller_type.h.
|
static |
Definition at line 543 of file controller_type.h.
References NULL, SDL_GetHint, SDL_HINT_GAMECONTROLLERTYPE, SDL_snprintf, SDL_strlen, SDL_strncmp, and SDL_strstr.
Referenced by GuessControllerType().
|
static |
Definition at line 635 of file controller_type.h.
References arrControllers, ControllerDescription_t::m_pszName, MAKE_CONTROLLER_ID, and NULL.
Referenced by SDL_GetCustomJoystickName().
|
static |
Definition at line 567 of file controller_type.h.
References arrControllers, GetControllerTypeOverride(), i, j, k_eControllerType_PS3Controller, k_eControllerType_PS4Controller, k_eControllerType_SteamController, k_eControllerType_SwitchProController, k_eControllerType_UnknownNonSteamController, k_eControllerType_XBox360Controller, k_eControllerType_XBoxOneController, ControllerDescription_t::m_eControllerType, MAKE_CONTROLLER_ID, and SDL_strncasecmp.
Referenced by SDL_GetJoystickGameControllerType(), SDL_GetJoystickGUIDType(), SDL_IsJoystickNintendoSwitchProInputOnly(), and SDL_IsJoystickSteamController().
|
static |
Definition at line 72 of file controller_type.h.
Referenced by GuessControllerName(), and GuessControllerType().