Skip to main content

GameInputMotionState

已弃用。 此结构已在 GameInput v1 中移除,当前 API 中不再提供。
描述来自输入读数的当前加速计、陀螺仪和磁力计状态。

语法

成员

accelerationX, accelerationY, accelerationZ
类型:float
各轴上测得的线性加速度(单位:m/s²)。 angularVelocityX, angularVelocityY, angularVelocityZ
类型:float
各轴上测得的角速度(单位:度/秒)。 magneticFieldX, magneticFieldY, magneticFieldZ
类型:float
各轴上测得的磁场强度(单位:高斯)。

备注

此结构曾由已弃用的 IGameInputReading::GetMotionState 方法返回。两者均已在 v1 中移除。

版本历史

另请参阅

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