> ## 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.

# GAMEPAD_BUTTONS (enumeración)

> GAMEPAD_BUTTONS (enumeración)

# GAMEPAD\_BUTTONS (enumeración)

Marcas de identificador de los botones del mando.

Los valores de **GAMEPAD\_BUTTONS** se usan en un [GAMEPAD\_REPORT](/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t) para indicar qué botones están presionados actualmente.

<a id="syntaxSection" />

## Sintaxis

```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         | Descripción                                                  |
| ----------------- | ------------------------------------------------------------ |
| RIGHT\_THUMBSTICK | El stick derecho                                             |
| LEFT\_THUMBSTICK  | El stick izquierdo                                           |
| RIGHT\_SHOULDER   | El botón superior derecho                                    |
| LEFT\_SHOULDER    | El botón superior izquierdo                                  |
| DPAD\_RIGHT       | El botón derecho de la cruceta de dirección                  |
| DPAD\_LEFT        | El botón izquierdo de la cruceta de dirección                |
| DPAD\_DOWN        | El botón abajo de la cruceta de dirección                    |
| DPAD\_UP          | El botón arriba de la cruceta de dirección.                  |
| Y                 | El botón Y                                                   |
| X                 | El botón X                                                   |
| B                 | El botón B                                                   |
| A                 | El botón A                                                   |
| VIEW              | El botón Ver                                                 |
| MENU              | El botón Menú                                                |
| NEXUS             | El botón Nexus                                               |
| ENROLL            | El botón Enroll                                              |
| NONE              | Valor que indica que no hay botones presionados actualmente. |

<a id="requirements" />

## Comentarios

**GAMEPAD\_BUTTONS** es una enumeración de marcas, por lo que los valores se pueden combinar en un único valor que representa varios botones presionados. **GAMEPAD\_BUTTONS** es un miembro de la estructura [GAMEPAD\_REPORT](/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t). Se combina con información adicional sobre las entradas que no son botones, como los gatillos y los valores de los sticks, para representar el estado de un dispositivo de entrada de mando. Estos estados se envían a una consola mediante [IXtfInputClient](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/ixtfinputclient-xtfinput-xbox-windows-t).

## Requisitos

**Encabezado:** xtfinput.h

**Biblioteca:** xtfinput.lib

**Plataformas compatibles:** Windows (para herramientas de consola XBOX)

## Consulte también

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


## Related topics

- [GameInputGamepadButtons](/es/reference/input/gameinput/enums/gameinputgamepadbuttons.md)
- [GAMEPAD_MORE_BUTTONS](/es/reference/tools/xtf/xtfinput/enumerations/gamepad_more_buttons.md)
- [GAMEPAD_REPORT (estructura)](/es/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t.md)
- [GAMEPAD_REPORT_EX](/es/reference/tools/xtf/xtfinput/structures/gamepad_report_ex.md)
- [IXtfInputClient::SendGamepadReport (método)](/es/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/sendgamepadreport-ixtfinputclient-xtfinput-xbox-windows-m.md)
