docs: function(eventData) {
              var data;
              if (window.DeviceOrientationEvent) {
                  data = {
                      // gamma is the left-to-right tilt in degrees, where right is positive
                      'tiltLR'    :    eventData.gamma,
                      // beta is the front-to-back tilt in degrees, where front is positive
                      'tiltFB'    :     eventData.beta,
                      // alpha is the compass direction the device is facing in degrees
                      'dir'         :     eventData.alpha,
                      // deviceorientation does not provide this data
                      'motUD'     :     null
                  }
              } else if (window.OrientationEvent) {
                  data = {
                      // x is the left-to-right tilt from -1 to +1, so we need to convert to degrees
                      'tiltLR'    :    eventData.x * 90,
                      // y is the front-to-back tilt from -1 to +1, so we need to convert to degrees
                      // We also need to invert the value so tilting the device towards us (forward)
                      // results in a positive value.
                      'tiltFB'    :     eventData.y * -90,
                      // MozOrientation does not provide this data
                      'dir'         :     null,
                      // z is the vertical acceleration of the device
                      'motUD'     :     eventData.z
                  }
              }
  
              Crafty.device._deviceOrientationCallback(data);
          }