SDL_SetJoystickPlayerIndex

Set the player index of an opened joystick.

extern (C) nothrow @nogc extern
bool
SDL_SetJoystickPlayerIndex

Parameters

joystick SDL_Joystick*

the SDL_Joystick obtained from SDL_OpenJoystick().

player_index int

player index to assign to this joystick, 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