window.addEventListener("deviceorientation", this.orientEvent, true);
window.addEventListener("devicemotion", this.motionEvent, true);
orientEvent: function(orientData) {
orientData.alpha / .beta / .gamma (in °)
},
motionEvent: function(event) {
event.accelerationIncludingGravity.x / .y / .z (in m/s²)
},
window.removeEventListener("deviceorientation", this.orientEvent, true);
window.removeEventListener("devicemotion", this.motionEvent, true);