Compartir a través de


GameInputMotionInfo

Describes measurable properties for a motion-enabled input device.

Syntax

typedef struct GameInputMotionInfo {  
    float maxAcceleration;  
    float maxAngularVelocity;  
    float maxMagneticFieldStrength;  
} GameInputMotionInfo  

Members

maxAcceleration
Type: float

Maximum acceleration that can be measured for a motion, expressed in meters per second squared. Zero indicates that acceleration input is not available.

maxAngularVelocity
Type: float

Maximum angular velocity that can be measured for a motion, expressed in radians per second. Zero indicates that angular velocity input is not available.

maxMagneticFieldStrength
Type: float

Maximum magnetic-field strength that can be measured for a motion, expressed in teslas. Zero indicates that magnetic-field strength input is not available.

Remarks

This structure is used in the GameInputDeviceInfo structure. GameInputDeviceInfo is used by the IGameInputDevice::GetDeviceInfo method.

For more information, see GameInput devices.

Requirements

Header: GameInput.h

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

Overview of GameInput
GameInput