Skip to main content

GameInputTouchState

已弃用。 此结构在 GameInput v1 中被移除,当前 API 中不再提供。
描述输入读数中单个触摸接触点的状态。

语法

成员

touchId
类型:uint64_t
此触摸接触点的唯一标识符,可跨读数进行跟踪。 sensorIndex
类型:uint32_t
产生此接触的触摸传感器的索引。 positionX, positionY
类型:float
接触点在传感器表面上的归一化位置,范围为 [0.0, 1.0]。 pressure
类型:float
接触点的归一化压力,范围为 [0.0, 1.0]。 proximity
类型:float
接触点的归一化接近度,范围为 [0.0, 1.0]。 contactRectTop, contactRectLeft, contactRectRight, contactRectBottom
类型:float
接触区域在传感器表面上的边界矩形,采用归一化坐标。

备注

此结构通过已弃用的 IGameInputReading::GetTouchState 方法读取。两者均已在 v1 中被移除。

版本历史

另请参阅

已弃用的 GameInput API 成员 IGameInputReading::GetTouchState IGameInputReading::GetTouchCount GameInputTouchSensorInfo
最后修改于 2026年8月13日