SDL_GetGamepadStringForButton

Function SDL_GetGamepadStringForButton 

Source
pub unsafe extern "C" fn SDL_GetGamepadStringForButton(
    button: SDL_GamepadButton,
) -> *const c_char
Expand description

Convert from an SDL_GamepadButton enum to a string.

§Parameters

§Return value

Returns 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.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also