Function sdl2_sys::SDL_GameControllerGetStringForButton
source ยท pub unsafe extern "C" fn SDL_GameControllerGetStringForButton(
button: SDL_GameControllerButton,
) -> *const c_char
Expand description
Convert from an SDL_GameControllerButton enum to a string.
The caller should not SDL_free() the returned string.
\param button an enum value for a given SDL_GameControllerButton \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_GameController mapping strings.
\since This function is available since SDL 2.0.0.
\sa SDL_GameControllerGetButtonFromString