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

# IGameInputRawDeviceReport::GetDevice

> IGameInputRawDeviceReport::GetDevice

# IGameInputRawDeviceReport::GetDevice

擷取與原始裝置報告相關聯的裝置。

## 語法

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

### 參數

*device*   \_Outptr\_\

類型：IGameInputDevice\*\*

與原始裝置報告相關聯的裝置。

### 傳回值

類型：void

## 備註

`IGameInputRawDeviceReport::GetDevice` 方法會傳回與原始裝置報告相關聯的裝置。

## 需求

**標頭：** GameInput.h

[進階 GameInput 主題](https://docs.xbox.com/zh-TW/build/core-features/common/input/advanced/input-advanced-topics.md)\
[GameInput 概觀](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputRawDeviceReport](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v3** | 重新推出。 |
| **v1** | 隨 IGameInputRawDeviceReport 介面一併移除。 |
| **v0** | 推出。 |


## Related topics

- [IGameInputRawDeviceReport (介面內容)](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
- [IGameInputRawDeviceReport::GetReportInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/methods/igameinputrawdevicereport_getreportinfo.md)
- [IGameInputDevice::GetRawDeviceFeature (已淘汰)](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getrawdevicefeature.md)
- [CreateRawDeviceReport](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_createrawdevicereport.md)
- [IGameInputDevice::SetRawDeviceFeature (已淘汰)](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setrawdevicefeature.md)
