Get the label of a button on a gamepad.
Defined in <SDL3/SDL_gamepad.h>
SDL_GamepadButtonLabel SDL_GetGamepadButtonLabel(SDL_Gamepad *gamepad, SDL_GamepadButton button);
SDL_Gamepad * | gamepad | a gamepad. |
SDL_GamepadButton | button | a button index (one of the SDL_GamepadButton values). |
(SDL_GamepadButtonLabel) Returns the SDL_GamepadButtonLabel enum corresponding to the button label.
This function is available since SDL 3.1.3.