changed accelerometer to emit a deviceGravity event rather than compute tilt directly