src/SensorManager.js
/*
   * Determains if the device is flipped or not if the device supports
   * acceleration.
   * @param DeviceMotionEvent event - The event of the device motion
   */
Determains if the device is flipped or not if the device supports
acceleration.
@param DeviceMotionEvent event - The event of the device motion
Determains if the device is flipped or not if the device supports acceleration . @param DeviceMotionEvent event - The event of the device motion
handleDeviceMotion(event) {
    this.accelerationRaw = normalize(event.accelerationIncludingGravity);
    this.acceleration = rotateVector(this.accelerationRaw, this.accelerationCal);
    this.onAccelerationChange(this.acceleration.x, this.acceleration.y, this.acceleration.z);
  }
handleDeviceMotion ( event ) { this . accelerationRaw = normalize ( event . accelerationIncludingGravity ) ; this . acceleration = rotateVector ( this . accelerationRaw , this . accelerationCal ) ; this . onAccelerationChange ( this . acceleration . x , this . acceleration . y , this . acceleration . z ) ; }
Determains if the device is flipped or not if the device supports
 acceleration.
Determains if the device is flipped or not if the device supports acceleration .
// Determain if the device is upside down or not.