Murl::Input::IAccelerometerDevice Interface Referenceabstract
The IAccelerometerDevice interface. More...
#include "murl_input_i_accelerometer_device.h"
Inheritance diagram for Murl::Input::IAccelerometerDevice:
Public Member Functions | |
virtual Real | GetAccelerationX () const =0 |
Get the accelerometer x-axis acceleration. More... | |
virtual Real | GetAccelerationY () const =0 |
Get the accelerometer y-axis acceleration. More... | |
virtual Real | GetAccelerationZ () const =0 |
Get the accelerometer z-axis acceleration. More... | |
virtual AccelerationVector | GetAcceleration () const =0 |
Get the accelerometer axes acceleration. More... | |
virtual AccelerationVector | GetRawAcceleration () const =0 |
Get the raw accelerometer axes acceleration. More... | |
Public Member Functions inherited from Murl::Input::IDevice | |
virtual const String & | GetName () const =0 |
Get the device name. More... | |
virtual UInt32 | GetId () const =0 |
Get the unique device identifier. More... | |
virtual Bool | HasUpdate () const =0 |
Check if the device has received new data since the last Update(). More... | |
virtual void | LogicUpdate ()=0 |
Is executed in the logic thread context each logic tick. | |
virtual void | ConfigChanged (const IAppConfiguration *appConfig)=0 |
Notification of changed configuration. More... | |
Detailed Description
The IAccelerometerDevice interface.
To receive data the device must be activated by IAppConfiguration::SetAccelerometerActive().
Member Function Documentation
◆ GetAccelerationX()
|
pure virtual |
Get the accelerometer x-axis acceleration.
- Returns
- The x-axis acceleration in meter per seconds^2.
◆ GetAccelerationY()
|
pure virtual |
Get the accelerometer y-axis acceleration.
- Returns
- The y-axis acceleration in meter per seconds^2.
◆ GetAccelerationZ()
|
pure virtual |
Get the accelerometer z-axis acceleration.
- Returns
- The z-axis acceleration in meter per seconds^2.
◆ GetAcceleration()
|
pure virtual |
Get the accelerometer axes acceleration.
- Returns
- The axes acceleration in meter per seconds^2.
◆ GetRawAcceleration()
|
pure virtual |
Get the raw accelerometer axes acceleration.
This method is useful to evaluate the absolute device orientation. All other methods reports the values relative to the current screen axis orientation.
- Returns
- The axes acceleration in meter per seconds^2.
The documentation for this interface was generated from the following file:
- murl_input_i_accelerometer_device.h