SDL_SetGamepadPlayerIndex

Set the player index of an opened gamepad.

extern (C) nothrow @nogc extern
bool
SDL_SetGamepadPlayerIndex

Parameters

gamepad SDL_Gamepad*

the gamepad object to adjust.

player_index int

player index to assign to this gamepad, or -1 to clear the player index and turn off player LEDs.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

See Also

Meta