Get the player index of a joystick.
int SDL_GetJoystickInstancePlayerIndex(SDL_JoystickID instance_id);
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.