Function sdl2_sys::SDL_GameControllerFromPlayerIndex
source ยท pub unsafe extern "C" fn SDL_GameControllerFromPlayerIndex(
player_index: c_int,
) -> *mut SDL_GameController
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