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

# GameInputRawDevicePhysicalUnitKind

> GameInputRawDevicePhysicalUnitKind

# GameInputRawDevicePhysicalUnitKind

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

定义用于解释原始 HID 设备报告项中数值的物理单位系统。

## 语法

```cpp theme={null}
enum GameInputRawDevicePhysicalUnitKind
{
    GameInputRawDevicePhysicalUnitKindUnknown       = -1,
    GameInputRawDevicePhysicalUnitKindNone          = 0,
    GameInputRawDevicePhysicalUnitKindRotation      = 1,
    GameInputRawDevicePhysicalUnitKindLinear        = 2,
    GameInputRawDevicePhysicalUnitKindMiscellaneous = 3,
    GameInputRawDevicePhysicalUnitKindSI            = 4,
    GameInputRawDevicePhysicalUnitKindEnglish       = 5,
};
```

## 常量

| 常量                                              | 值  | 说明              |
| ----------------------------------------------- | -- | --------------- |
| GameInputRawDevicePhysicalUnitKindUnknown       | -1 | 未知的单位系统。        |
| GameInputRawDevicePhysicalUnitKindNone          | 0  | 无量纲或无单位。        |
| GameInputRawDevicePhysicalUnitKindRotation      | 1  | 旋转单位（HID 旋转系统）。 |
| GameInputRawDevicePhysicalUnitKindLinear        | 2  | 线性单位（HID 线性系统）。 |
| GameInputRawDevicePhysicalUnitKindMiscellaneous | 3  | 其他 HID 单位。      |
| GameInputRawDevicePhysicalUnitKindSI            | 4  | SI（公制）单位系统。     |
| GameInputRawDevicePhysicalUnitKindEnglish       | 5  | 英制（帝国）单位系统。     |

## 版本历史

| 版本     | 变更   |
| ------ | ---- |
| **v1** | 已移除。 |
| **v0** | 已引入。 |

## 另请参阅

[已弃用的 GameInput API 成员](/reference/input/gameinput/deprecated/gameinput_deprecated_members)
[GameInputRawDeviceReportItemInfo](/reference/input/gameinput/deprecated/structs/gameinputrawdevicereportiteminfo)


## Related topics

- [GameInputRawDeviceReportItemInfo](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputrawdevicereportiteminfo.md)
- [GameInput](/zh-CN/reference/input/gameinput/gameinput_members.md)
- [已弃用的 GameInput API 成员](/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [GameInputRawDeviceItemCollectionKind](/zh-CN/reference/input/gameinput/deprecated/enums/gameinputrawdeviceitemcollectionkind.md)
- [GameInputRawDeviceReportKind](/zh-CN/reference/input/gameinput/enums/gameinputrawdevicereportkind.md)
