Function SDL_GetGamepadButtonLabel
pub unsafe extern "C" fn SDL_GetGamepadButtonLabel(
gamepad: *mut SDL_Gamepad,
button: SDL_GamepadButton,
) -> SDL_GamepadButtonLabel
Available on crate feature
dep_sdl3
only.Expand description
Get the label of a button on a gamepad.
§Parameters
gamepad
: a gamepad.button
: a button index (one of theSDL_GamepadButton
values).
§Return value
Returns the SDL_GamepadButtonLabel
enum corresponding to the button label.
§Availability
This function is available since SDL 3.2.0.