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

# XInputOnGameInput (API の内容)

> XInputOnGameInput

# XInputOnGameInput

Microsoft Game Development Kit (GDK) には、GameInput 上に XInput API を実装したヘッダー ファイル XInputOnGameInput.h が付属しています。特にキーボードとマウス、その他の入力デバイスを利用したい場合は、GameInput への直接移植をお勧めします。ただし、既存の XInput コードを変更せずに、初期の移植作業をブートストラップする目的で XInputOnGameInput ラッパーを使用することもできます。

## 関数

| 関数 | 説明 |
| - | - |
| [XInputEnable](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputenable.md) | XInputEnable API リファレンス |
| [XInputGetAudioDeviceIds](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputgetaudiodeviceids.md) | 指定したコントローラーに接続されたヘッドセットのオーディオ レンダリング デバイスとキャプチャ デバイスの ID を取得します。 |
| [XInputGetBatteryInformation](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputgetbatteryinformation.md) | ワイヤレス コントローラーのバッテリーの種類と充電状態を取得します。 |
| [XInputGetCapabilities](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputgetcapabilities.md) | 接続されたコントローラーの機能を取得します。 |
| [XInputGetDeviceId](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputgetdeviceid.md) | 指定したコントローラーのデバイス ID を取得します。 |
| [XInputGetKeystroke](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputgetkeystroke.md) | XInputGetKeystroke API リファレンス |
| [XInputGetState](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputgetstate.md) | 指定したコントローラーの現在の状態を取得します。 |
| [XInputGetStateWithToken](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputgetstatewithtoken.md) | 指定したコントローラーの現在の状態を取得し、D3DX フレーム パイプライン トークンに関連付けます。 |
| [XInputOnGameInputInitialize](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputongameinputinitialize.md) | XInputOnGameInputInitialize API リファレンス |
| [XInputOnGameInputUninitialize](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputongameinputuninitialize.md) | XInputOnGameInputUninitialize API リファレンス |
| [XInputSetState](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputsetstate.md) | 指定した 2 モーター コントローラーにバイブレーション データを送信します。 |
| [XInputSetStateEx](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputsetstateex.md) | 指定したコントローラーにバイブレーション データを送信します。新しいコントローラーの 4 モーター バイブレーション機能をサポートします。 |

## 構造体

| 構造体 | 説明 |
| - | - |
| [XINPUT\_BATTERY\_INFORMATION](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_battery_information.md) | バッテリーの種類と充電状態を表します。 |
| [XINPUT\_CAPABILITIES](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_capabilities.md) | XINPUT\_CAPABILITIES API リファレンス |
| [XINPUT\_GAMEPAD](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_gamepad.md) | XINPUT\_GAMEPAD API リファレンス |
| [XINPUT\_KEYSTROKE](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_keystroke.md) | XInputGetKeystroke 関数によって返されるキーストローク データを表します。 |
| [XINPUT\_STATE](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_state.md) | コントローラーの状態を表します。 |
| [XINPUT\_VIBRATION](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_vibration.md) | 2 モーター コントローラーのバイブレーション機能におけるモーター速度を表します。 |
| [XINPUT\_VIBRATION\_EX](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_vibration_ex.md) | 4 モーター コントローラーのバイブレーション機能におけるモーター速度を表します。 |

## 概念ドキュメント

* [XInput から GameInput への移植](https://docs.xbox.com/ja-jp/build/core-features/common/input/porting/input-porting-xinput.md)

## 関連項目

[Input API リファレンス](https://docs.xbox.com/ja-jp/reference/input/gc-reference-input-toc.md)


## Related topics

- [XtfInput (API の内容)](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfinput/xtfinput-xbox-microsoft-n.md)
- [IGameInputRawDeviceReport (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
- [XInput から GameInput への移植](https://docs.xbox.com/ja-jp/build/core-features/common/input/porting/input-porting-xinput.md)
- [XGameUI (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)
- [IXtfInputClient インターフェイス (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfinput/classes/IXtfInputClient/ixtfinputclient-xtfinput-xbox-windows-t.md)
