Function SDL_GameControllerMappingForGUID

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

Get the game controller mapping string for a given GUID.

The returned string must be freed with SDL_free().

\param guid a structure containing the GUID for which a mapping is desired \returns a mapping string or NULL on error; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_JoystickGetDeviceGUID \sa SDL_JoystickGetGUID