Function SDL_SetGamepadPlayerIndex
pub unsafe extern "C" fn SDL_SetGamepadPlayerIndex(
gamepad: *mut SDL_Gamepad,
player_index: i32,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Set the player index of an opened gamepad.
§Parameters
gamepad
: the gamepad object to adjust.player_index
: player index to assign to this gamepad, or -1 to clear the player index and turn off player LEDs.
§Return value
Returns true on success or false on failure; call SDL_GetError()
for more
information.
§Availability
This function is available since SDL 3.2.0.