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