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

# XINPUT_STATE

> XINPUT_STATE

# XINPUT\_STATE

Describe el estado de un mando.

<a id="syntaxSection" />

## Sintaxis

```cpp theme={null}
typedef struct XINPUT_STATE {  
    DWORD dwPacketNumber;  
    XINPUT_GAMEPAD Gamepad;  
} XINPUT_STATE  
```

<a id="membersSection" />

### Miembros

*dwPacketNumber*\
Tipo: DWORD

Número de paquete de estado. El número de paquete indica si el estado del mando ha cambiado. Si el valor es el mismo en objetos `XINPUT_STATE` devueltos secuencialmente, el estado del mando no ha cambiado.

*Gamepad*\
Tipo: [XINPUT\_GAMEPAD](/reference/input/xinputongameinput/structs/xinput_gamepad)

Objeto [XINPUT\_GAMEPAD](/reference/input/xinputongameinput/structs/xinput_gamepad) que contiene el estado actual de un mando.

<a id="remarksSection" />

## Comentarios

El valor de *dwPacketNumber* solo se incrementa si el estado del mando cambió desde la última vez que se sondeó el mando.

Esta estructura la usan las funciones [XInputGetState](/reference/input/xinputongameinput/functions/xinputgetstate) y [XInputGetStateWithToken](/reference/input/xinputongameinput/functions/xinputgetstatewithtoken).

Para obtener más información, consulte [El contenedor XInputOnGameInput](/build/core-features/common/input/porting/input-porting-xinput#xinputWrapperSection).

<a id="requirementsSection" />

## Requisitos

**Encabezado:** XInputOnGameInput.h

**Plataformas compatibles:** consolas de la familia XBOX One y consolas XBOX Series

<a id="seealsoSection" />

## Consulte también

[Portabilidad de XInput a GameInput](/build/core-features/common/input/porting/input-porting-xinput)\
[XInputOnGameInput](/reference/input/xinputongameinput/xinputongameinput_members)


## Related topics

- [XInputGetState](/es/reference/input/xinputongameinput/functions/xinputgetstate.md)
- [XINPUT_GAMEPAD](/es/reference/input/xinputongameinput/structs/xinput_gamepad.md)
- [XInputGetStateWithToken](/es/reference/input/xinputongameinput/functions/xinputgetstatewithtoken.md)
- [XInputOnGameInput](/es/reference/input/xinputongameinput/xinputongameinput_members.md)
- [XINPUT_VIBRATION](/es/reference/input/xinputongameinput/structs/xinput_vibration.md)
