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

# IGameInputDevice::GetHardwareVersion

> Obtiene la versión de hardware del dispositivo de entrada.

Obtiene la versión de hardware del dispositivo de entrada.

## Sintaxis

```cpp theme={null}
void GetHardwareVersion(
    GameInputVersion* version
);
```

### Parámetros

*version*   \_Out\_\
Tipo: [GameInputVersion](https://docs.xbox.com/es/reference/input/gameinput/structs/gameinputversion.md)\*

Recibe la versión de hardware del dispositivo.

### Valor devuelto

Tipo: void

## Comentarios

No todos los dispositivos notifican una versión de hardware. Si el dispositivo no la notifica, todos los miembros de *version* se establecen en 0.

La versión de hardware no cambia durante la vida útil del objeto de dispositivo.

En GameInput v3 y versiones anteriores, esta información estaba disponible en el miembro `hardwareVersion` de la estructura [GameInputDeviceInfo](https://docs.xbox.com/es/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) devuelta por [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md).

## Requisitos

**Encabezado:** GameInput.h

**Biblioteca:** gameinput.lib

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

## Consulte también

[Información general de GameInput](https://docs.xbox.com/es/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDevice](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)\
[GameInputVersion](https://docs.xbox.com/es/reference/input/gameinput/structs/gameinputversion.md)\
[IGameInputDevice::GetFirmwareVersion](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getfirmwareversion.md)\
[IGameInputDevice::GetRevisionNumber](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getrevisionnumber.md)

## Historial de versiones

| Versión | Cambios |
| - | - |
| **v4** | Se introdujo. |


## Related topics

- [IGameInputDevice::GetFirmwareVersion](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getfirmwareversion.md)
- [GameInputVersion](https://docs.xbox.com/es/reference/input/gameinput/structs/gameinputversion.md)
- [IGameInputDevice::GetRevisionNumber](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getrevisionnumber.md)
- [IGameInputDevice::GetXInputDeviceIndex](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getxinputdeviceindex.md)
- [IGameInputDevice::GetDeviceFamily](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdevicefamily.md)
