Get the mapping of a gamepad.
char* SDL_GetGamepadInstanceMapping(SDL_JoystickID instance_id);
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.