SDL_GetGamepadButtonLabel - Man Page
Get the label of a button on a gamepad.
Synopsis
#include <SDL3/SDL_gamepad.h> SDL_GamepadButtonLabel SDL_GetGamepadButtonLabel(SDL_Gamepad *gamepad, SDL_GamepadButton button);
Function Parameters
- gamepad
a gamepad.
- button
a button index (one of the SDL_GamepadButton values).
Return Value
Returns the SDL_GamepadButtonLabel enum corresponding to the button label.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL_GetGamepadButtonLabelForType(3).
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS