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

# GameInputEnumerationKind（已弃用）

> 枚举输入设备的枚举行为类型（已在 v4 中移除）。

> [!WARNING]
>
> **已弃用。** 此枚举已在 GameInput v4 中移除，当前 API 中不再提供。没有替代项：在 v4 中，[IGameInput::RegisterDeviceCallback](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md) 始终以异步方式枚举已连接的设备。

枚举输入设备的枚举行为类型。

## 语法

```cpp theme={null}
enum GameInputEnumerationKind
{
    GameInputNoEnumeration       = 0,
    GameInputAsyncEnumeration    = 1,
    GameInputBlockingEnumeration = 2
};
```

## 常量

| 常量 | 说明 |
| - | - |
| GameInputNoEnumeration | 禁用输入设备的枚举。 |
| GameInputAsyncEnumeration | 以异步方式枚举输入设备。 |
| GameInputBlockingEnumeration | 以同步方式枚举输入设备。 |

## 备注

此枚举由 [IGameInput::RegisterDeviceCallback](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md) 方法使用。`GameInputAsyncEnumeration` 和 `GameInputBlockingEnumeration` 都会生成初始一轮回调。`GameInputBlockingEnumeration` 会使 `RegisterDeviceCallback` 阻塞，直到所有初始回调都已调用。

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

## 要求

**头文件：** GameInput.h

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

## 另请参阅

[已弃用的 GameInput API 成员](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[IGameInput::RegisterDeviceCallback](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md)\
[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)

## 版本历史

| 版本 | 变更 |
| - | - |
| **v4** | 已移除。 |
| **v0** | 引入。 |


## Related topics

- [GameInputRawDeviceItemCollectionKind（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/enums/gameinputrawdeviceitemcollectionkind.md)
- [GameInputRawDevicePhysicalUnitKind（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/enums/gameinputrawdevicephysicalunitkind.md)
- [GameInputEnumerationKind](https://docs.xbox.com/zh-CN/reference/input/gameinput/enums/gameinputenumerationkind.md)
- [已弃用的 GameInput API 成员](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [GameInputLocation（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/enums/gameinputlocation.md)
