SDL_GetGamepadStringForButton

Convert from an SDL_GamepadButton enum to a string.

extern (C) nothrow @nogc extern
const(char)**
SDL_GetGamepadStringForButton

Parameters

button SDL_GamepadButton

an enum value for a given SDL_GamepadButton.

Return Value

Type: const(char)**

a string for the given button, or NULL if an invalid button is specified. The string returned is of the format used by SDL_Gamepad mapping strings.

See Also

Meta