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

# XInputOnGameInputInitialize

> XInputOnGameInputInitialize

# XInputOnGameInputInitialize

XInput ラッパー API を初期化します。

## 構文

```cpp theme={null}
HRESULT XInputOnGameInputInitialize(  
)  
```

### パラメーター

### 戻り値

型: HRESULT

関数の結果。

## 解説

この関数を使用するには、`XINPUT_ON_GAMEINPUT_EXPLICIT_INITIALIZATION` マクロを定義する必要があります。既定では、XInput はバックグラウンドで初期化されるため、XInput 関数への最初の呼び出しは、初期化作業とバンドルされてかなり時間がかかります。`XINPUT_ON_GAMEINPUT_EXPLICIT_INITIALIZATION` を使用すると、XInput の初期化と初期化解除をより細かく制御できます。詳細と明示的な初期化のメリットについては、[XInput から GameInput への移植](/build/core-features/common/input/porting/input-porting-xinput#optimizingSection)を参照してください。

## 要件

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

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

**対応プラットフォーム:** XBOX One ファミリー本体および XBOX Series 本体

## 関連項目

[XInput から GameInput への移植](/build/core-features/common/input/porting/input-porting-xinput)\
[XInputOnGameInput](/reference/input/xinputongameinput/xinputongameinput_members)\
[XInputOnGameInputUninitialize](/reference/input/xinputongameinput/functions/xinputongameinputuninitialize)


## Related topics

- [XInputOnGameInputUninitialize](/ja-jp/reference/input/xinputongameinput/functions/xinputongameinputuninitialize.md)
- [XInputOnGameInput](/ja-jp/reference/input/xinputongameinput/xinputongameinput_members.md)
- [XInput から GameInput への移植](/ja-jp/build/core-features/common/input/porting/input-porting-xinput.md)
- [XGameStreamingIsTouchInputEnabled](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingistouchinputenabled.md)
- [GameInput](/ja-jp/reference/input/gameinput/gameinput_members.md)
