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

# GameInputLocation

> GameInputLocation

# GameInputLocation

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

定义标识输入设备上控件的物理位置的常量。

## 语法

```cpp theme={null}
enum GameInputLocation
{
    GameInputLocationUnknown        = -1,
    GameInputLocationChassis        = 0,
    GameInputLocationDisplay        = 1,
    GameInputLocationLeftHand       = 2,
    GameInputLocationRightHand      = 3,
    GameInputLocationLeftJoystick   = 4,
    GameInputLocationRightJoystick  = 5,
    GameInputLocationFrontFace      = 6,
    GameInputLocationBackFace       = 7,
};
```

## 常量

| 常量                             | 值  | 说明         |
| ------------------------------ | -- | ---------- |
| GameInputLocationUnknown       | -1 | 位置未知。      |
| GameInputLocationChassis       | 0  | 位于设备机身上。   |
| GameInputLocationDisplay       | 1  | 位于显示屏上或附近。 |
| GameInputLocationLeftHand      | 2  | 位于左手握把上。   |
| GameInputLocationRightHand     | 3  | 位于右手握把上。   |
| GameInputLocationLeftJoystick  | 4  | 位于左摇杆上。    |
| GameInputLocationRightJoystick | 5  | 位于右摇杆上。    |
| GameInputLocationFrontFace     | 6  | 位于设备正面。    |
| GameInputLocationBackFace      | 7  | 位于设备背面。    |

## 版本历史

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

## 另请参阅

[已弃用的 GameInput API 成员](/reference/input/gameinput/deprecated/gameinput_deprecated_members)
[GameInputControllerAxisInfo](/reference/input/gameinput/deprecated/structs/gameinputcontrolleraxisinfo)
[GameInputControllerButtonInfo](/reference/input/gameinput/deprecated/structs/gameinputcontrollerbuttoninfo)


## Related topics

- [GameInputControllerButtonInfo](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputcontrollerbuttoninfo.md)
- [GameInputHapticFeedbackMotorInfo](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackmotorinfo.md)
- [GameInputControllerAxisInfo](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputcontrolleraxisinfo.md)
- [GameInputTouchSensorInfo](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputtouchsensorinfo.md)
- [GameInput](/zh-CN/reference/input/gameinput/gameinput_members.md)
