MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_IsGameController

Function SDL_IsGameController

deps/SDL2/src/joystick/SDL_gamecontroller.c:1498–1506  ·  view source on GitHub ↗

* Return 1 if the joystick at this device index is a supported controller */

Source from the content-addressed store, hash-verified

1496 * Return 1 if the joystick at this device index is a supported controller
1497 */
1498SDL_bool
1499SDL_IsGameController(int device_index)
1500{
1501 ControllerMapping_t *pSupportedController = SDL_PrivateGetControllerMapping(device_index);
1502 if (pSupportedController) {
1503 return SDL_TRUE;
1504 }
1505 return SDL_FALSE;
1506}
1507
1508/*
1509 * Return 1 if the game controller should be ignored by SDL

Callers 7

InitGameControllersMethod · 0.85
mainFunction · 0.85
SDL_GameControllerInitFunction · 0.85
SDL_JoystickOpenFunction · 0.85
SDL_PrivateJoystickAddedFunction · 0.85

Calls 1

Tested by 1

mainFunction · 0.68