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

# XInputOnGameInput

> XInputOnGameInput

# XInputOnGameInput

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

## 関数

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

## 構造体

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

## 概念ドキュメント

* [XInput から GameInput への移植](/build/core-features/common/input/porting/input-porting-xinput)

## 関連項目

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


## Related topics

- [XInputOnGameInputInitialize](/ja-jp/reference/input/xinputongameinput/functions/xinputongameinputinitialize.md)
- [XInputOnGameInputUninitialize](/ja-jp/reference/input/xinputongameinput/functions/xinputongameinputuninitialize.md)
- [XInputEnable](/ja-jp/reference/input/xinputongameinput/functions/xinputenable.md)
- [XInputGetCapabilities](/ja-jp/reference/input/xinputongameinput/functions/xinputgetcapabilities.md)
- [XInputGetKeystroke](/ja-jp/reference/input/xinputongameinput/functions/xinputgetkeystroke.md)
