> ## 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](/ko/reference/input/xinputongameinput/functions/xinputongameinputuninitialize.md)
- [XInputOnGameInput](/ko/reference/input/xinputongameinput/xinputongameinput_members.md)
- [XInput에서 GameInput으로 포팅](/ko/build/core-features/common/input/porting/input-porting-xinput.md)
- [XGameStreamingIsTouchInputEnabled](/ko/reference/system/xgamestreaming/functions/xgamestreamingistouchinputenabled.md)
- [GameInput](/ko/reference/input/gameinput/gameinput_members.md)
