Function sdl2_sys::SDL_JoystickSetPlayerIndex

source ยท
pub unsafe extern "C" fn SDL_JoystickSetPlayerIndex(
    joystick: *mut SDL_Joystick,
    player_index: c_int,
)
Expand description

Set the player index of an opened joystick.

\param joystick the SDL_Joystick obtained from SDL_JoystickOpen() \param player_index Player index to assign to this joystick, or -1 to clear the player index and turn off player LEDs.

\since This function is available since SDL 2.0.12.