Table of Contents

Namespace MonoGame.Framework.Devices.Sensors

Classes

Accelerometer

Provides Desktop applications access to the device's accelerometer sensor. Currently stubs, for cross-platform development.

AccelerometerFailedException

The exception that may be thrown during a call to Start() or Stop(). The Message field describes the reason for the exception and the ErrorId field contains the error code from the underlying native code implementation of the accelerometer framework.

CalibrationEventArgs

Provides data for Calibrate and events.

Compass

Provides Desktop applications access to the device's compass sensor. Currently stubs, for cross-platform development.

SensorBase<TSensorReading>
SensorFailedException

Represents errors related to sensors.

SensorReadingEventArgs<T>

Provides data for sensor events.

Structs

AccelerometerReading

Stores values from an accelerometer event

CompassReading

Provides properties for compass readings.

Interfaces

ISensorReading

Common interface used for sensor readings.

Enums

SensorState

Defines the state of the sensor.