Get the label of a button on a gamepad.
Defined in <SDL3/SDL_gamepad.h>
SDL_GamepadButtonLabel SDL_GetGamepadButtonLabelForType(SDL_GamepadType type, SDL_GamepadButton button);
SDL_GamepadType | type | the type of gamepad to check. |
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.