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

# GameInputTouchShape

> GameInputTouchShape

# GameInputTouchShape

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

定义描述触摸传感器表面几何形状的常量。

## 语法

```cpp theme={null}
enum GameInputTouchShape
{
    GameInputTouchShapeUnknown      = -1,
    GameInputTouchShapeNone         = 0,
    GameInputTouchShape1DLinear     = 1,
    GameInputTouchShape1DArc        = 2,
    GameInputTouchShape1DRadial     = 3,
    GameInputTouchShape2DRectangle  = 4,
    GameInputTouchShape2DArbitrary  = 5,
    GameInputTouchShape3DCylinder   = 6,
    GameInputTouchShape3DSphere     = 7,
    GameInputTouchShape3DArbitrary  = 8,
};
```

## 常量

| 常量                             | 值  | 说明       |
| ------------------------------ | -- | -------- |
| GameInputTouchShapeUnknown     | -1 | 形状未知。    |
| GameInputTouchShapeNone        | 0  | 未定义形状。   |
| GameInputTouchShape1DLinear    | 1  | 一维线性条带。  |
| GameInputTouchShape1DArc       | 2  | 一维弧形。    |
| GameInputTouchShape1DRadial    | 3  | 一维径向刻度盘。 |
| GameInputTouchShape2DRectangle | 4  | 二维矩形触控板。 |
| GameInputTouchShape2DArbitrary | 5  | 二维任意形状。  |
| GameInputTouchShape3DCylinder  | 6  | 三维圆柱体。   |
| GameInputTouchShape3DSphere    | 7  | 三维球体。    |
| GameInputTouchShape3DArbitrary | 8  | 三维任意形状。  |

## 版本历史

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

## 另请参阅

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


## Related topics

- [GameInputTouchSensorInfo](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputtouchsensorinfo.md)
- [GameInput](/zh-CN/reference/input/gameinput/gameinput_members.md)
- [已弃用的 GameInput API 成员](/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [GameInputTouchState](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md)
- [XGameStreamingIsTouchInputEnabled](/zh-CN/reference/system/xgamestreaming/functions/xgamestreamingistouchinputenabled.md)
