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

# GameInputDeviceFamily

> GameInputDeviceFamily

# GameInputDeviceFamily

枚举输入设备的系列。

## 语法

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

## 常量

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

## 备注

此枚举在 [GameInputDeviceInfo](https://docs.xbox.com/zh-CN/reference/input/gameinput/structs/gameinputkeyboardinfo.md) 结构中使用。`GameInputDeviceInfo` 由 [GetDeviceInfo](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md) 函数使用。

有关详细信息，请参阅 [GameInput 设备](https://docs.xbox.com/zh-CN/build/core-features/common/input/overviews/input-devices.md)。

## 要求

**标头：** GameInput.h

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

## 另请参阅

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

## 版本历史

| 版本 | 变更 |
| - | - |
| **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 API 成员](https://docs.xbox.com/zh-CN/reference/input/gameinput/gameinput_members.md)
- [TargetDeviceFamilyForDLC 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-targetdevicefamilyfordlc.md)
- [GameInputDeviceStatus](https://docs.xbox.com/zh-CN/reference/input/gameinput/enums/gameinputdevicestatus.md)
- [GameInputDeviceCallback](https://docs.xbox.com/zh-CN/reference/input/gameinput/functions/gameinputdevicecallback.md)
- [GameInputDeviceCapabilities（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/enums/gameinputdevicecapabilities.md)
