SDL_GetGamepadPlayerIndex

Get the player index of an opened gamepad.

For XInput gamepads this returns the XInput user index.

extern (C) nothrow @nogc extern
int
SDL_GetGamepadPlayerIndex

Parameters

gamepad SDL_Gamepad*

the gamepad object to query.

Return Value

Type: int

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

See Also

Meta