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

# GameInputDeviceFamily

> GameInputDeviceFamily

# GameInputDeviceFamily

枚举输入设备的系列。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
enum GameInputDeviceFamily
{
    GameInputFamilyVirtual   = -1,
    GameInputFamilyUnknown   =  0,
    GameInputFamilyXboxOne   =  1,
    GameInputFamilyXbox360   =  2,
    GameInputFamilyHid       =  3,
    GameInputFamilyI8042     =  4,
    GameInputFamilyAggregate =  5,
};
```

<a id="constantsSection" />

## 常量

| 常量                       | 说明                                 |
| ------------------------ | ---------------------------------- |
| GameInputFamilyVirtual   | 表示平台上的虚拟化输入设备。                     |
| GameInputFamilyUnknown   | 表示未知的设备系列。                         |
| GameInputFamilyXboxOne   | 表示由 XboxGIP 或 XInputHID 驱动程序管理的设备。 |
| GameInputFamilyXbox360   | 表示由 XUSB22 驱动程序管理的设备。              |
| GameInputFamilyHid       | 表示通用人机接口设备 (HID)。                  |
| GameInputFamilyI8042     | 表示通过 i8042 总线连接的输入设备。              |
| GameInputFamilyAggregate | 表示聚合输入设备。                          |

<a id="remarksSection" />

## 备注

此枚举在 [GameInputDeviceInfo](/reference/input/gameinput/structs/gameinputkeyboardinfo) 结构中使用。`GameInputDeviceInfo` 由 [GetDeviceInfo](/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo) 函数使用。

有关详细信息，请参阅 [GameInput 设备](/build/core-features/common/input/overviews/input-devices)。

<a id="requirementsSection" />

## 要求

**标头：** GameInput.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

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

## 版本历史

| 版本     | 变更                                                                                             |
| ------ | ---------------------------------------------------------------------------------------------- |
| **v3** | **新增** `GameInputFamilyUnknown`（值为 0）。**重新编号** `GameInputFamilyAggregate` 从值 0 更改为值 5，以实现聚合设备。 |
| **v0** | 引入。                                                                                            |

## 附录：以前的版本

### v0

```cpp theme={null}
enum GameInputDeviceFamily
{
    GameInputFamilyVirtual   = -1,
    GameInputFamilyAggregate =  0,
    GameInputFamilyXboxOne   =  1,
    GameInputFamilyXbox360   =  2,
    GameInputFamilyHid       =  3,
    GameInputFamilyI8042     =  4,
};
```


## Related topics

- [GameInput](/zh-CN/reference/input/gameinput/gameinput_members.md)
- [MicrosoftGame.config 元素 - TargetDeviceFamilyForDLC](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-targetdevicefamilyfordlc.md)
- [GameInputDeviceStatus](/zh-CN/reference/input/gameinput/enums/gameinputdevicestatus.md)
- [GameInputDeviceCapabilities](/zh-CN/reference/input/gameinput/deprecated/enums/gameinputdevicecapabilities.md)
- [GameInputDeviceCallback](/zh-CN/reference/input/gameinput/functions/gameinputdevicecallback.md)
