说明动作启用输入设备的可测量属性。
语法
typedef struct GameInputMotionInfo {
float maxAcceleration;
float maxAngularVelocity;
float maxMagneticFieldStrength;
} GameInputMotionInfo
成员
[!重要说明]此结构已重新用途,现在被误导性地命名。
maxAcceleration
类型:float
如果加速不可用,则设置为 0。 如果设备报告加速,则设置为 1。
maxAngularVelocity
类型:float
如果角速度不可用,则设置为 0。 如果设备报告角速度,则设置为 1。
maxMagneticFieldStrength
类型:float
如果磁场强度不可用,则设置为 0。 如果设备报告磁场强度,则设置为 1。
备注
此结构在 GameInputDeviceInfo 结构中使用。
GameInputDeviceInfo 由 IGameInputDevice::GetDeviceInfo 方法使用。
有关详细信息,请参阅 GameInput 设备。
要求
头文件:GameInput.h
支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机