Function SDL_GetGamepadFromPlayerIndex

pub unsafe extern "C" fn SDL_GetGamepadFromPlayerIndex(
    player_index: i32,
) -> *mut SDL_Gamepad
Available on crate feature dep_sdl3 only.
Expand description

Get the SDL_Gamepad associated with a player index.

§Parameters

  • player_index: the player index, which different from the instance ID.

§Return value

Returns the SDL_Gamepad associated with a player index.

§Availability

This function is available since SDL 3.2.0.

§See also