Get the player index of an opened game controller.
int SDL_GameControllerGetPlayerIndex(SDL_GameController *gamecontroller);
the game controller object to query.
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.