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

# GameInputVersion

> GameInputVersion

# GameInputVersion

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

<a id="syntaxSection" />

## 語法

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

<a id="membersSection" />

### 成員

*major*<br />
類型：uint16\_t

主要版本號碼。

*minor*<br />
類型：uint16\_t

次要版本號碼。

*build*<br />
類型：uint16\_t

組建編號。

*revision*<br />
類型：uint16\_t

修訂編號。

<a id="remarksSection" />

## 備註

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

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

<a id="requirementsSection" />

## 需求

**標頭：** GameInput.h

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

<a id="seealsoSection" />

## 另請參閱

[GameInput 概觀](/zh-TW/build/core-features/common/input/overviews/input-overview)\
[GameInput](/zh-TW/reference/input/gameinput/gameinput_members)

## 版本歷程記錄

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


## Related topics

- [GameInputVersion](/reference/input/gameinput/structs/gameinputversion.md)
- [GameInput](/reference/input/gameinput/gameinput_members.md)
- [GameInputDeviceInfo](/reference/input/gameinput/structs/gameinputdeviceinfo.md)
- [GameInput API versioning](/build/core-features/common/input/overviews/input-versioning.md)
- [IGameInput](/reference/input/gameinput/interfaces/igameinput/igameinput.md)
