Function SDL_GetGamepadName
pub unsafe extern "C" fn SDL_GetGamepadName(
gamepad: *mut SDL_Gamepad,
) -> *const i8
Available on crate feature
dep_sdl3
only.Expand description
Get the implementation-dependent name for an opened gamepad.
§Parameters
gamepad
: a gamepad identifier previously returned bySDL_OpenGamepad()
.
§Return value
Returns the implementation dependent name for the gamepad, or NULL if there is no name or the identifier passed is invalid.
§Availability
This function is available since SDL 3.2.0.