Function SDL_GameControllerMapping

pub unsafe extern "C" fn SDL_GameControllerMapping(
    gamecontroller: *mut _SDL_GameController,
) -> *mut i8
Available on crate feature dep_sdl2 only.
Expand description

Get the current mapping of a Game Controller.

The returned string must be freed with SDL_free().

Details about mappings are discussed with SDL_GameControllerAddMapping().

\param gamecontroller the game controller you want to get the current mapping for \returns a string that has the controller’s mapping or NULL if no mapping is available; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_GameControllerAddMapping \sa SDL_GameControllerMappingForGUID