SDL_GetGamepadButtonLabelForType(3)

SDL_GetGamepadButtonLabelForType3

Get the label of a button on a gamepad.

Usage

#include "SDL3/SDL.h"

SDL_GamepadButtonLabel SDL_GetGamepadButtonLabelForType(SDL_GamepadType type, SDL_GamepadButton button);

Header file

Defined in SDL3/SDL_gamepad.h

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.