枚举输入设备中的动作传感器的准确性级别。
语法
typedef enum GameInputMotionAccuracy
{
GameInputMotionAccuracyUnknown = -1,
GameInputMotionUnavailable = 0,
GameInputMotionUnreliable = 1,
GameInputMotionApproximate = 2,
GameInputMotionAccurate = 3
} GameInputMotionAccuracy
常量
常量 | 说明 |
---|---|
GameInputMotionAccuracyUnknown | 动作准确性未知。 |
GameInputMotionUnavailable | 动作准确性当前不可用。 |
GameInputMotionUnreliable | 动作准确性不可靠;也就是说,实际值和报告值可能存在巨大差异。 |
GameInputMotionApproximate | 动作准确性是近似值。 对于某些游戏,此级别可能就足够了。 |
GameInputMotionAccurate | 动作准确性是准确值。 |
备注
此枚举在 GameInputMotionState 结构中用于描述动作传感器的准确性。
GameInputMotionState
用于 IGameInputReading::GetMotionState 方法。
游戏可使用这些值决定是否接受来自设备的动作输入。
要求
头文件:GameInput.h
支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机