Get the player index of a gamepad.
Defined in <SDL3/SDL_gamepad.h>
instance_id | the joystick instance ID |
Returns the player index of a gamepad, or -1 if it's not available
This can be called before any gamepads are opened.
This function is available since SDL 3.0.0.