logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetGamepadButtonLabel - Get the label of a button on a gamepad.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

gamepad
              a gamepad.

       button a button index (one of the SDL_GamepadButton
               values).

Header File

       Defined in SDL3/SDL_gamepad.h

Name

       SDL_GetGamepadButtonLabel - Get the label of a button on a gamepad.

Return Value

       ( SDL_GamepadButtonLabel ) Returns the

       SDL_GamepadButtonLabel
        enum corresponding to the button label.

See Also

(3), SDL_GetGamepadButtonLabelForType(3)

Simple Directmedia Layer                           SDL 3.2.10                       SDL_GetGamepadButtonLabel(3)

Synopsis

#include"SDL3/SDL.h"SDL_GamepadButtonLabelSDL_GetGamepadButtonLabel(SDL_Gamepad*gamepad,SDL_GamepadButtonbutton);

See Also