Function SDL_GameControllerSetPlayerIndex

pub unsafe extern "C" fn SDL_GameControllerSetPlayerIndex(
    gamecontroller: *mut _SDL_GameController,
    player_index: i32,
)
Available on crate feature dep_sdl2 only.
Expand description

Set the player index of an opened game controller.

\param gamecontroller the game controller object to adjust. \param player_index Player index to assign to this controller, or -1 to clear the player index and turn off player LEDs.

\since This function is available since SDL 2.0.12.