Ethanon Engine
Manual
API Reference
Manual
Classes
Methods
Functions
Constants
Go!
Classes
Core objects
Utilities
Math
Functions
Application and system
Scene and entities
Math
Time
Environment and display
Drawing
Audio and multimedia
Global scale
Box2D physics
String
File I/O
Resource management
Shared data
Constants
KEY
Miscellaneous constants
J_KEY
KEY_STATE
ENTITY_TYPE
DATA_TYPE
PIXEL_FORMAT
J_STATUS
BODY_SHAPE
vector3 GetAccelerometerData()
/ETHInput
Returns the accelerometer three-dimensional vector.
Android accelerometer
iOS accelerometer
Warning
The accelerometer input is not supported on desktop environments. This method will return vector3(0,0,0) if the acceleremeter is not supported.