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

# GetDevice

> IGameInputReading::GetDevice

# IGameInputReading::GetDevice

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

## 구문

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

### 매개변수

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

IGameInputReading과 연결된 장치입니다.

### 반환값

형식: void

## 설명

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

## 요구 사항

**헤더:** GameInput.h

[Input API 개요](https://docs.xbox.com/ko/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputReading](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)\
[IGameInputReading::GetGamepadState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getgamepadstate.md)

## 버전 기록

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


## Related topics

- [GetDevice](https://docs.xbox.com/ko/reference/graphics/d3d12/interfaces/id3d12devicechild/methods/id3d12devicechild_getdevice_public.md)
- [PartyNetwork::GetDevices](https://docs.xbox.com/ko/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getdevices.md)
- [PartyEndpoint::GetDevice](https://docs.xbox.com/ko/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getdevice.md)
- [PartyChatControl::GetDevice](https://docs.xbox.com/ko/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getdevice.md)
- [IGameInputForceFeedbackEffect::GetDevice](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getdevice.md)
