SDL_GetGamepadButtonLabelForType - Man Page

Get the label of a button on a gamepad.

Header File

Defined in SDL3/SDL_gamepad.h

Synopsis

#include "SDL3/SDL.h"

SDL_GamepadButtonLabel SDL_GetGamepadButtonLabelForType(SDL_GamepadType type, SDL_GamepadButton button);

Function Parameters

type

the type of gamepad to check.

button

a button index (one of the SDL_GamepadButton
values).

Return Value

( SDL_GamepadButtonLabel ) Returns the

SDL_GamepadButtonLabel
enum corresponding to the button label.

Availability

This function is available since SDL 3.2.0.

See Also

·(3), SDL_GetGamepadButtonLabel(3)

Referenced By

SDL_GetGamepadButtonLabel(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS