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

# IGameInputDispatcher::Dispatch

> IGameInputDispatcher::Dispatch

# IGameInputDispatcher::Dispatch

ディスパッチャーのキュー内の作業を実行します。

## 構文

```cpp theme={null}
bool Dispatch(
    uint64_t quotaInMicroseconds
);
```

### パラメーター

*quotaInMicroseconds*   \_In\_\
型: uint64\_t

ディスパッチャーがタスクを実行するための時間。ディスパッチャーは処理時間を指定された期間内に収めようとしますが、これは保証された上限ではありません。

### 戻り値

型: bool

ディスパッチャーのキューに保留中の作業項目がある場合は true を返します。作業項目が残っていない場合は false を返します。キューがフラッシュされた時点で返されます。

## 解説

`IGameInputDispatcher::Dispatch` は、ディスパッチャーのキュー内の作業を実行します。このメソッドは、`quotaInMicroseconds` パラメーターがゼロに設定されていても、少なくともキューから 1 つの項目をフラッシュします。クォータ時間をゼロにして呼び出すことで、単一の項目を実行し、経過時間に応じて、さらに項目をディスパッチするかどうかを決定できます。GameInput API の中級および上級の使用例については、[高度な GameInput トピック](/build/core-features/common/input/advanced/input-advanced-topics) を参照してください。

## 要件

**ヘッダー:** GameInput.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリ本体、および XBOX Series 本体

## 関連項目

[GameInput の概要](/build/core-features/common/input/overviews/input-overview)\
[IGameInputDispatcher](/reference/input/gameinput/interfaces/IGameInputDispatcher/igameinputdispatcher)

## バージョン履歴

| バージョン  | 変更内容     |
| ------ | -------- |
| **v0** | 導入されました。 |


## Related topics

- [IGameInput::CreateDispatcher](/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_createdispatcher.md)
- [IGameInputDispatcher::OpenWaitHandle](/ja-jp/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_openwaithandle.md)
- [GameInput](/ja-jp/reference/input/gameinput/gameinput_members.md)
- [GameInput ワークキュー](/ja-jp/build/core-features/common/input/advanced/input-work-queues.md)
- [Dispatch](/ja-jp/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_dispatch_public.md)
