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

# IGameInputDevice::GetRawDeviceFeature

> IGameInputDevice::GetRawDeviceFeature

# IGameInputDevice::GetRawDeviceFeature

<Warning>**已弃用。** 此方法已在 GameInput v1 中移除，当前 API 中不再提供。</Warning>

从原始 HID 设备检索特性报告。

## 语法

```cpp theme={null}
HRESULT GetRawDeviceFeature(
    uint32_t reportId,
    IGameInputRawDeviceReport** report
);
```

### 参数

*reportId*   \_In\_\
类型：uint32\_t

要检索的特性报告的 HID 报告 ID。

*report*   \_COM\_Outptr\_\
类型：IGameInputRawDeviceReport\*\*

返回的 [IGameInputRawDeviceReport](/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport) 接口。

### 返回值

类型：HRESULT

函数结果。

## 备注

此方法已在 v1 中移除，并在 v3 中以 [IGameInputDevice::GetRawDeviceFeature](/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getrawdevicefeature) 重新引入。

## 版本历史

| 版本     | 变更                                                                                                                                                                       |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **v3** | 使用更新的签名重新引入。请参阅 [IGameInputDevice::GetRawDeviceFeature](/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getrawdevicefeature)。 |
| **v1** | 已移除。                                                                                                                                                                     |
| **v0** | 已引入。                                                                                                                                                                     |

## 另请参阅

[已弃用的 GameInput API 成员](/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[IGameInputRawDeviceReport](/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport)\
[IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)


## Related topics

- [IGameInputDevice::SetRawDeviceFeature](/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setrawdevicefeature.md)
- [已弃用的 GameInput API 成员](/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [IGameInputRawDeviceReport](/zh-CN/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
- [IGameInputDevice::AcquireExclusiveRawDeviceAccess](/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_acquireexclusiverawdeviceaccess.md)
- [IGameInputDevice::ExecuteRawDeviceIoControl](/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_executerawdeviceiocontrol.md)
