SDL_GetGamepadPlayerIndexForID

Get the player index of a gamepad.

This can be called before any gamepads are opened.

extern (C) nothrow @nogc extern
int
SDL_GetGamepadPlayerIndexForID

Parameters

instance_id SDL_JoystickID

the joystick instance ID.

Return Value

Type: int

the player index of a gamepad, or -1 if it's not available.

See Also

Meta