> ## 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-TW/build/core-features/common/input/overviews/input-overview.md)\
[IGameInput](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinput/igameinput.md)\
[IGameInputDispatcher](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/IGameInputDispatcher/igameinputdispatcher.md)\
[IGameInputDispatcher::Dispatch](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_dispatch.md)\
[IGameInputDispatcher::OpenWaitHandle](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_openwaithandle.md)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v0** | 已推出。 |


## Related topics

- [IGameInput::CreateAggregateDevice](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinput/methods/igameinput_createaggregatedevice.md)
- [IGameInput (介面內容)](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinput/igameinput.md)
- [IGameInputDispatcher (介面內容)](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/IGameInputDispatcher/igameinputdispatcher.md)
- [GameInput 工作佇列](https://docs.xbox.com/zh-TW/build/core-features/common/input/advanced/input-work-queues.md)
- [Dispatch](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_dispatch.md)
