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

> Obtient la version matérielle du périphérique d'entrée.

Obtient la version matérielle du périphérique d'entrée.

## Syntaxe

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

### Paramètres

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

Reçoit la version matérielle du périphérique.

### Valeur de retour

Type : void

## Remarques

Les périphériques ne signalent pas tous une version matérielle. Si le périphérique n'en signale aucune, tous les membres de *version* sont définis sur 0.

La version matérielle ne change pas pendant toute la durée de vie de l'objet périphérique.

Dans GameInput v3 et les versions antérieures, ces informations étaient disponibles via le membre `hardwareVersion` de la structure [GameInputDeviceInfo](https://docs.xbox.com/fr/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) retournée par [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/fr/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md).

## Configuration requise

**En-tête :** GameInput.h

**Bibliothèque :** gameinput.lib

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

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

## Historique des versions

| Version | Modifications |
| - | - |
| **v4** | Introduite. |


## Related topics

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