Get the player index of an opened gamepad.
int SDL_GetGamepadPlayerIndex(SDL_Gamepad *gamepad);
gamepad | the gamepad object to query. |
Returns the player index for gamepad, or -1 if it's not available.
For XInput gamepads this returns the XInput user index.
This function is available since SDL 3.0.0.