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

# IGameInput::CreateDispatcher

> IGameInput::CreateDispatcher

# IGameInput::CreateDispatcher

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

## 语法

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

### 参数

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

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

### 返回值

类型：HRESULT

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

## 版本历史

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


## Related topics

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