Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enumerates levels of accuracy for sensors.
Syntax
enum GameInputSensorAccuracy
{
GameInputSensorAccuracyUnknown = 0x00000000,
GameInputSensorAccuracyUnreliable = 0x00000001,
GameInputSensorAccuracyApproximate = 0x00000002,
GameInputSensorAccuracyHigh = 0x00000003
};
Constants
| Constant | Description |
|---|---|
| GameInputSensorAccuracyUnknown | The accuracy is currently not available. |
| GameInputSensorAccuracyUnreliable | The actual and reported values have a high degree of inaccuracy. |
| GameInputSensorAccuracyApproximate | The actual and reported values differ but may be accurate enough for some |
| application. | |
| GameInputSensorAccuracyHigh | The actual and reported values are accurate. |
Remarks
Determine the degree of accuracy that is required for your application's needs. To improve accuracy, ask the user to calibrate their compass by moving the device in a figure-8 pattern. We suggest doing this no more than every 10 minutes.
These values are used in the GameInputSensorsState structure as part of the GameInputSensorsCompass group.
For more information about getting device readings, see GameInput readings.
Requirements
Header: GameInput.h
Supported platforms: Windows
See also
Overview of GameInput GameInput Windows.Devices.Sensors MagnetometerAccuracy