Skip to main content

IGameInputReading::GetMotionState

已淘汰。 此方法已在 GameInput v1 中移除,目前的 API 中無法使用。
從讀數取得動作 (加速計和陀螺儀) 狀態。

語法

參數

state   _Out_
類型:GameInputMotionState*
指向 GameInputMotionState 結構的指標,用來填入動作資料。

傳回值

類型:bool 如果讀數包含動作狀態,則傳回 true;否則傳回 false。

備註

此方法和相關聯的 GameInputMotionState 結構已在 v1 中移除。動作狀態適用於公開加速計和陀螺儀軸的裝置。

版本歷程記錄

另請參閱

已淘汰的 GameInput API 成員
GameInputMotionState
IGameInputReading
Last modified on October 6, 2026