Skip to main content

IGameInputReading::GetMotionState

已弃用。 此方法已在 GameInput v1 中移除,当前 API 中不再提供。
从读数中获取运动(加速计和陀螺仪)状态。

语法

参数

state   _Out_
类型:GameInputMotionState*
指向要用运动数据填充的 GameInputMotionState 结构的指针。

返回值

类型:bool 如果读数包含运动状态,则返回 true;否则返回 false

备注

此方法及相关的 GameInputMotionState 结构已在 v1 中移除。运动状态曾在暴露加速计和陀螺仪轴的设备上提供。

版本历史

另请参阅

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