* Return 1 if the joystick at this device index is a supported controller */
| 1496 | * Return 1 if the joystick at this device index is a supported controller |
| 1497 | */ |
| 1498 | SDL_bool |
| 1499 | SDL_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 |