Get the mapping of a gamepad.
Defined in <SDL3/SDL_gamepad.h>
char * SDL_GetGamepadMappingForID(SDL_JoystickID instance_id);
SDL_JoystickID | instance_id | the joystick instance ID. |
(char *) Returns the mapping string. Returns NULL if no mapping is available. This should be freed with SDL_free() when it is no longer needed.
This can be called before any gamepads are opened.
This function is available since SDL 3.1.3.