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

# GameInput ワークキュー

> GameInput ワークキュー

<a id="introductionSection" />

`GameInput` API は、入力デバイスの接続や切断など、内部的な非同期イベントを処理する必要が時折あります。これらのイベントは頻繁には発生しません。しかし、アプリケーションは、より頻繁にディスパッチする必要があるコールバックを登録することもできます。既定では、`GameInput` はこれらのイベントを処理するため、わずかに高い優先度 (`THREAD_PRIORITY_ABOVE_NORMAL`) で実行されるワーカースレッドを作成します。

この作業がいつ、どのスレッド/プロセッサ上で行われるかをより詳細に制御したいアプリケーションは、[IGameInputDispatcher](/reference/input/gameinput/interfaces/IGameInputDispatcher/igameinputdispatcher) インターフェイスを介してこれらのイベントの処理を手動で制御できます。このインターフェイスは、[IGameInput](/reference/input/gameinput/interfaces/igameinput/igameinput) インターフェイスの [CreateDispatcher](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_createdispatcher) メソッドを呼び出すことで取得します。このインターフェイスは、`GameInput` の内部ワークキューから作業を手動でディスパッチするために使用できる 2 つのメソッドを公開しています。[Dispatch](/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_dispatch) メソッドを使用して、`GameInput` ワークキューから保留中の作業 (存在する場合) をディスパッチします。アプリケーションはこのメソッドを定期的に呼び出すことができます。あるいは、ディスパッチャーの [OpenWaitHandle](/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_openwaithandle) メソッドから返されるハンドルで待機して、ディスパッチが必要な作業がキューに追加されたときを検出できます。

アプリケーションがディスパッチャーインターフェイスへの参照を保持している間は、作業のディスパッチを制御し続けます。ディスパッチャーインターフェイスへのすべての参照が解放されると、`GameInput` はイベントを処理するために内部ワーカースレッドの使用に戻ります。

<a id="seeAlsoSection" />

## リファレンス API ドキュメント

* [GameInput (API 内容)](/reference/input/gameinput/gameinput_members)

## 関連項目

[GameInput の基礎](/build/core-features/common/input/overviews/input-fundamentals)

[GameInput の高度なトピック](/build/core-features/common/input/advanced/input-advanced-topics)

[Input API リファレンス](/reference/input/gc-reference-input-toc)


## Related topics

- [GameInput の高度なトピック](/ja-jp/build/core-features/common/input/advanced/input-advanced-topics.md)
- [GameInput コールバック](/ja-jp/build/core-features/common/input/advanced/input-callbacks.md)
- [GameInput の高度なトピック: フォース フィードバックとコールバック](/ja-jp/build/core-features/common/input/advanced/index.md)
- [Microsoft Game Development Kit ネットワークの概要](/ja-jp/build/console-features/networking/introduction-networking.md)
- [ネットワーク初期化状態の検出](/ja-jp/build/console-features/networking/initialization-connectivity-networking.md)
