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 StringGetName () 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()

virtual Real Murl::Input::IAccelerometerDevice::GetAccelerationX ( ) const
pure virtual

Get the accelerometer x-axis acceleration.

Returns
The x-axis acceleration in meter per seconds^2.

◆ GetAccelerationY()

virtual Real Murl::Input::IAccelerometerDevice::GetAccelerationY ( ) const
pure virtual

Get the accelerometer y-axis acceleration.

Returns
The y-axis acceleration in meter per seconds^2.

◆ GetAccelerationZ()

virtual Real Murl::Input::IAccelerometerDevice::GetAccelerationZ ( ) const
pure virtual

Get the accelerometer z-axis acceleration.

Returns
The z-axis acceleration in meter per seconds^2.

◆ GetAcceleration()

virtual AccelerationVector Murl::Input::IAccelerometerDevice::GetAcceleration ( ) const
pure virtual

Get the accelerometer axes acceleration.

Returns
The axes acceleration in meter per seconds^2.

◆ GetRawAcceleration()

virtual AccelerationVector Murl::Input::IAccelerometerDevice::GetRawAcceleration ( ) const
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


Copyright © 2011-2024 Spraylight GmbH.