Function SDL_SetGamepadMapping
pub unsafe extern "C" fn SDL_SetGamepadMapping(
instance_id: u32,
mapping: *const i8,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Set the current mapping of a joystick or gamepad.
Details about mappings are discussed with SDL_AddGamepadMapping()
.
§Parameters
instance_id
: the joystick instance ID.mapping
: the mapping to use for this device, or NULL to clear the mapping.
§Return value
Returns true on success or false on failure; call SDL_GetError()
for more
information.
§Availability
This function is available since SDL 3.2.0.