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

# GAMEPAD_REPORT (estructura)

> GAMEPAD_REPORT (estructura)

# GAMEPAD\_REPORT (estructura)

Una instantánea del estado de un mando.

## Sintaxis

```cpp theme={null}
typedef struct GAMEPAD_REPORT {
    UINT16 Buttons;
    UINT16 LeftTrigger;
    UINT16 RightTrigger;
    INT16 LeftThumbstickX;
    INT16 LeftThumbstickY;
    INT16 RightThumbstickX;
    INT16 RightThumbstickY;
} GAMEPAD_REPORT, *PGAMEPAD_REPORT;  
```

##### Miembros

**Buttons**\
Una combinación de valores de marca de [GAMEPAD\_BUTTONS](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/enumerations/GAMEPAD_BUTTONS-typedef-xtfinput-xbox-windows-t.md) que representan el estado de los botones del mando.

**LeftTrigger**\
Valor entre 0 y 1023 que indica cuánto se presiona el gatillo izquierdo.

**RightTrigger**\
Valor entre 0 y 1023 que indica cuánto se presiona el gatillo derecho.

**LeftThumbstickX**\
Valor entre -32768 y 32767 que indica la posición del stick izquierdo en el eje x.

**LeftThumbstickY**\
Valor entre -32768 y 32767 que indica la posición del stick izquierdo en el eje y.

**RightThumbstickX**\
Valor entre -32768 y 32767 que indica la posición del stick derecho en el eje x.

**RightThumbstickY**\
Valor entre -32768 y 32767 que indica la posición del stick derecho en el eje y.

## Comentarios

**GAMEPAD\_REPORT** se usa para enviar el estado deseado de un mando simulado a una consola de desarrollo. Enviará estados individuales del mando a la consola mediante [IXtfInputClient::SendGamepadReport](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/sendgamepadreport-ixtfinputclient-xtfinput-xbox-windows-m.md). Al hacer esto repetidamente, podrá simular una secuencia de entrada del mando en la consola de desarrollo. Deberá enviar los informes de juego a un mando virtual creado por [IXtfInputClient::ConnectGamepad](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/connectgamepad-ixtfinputclient-xtfinput-xbox-windows-m.md).

## Requisitos

**Encabezado:** xtfinput.h

**Biblioteca:** xtfinput.lib

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

## Consulte también

[XtfInput](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/xtfinput-xbox-microsoft-n.md)\
[IXtfInputClient::SendGamepadReport](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/sendgamepadreport-ixtfinputclient-xtfinput-xbox-windows-m.md)\
[IXtfInputClient::ConnectGamepad](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/connectgamepad-ixtfinputclient-xtfinput-xbox-windows-m.md)


## Related topics

- [XtfInput (contenido de la API)](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/xtfinput-xbox-microsoft-n.md)
- [GAMEPAD_REPORT_EX](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/structures/gamepad_report_ex.md)
- [SendGamepadReport](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/sendgamepadreport-ixtfinputclient-xtfinput-xbox-windows-m.md)
- [SendGamepadReportEx](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/ixtfinputclient_sendgamepadreportex.md)
- [SendGamepadReportWithAudio](https://docs.xbox.com/es/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/ixtfinputclient_sendgamepadreportwithaudio.md)
