SDL_GetGamepadMappingForID

Get the mapping of a gamepad.

This can be called before any gamepads are opened.

extern (C) nothrow @nogc extern
char*
SDL_GetGamepadMappingForID

Parameters

instance_id SDL_JoystickID

the joystick instance ID.

Return Value

Type: char*

The mapping string. Returns NULL if no mapping is available. This should be freed with SDL_free() when it is no longer needed.

See Also

Meta