Function SDL_GetGamepadNameForID
pub unsafe extern "C" fn SDL_GetGamepadNameForID(
instance_id: u32,
) -> *const i8
Available on crate feature
dep_sdl3
only.Expand description
Get the implementation dependent name of a gamepad.
This can be called before any gamepads are opened.
§Parameters
instance_id
: the joystick instance ID.
§Return value
Returns the name of the selected gamepad. If no name can be found, this
function returns NULL; call SDL_GetError()
for more information.
§Availability
This function is available since SDL 3.2.0.