> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Enumeração GAMEPAD_BUTTONS

> Enumeração GAMEPAD_BUTTONS

# Enumeração GAMEPAD\_BUTTONS

Sinalizadores de identificação dos botões do controle.

Os valores de **GAMEPAD\_BUTTONS** são usados em um [GAMEPAD\_REPORT](/pt-BR/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t) para indicar quais botões estão pressionados no momento.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
typedef enum GAMEPAD_BUTTONS
{
    RIGHT_THUMBSTICK = 0x8000,
    LEFT_THUMBSTICK = 0x4000,
    RIGHT_SHOULDER = 0x2000,
    LEFT_SHOULDER = 0x1000,
    DPAD_RIGHT = 0x800,
    DPAD_LEFT = 0x400,
    DPAD_DOWN = 0x200,
    DPAD_UP = 0x100,
    Y = 0x80,
    X = 0x40,
    B = 0x20,
    A = 0x10,
    VIEW = 0x8,
    MENU = 0x4,
    NEXUS = 0x2,
    ENROLL = 0x1,
    NONE = 0
} GAMEPAD_BUTTONS, *PGAMEPAD_BUTTONS;  
```

<a id="ID4E6C" />

## Constantes

| Constante | Descrição |
| - | - |
| RIGHT\_THUMBSTICK | O direcional analógico direito |
| LEFT\_THUMBSTICK | O direcional analógico esquerdo |
| RIGHT\_SHOULDER | O botão superior direito |
| LEFT\_SHOULDER | O botão superior esquerdo |
| DPAD\_RIGHT | O botão direito do direcional |
| DPAD\_LEFT | O botão esquerdo do direcional |
| DPAD\_DOWN | O botão para baixo do direcional |
| DPAD\_UP | O botão para cima do direcional. |
| Y | O botão Y |
| X | O botão X |
| B | O botão B |
| A | O botão A |
| VIEW | O botão Exibir |
| MENU | O botão Menu |
| NEXUS | O botão Nexus |
| ENROLL | O botão Enroll |
| NONE | Valor que indica que nenhum botão está pressionado no momento. |

<a id="requirements" />

## Comentários

**GAMEPAD\_BUTTONS** é uma enumeração de sinalizadores, portanto os valores podem ser combinados em um único valor que representa vários botões sendo pressionados. **GAMEPAD\_BUTTONS** é um membro do struct [GAMEPAD\_REPORT](/pt-BR/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t). Ele é combinado com informações adicionais sobre entradas que não são botões, como os valores dos gatilhos e dos analógicos, para representar o estado de um dispositivo de entrada gamepad. Esses estados são enviados para um console usando o [IXtfInputClient](/pt-BR/reference/tools/xtf/xtfinput/classes/IXtfInputClient/ixtfinputclient-xtfinput-xbox-windows-t).

## Requisitos

**Cabeçalho:** xtfinput.h

**Biblioteca:** xtfinput.lib

**Plataformas com suporte:** Windows (para ferramentas de console XBOX)

## Confira também

[XtfInput](/pt-BR/reference/tools/xtf/xtfinput/xtfinput-xbox-microsoft-n)\
[GAMEPAD\_REPORT](/pt-BR/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t)\
[IXtfInputClient](/pt-BR/reference/tools/xtf/xtfinput/classes/IXtfInputClient/ixtfinputclient-xtfinput-xbox-windows-t)


## Related topics

- [GameInputGamepadButtons](/pt-BR/reference/input/gameinput/enums/gameinputgamepadbuttons.md)
- [GAMEPAD_MORE_BUTTONS](/pt-BR/reference/tools/xtf/xtfinput/enumerations/gamepad_more_buttons.md)
- [IGameInputMapper::GetGamepadButtonMapping](/pt-BR/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getgamepadbuttonmappinginfo.md)
- [Estrutura GAMEPAD_REPORT](/pt-BR/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t.md)
- [GAMEPAD_REPORT_EX](/pt-BR/reference/tools/xtf/xtfinput/structures/gamepad_report_ex.md)
