SDL_GetJoystickPlayerIndexForID

Get the player index of a joystick.

This can be called before any joysticks are opened.

extern (C) nothrow @nogc extern
int
SDL_GetJoystickPlayerIndexForID

Parameters

instance_id SDL_JoystickID

the joystick instance ID.

Return Value

Type: int

The player index of a joystick, or -1 if it's not available.

See Also

Meta