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

> Gets the hardware version of the input device.

Gets the hardware version of the input device.

## Syntax

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

### Parameters

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

Receives the hardware version of the device.

### Return value

Type: void

## Remarks

Not all devices report a hardware version. If the device doesn't report one, all members of *version* are set to 0.

The hardware version doesn't change for the lifetime of the device object.

In GameInput v3 and earlier, this information was available from the `hardwareVersion` member of the [GameInputDeviceInfo](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) structure returned by [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md).

## Requirements

**Header:** GameInput.h

**Library:** gameinput.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

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

## Version History

| Version | Changes |
| - | - |
| **v4** | Introduced. |


## Related topics

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