Function SDL_GetGamepadMapping
pub unsafe extern "C" fn SDL_GetGamepadMapping(
gamepad: *mut SDL_Gamepad,
) -> *mut i8
Available on crate feature
dep_sdl3
only.Expand description
Get the current mapping of a gamepad.
Details about mappings are discussed with SDL_AddGamepadMapping()
.
§Parameters
gamepad
: the gamepad you want to get the current mapping for.
§Return value
Returns a string that has the gamepad’s mapping or NULL if no mapping is
available; call SDL_GetError()
for more information. This should
be freed with SDL_free()
when it is no longer needed.
§Availability
This function is available since SDL 3.2.0.