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

# IGameInputReading::GetDevice

> IGameInputReading::GetDevice

# IGameInputReading::GetDevice

IGameInputReading과 연결된 장치를 가져옵니다.

## 구문

```cpp theme={null}
void GetDevice(
    IGameInputDevice** device
);
```

### 매개변수

*device*   \_Outptr\_\
형식: IGameInputDevice\*\*

IGameInputReading과 연결된 장치입니다.

### 반환값

형식: void

## 설명

이 메서드를 사용하여 장치의 제조사와 기능에 대한 정보를 얻을 수 있습니다. 예를 들어 장치의 버튼, 배열 및 축의 개수를 알아야 할 수 있습니다. 이는 [IGameInputReading::GetGamepadState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getgamepadstate)와 같이 개발자가 만든 버퍼가 필요한 많은 Get\*State 함수에 적절한 크기의 버퍼를 전달해야 할 때 중요합니다.

## 요구 사항

**헤더:** GameInput.h

[Input API 개요](/build/core-features/common/input/overviews/input-overview)\
[IGameInputReading](/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)\
[IGameInputReading::GetGamepadState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getgamepadstate)

## 버전 기록

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


## Related topics

- [IGameInput::GetNextReading](/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getnextreading.md)
- [IGameInput::GetPreviousReading](/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getpreviousreading.md)
- [IGameInputReading::GetInputKind](/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getinputkind.md)
- [IGameInputReading::GetKeyState](/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate.md)
- [IGameInputReading::GetTimestamp](/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_gettimestamp.md)
