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

# GetHapticInfo

> GetHapticInfo

# GetHapticInfo

입력 장치의 전체 햅틱 속성 및 기능에 대한 동적 정보를 제공합니다.

## 구문

```cpp theme={null}
HRESULT GetHapticInfo(
    GameInputHapticInfo* info);
```

### 매개변수

*info*   \_Out\_\
형식: [GameInputHapticInfo](https://docs.xbox.com/ko/reference/input/gameinput/structs/gameinputhapticinfo.md)\*

현재 장치에 대한 햅틱 메타데이터를 포함하는 구조체입니다.

### 반환값

형식: HRESULT

현재 장치에 대해 햅틱 기능이 준비되지 않은 경우(또는 사용할 수 없는 경우) `GAMEINPUT_E_HAPTIC_NOT_FOUND`를 반환합니다.

## 설명

`GetHapticInfo` 메서드는 현재 장치의 햅틱 메타데이터를 쿼리합니다. 햅틱은 Windows 오디오 스택에 의존하기 때문에, 장치 도착 시점에 이 정보를 아직 사용할 수 없을 가능성이 있습니다. 장치 연결 시점에 `GetHapticInfo` 메서드를 호출하는 대신, [장치 콜백을 등록](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md)하고 `GameInputDeviceHapticInfoReady` [장치 상태](https://docs.xbox.com/ko/reference/input/gameinput/enums/gameinputdevicestatus.md) 알림을 기다리는 것이 강력히 권장됩니다. 이렇게 하면 햅틱 지원 장치가 메타데이터를 위해 폴링되기 전에 필요한 리소스를 초기화하는 데 필요한 시간을 얻을 수 있습니다.

## 요구 사항

**헤더:** GameInput.h

**라이브러리:** gameinput.lib

**지원되는 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 함께 보기

[GameInput 개요](https://docs.xbox.com/ko/build/core-features/common/input/overviews/input-overview.md)\

[GameInputHapticInfo](https://docs.xbox.com/ko/reference/input/gameinput/structs/gameinputhapticinfo.md)\

[RegisterDeviceCallback](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md)\

[GameInputDeviceStatus](https://docs.xbox.com/ko/reference/input/gameinput/enums/gameinputdevicestatus.md)\

[IGameInputDevice](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)

## 버전 기록

| 버전 | 변경 사항 |
| - | - |
| **v2** | 도입됨. |


## Related topics

- [GameInput 햅틱 요구 사항](https://docs.xbox.com/ko/build/core-features/common/input/hardware/input-hardware-haptics.md)
- [IGameInputDevice (인터페이스 콘텐츠)](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)
- [GameInput API 멤버](https://docs.xbox.com/ko/reference/input/gameinput/gameinput_members.md)
- [사용되지 않는 GameInput API 멤버](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [GameInputHapticWaveformInfo (사용되지 않음)](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/structs/gameinputhapticwaveforminfo.md)
