Get the SDL_GameController associated with a player index.
Defined in SDL_gamecontroller.h
int player_index); SDL_GameController* SDL_GameControllerFromPlayerIndex(
int | player_index | the player index, which is not the device index or the instance id! |
(SDL_GameController *) Returns the SDL_GameController associated with a player index.
Please note that the player index is not the device index, nor is it the instance id!
This function is available since SDL 2.0.12.