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

# IGameInput::CreateDispatcher

> IGameInput::CreateDispatcher

# IGameInput::CreateDispatcher

创建用于手动调度 GameInput 后台工作的调度程序。

## 语法

```cpp theme={null}
HRESULT CreateDispatcher(
    IGameInputDispatcher** dispatcher
);
```

### 参数

*dispatcher*   \_COM\_Outptr\_\
类型：IGameInputDispatcher\*\*

创建的调度程序，将用于处理后台工作。

### 返回值

类型：HRESULT

[输入 API 概述](https://docs.xbox.com/zh-CN/build/core-features/common/input/overviews/input-overview.md)\
[IGameInput](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinput/igameinput.md)\
[IGameInputDispatcher](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/IGameInputDispatcher/igameinputdispatcher.md)\
[IGameInputDispatcher::Dispatch](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_dispatch.md)\
[IGameInputDispatcher::OpenWaitHandle](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_openwaithandle.md)

## 版本历史

| 版本 | 变更 |
| - | - |
| **v0** | 引入。 |


## Related topics

- [IGameInput::CreateAggregateDevice](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinput/methods/igameinput_createaggregatedevice.md)
- [GameInput 工作队列](https://docs.xbox.com/zh-CN/build/core-features/common/input/advanced/input-work-queues.md)
- [Dispatch](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_dispatch.md)
- [OpenWaitHandle](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_openwaithandle.md)
- [GameInputCreate](https://docs.xbox.com/zh-CN/reference/input/gameinput/functions/gameinputcreate.md)
