Get the player index of an opened gamepad.
Defined in <SDL3/SDL_gamepad.h>
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.