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

# GameInputVersion

> GameInputVersion

# GameInputVersion

描述由四個部分組成的版本號碼。

## 語法

```cpp theme={null}
struct GameInputVersion
{  
    uint16_t major;  
    uint16_t minor;  
    uint16_t build;  
    uint16_t revision;  
};
```

### 成員

*major*\

類型：uint16\_t

主要版本號碼。

*minor*\

類型：uint16\_t

次要版本號碼。

*build*\

類型：uint16\_t

組建編號。

*revision*\

類型：uint16\_t

修訂編號。

## 備註

此結構用於 [GameInputDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputdeviceinfo.md) 結構中。`GameInputDeviceInfo` 由 [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md) 方法使用。

此結構可支援硬體、韌體或軟體的版本控制。

## 需求

**標頭：** GameInput.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[GameInput 概觀](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-overview.md)\
[GameInput](https://docs.xbox.com/zh-TW/reference/input/gameinput/gameinput_members.md)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v2** | 以與 v0 相同的配置**重新引進**：`major`、`minor`、`build`、`revision`。 |
| **v1** | **不存在** (已從 v0 移除)。 |
| **v0** | 已引進。 |


## Related topics

- [GameInput API 成員](https://docs.xbox.com/zh-TW/reference/input/gameinput/gameinput_members.md)
- [GameInputDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputdeviceinfo.md)
- [GameInputString (已淘汰)](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/structs/gameinputstring.md)
- [GetDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md)
- [GameInput API 版本控制](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-versioning.md)
