Function SDL_GetJoystickFromPlayerIndex
pub unsafe extern "C" fn SDL_GetJoystickFromPlayerIndex(
player_index: i32,
) -> *mut SDL_Joystick
Available on crate feature
dep_sdl3
only.Expand description
Get the SDL_Joystick
associated with a player index.
§Parameters
player_index
: the player index to get theSDL_Joystick
for.
§Return value
Returns an SDL_Joystick
on success or NULL on failure; call SDL_GetError()
for more information.
§Availability
This function is available since SDL 3.2.0.