Function SDL_JoystickFromPlayerIndex

pub unsafe extern "C" fn SDL_JoystickFromPlayerIndex(
    player_index: i32,
) -> *mut _SDL_Joystick
Available on crate feature dep_sdl2 only.
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.