Get the mapping of a gamepad.
Defined in <SDL3/SDL_gamepad.h>
instance_id | the joystick instance ID |
Returns the mapping string. Must be freed with SDL_free(). Returns NULL if no mapping is available.
This can be called before any gamepads are opened.
This function is available since SDL 3.0.0.