Get the player index of an opened game controller.
Defined in SDL_gamecontroller.h
int SDL_GameControllerGetPlayerIndex(SDL_GameController *gamecontroller);
SDL_GameController * | gamecontroller | the game controller object to query. |
(int) Returns the player index for controller, or -1 if it's not available.
For XInput controllers this returns the XInput user index.
This function is available since SDL 2.0.9.