Function sdl2_sys::SDL_JoystickFromPlayerIndex
source ยท pub unsafe extern "C" fn SDL_JoystickFromPlayerIndex(
player_index: c_int,
) -> *mut SDL_Joystick
Expand description
Get the SDL_Joystick associated with a player index.
\param player_index the player index to get the SDL_Joystick for \returns an SDL_Joystick on success or NULL on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.12.