SDL_SetGamepadMapping

Set the current mapping of a joystick or gamepad.

Details about mappings are discussed with SDL_AddGamepadMapping().

extern (C) nothrow @nogc extern
bool
SDL_SetGamepadMapping

Parameters

instance_id SDL_JoystickID

the joystick instance ID.

mapping const(char)**

the mapping to use for this device, or NULL to clear the mapping.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

See Also

Meta