setMapping static method
Set the current mapping of a joystick or gamepad.
Details about mappings are discussed with SDL_AddGamepadMapping().
\param instance_id the joystick instance ID. \param mapping the mapping to use for this device, or NULL to clear the mapping. \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
\sa SDL_AddGamepadMapping \sa SDL_GetGamepadMapping
extern SDL_DECLSPEC bool SDLCALL SDL_SetGamepadMapping(SDL_JoystickID instance_id, const char *mapping)
Implementation
static bool setMapping(int instanceId, String? mapping) {
return sdlSetGamepadMapping(instanceId, mapping);
}