![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IAccelerometerDevice interface.
To receive data the device must be activated by IAppConfiguration::SetAccelerometerActive().
Get the accelerometer x-axis acceleration.
Number GetAccelerationX()
Get the accelerometer y-axis acceleration.
Number GetAccelerationY()
Get the accelerometer z-axis acceleration.
Number GetAccelerationZ()
Get the accelerometer axes acceleration.
Murl.Math.Vector GetAcceleration()
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.
Murl.Math.Vector GetRawAcceleration()