Function SDL_GameControllerFromPlayerIndex
pub unsafe extern "C" fn SDL_GameControllerFromPlayerIndex(
player_index: i32,
) -> *mut _SDL_GameController
Available on crate feature
dep_sdl2
only.Expand description
Get the SDL_GameController associated with a player index.
Please note that the player index is not the device index, nor is it the instance id!
\param player_index the player index, which is not the device index or the instance id! \returns the SDL_GameController associated with a player index.
\since This function is available since SDL 2.0.12.
\sa SDL_GameControllerGetPlayerIndex \sa SDL_GameControllerSetPlayerIndex