Share via


GameInputMotionInfo (v0)

Describes measurable properties for a motion-enabled input device.

Syntax

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

Members

[!Important] This struct has been re-purposed and is misleadingly named now.

maxAcceleration
Type: float

Set to 0 if acceleration is not available. Set to 1 if the device reports acceleration.

maxAngularVelocity
Type: float

Set to 0 if angular velocity is not available. Set to 1 if the device reports angular velocity.

maxMagneticFieldStrength
Type: float

Set to 0 if magnetic field strength is not available. Set to 1 if the device reports magnetic field strength.

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