mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 705009: Report DeviceMotion values in units of m/s^2, not Gs, per current spec. r=dougt
This commit is contained in:
parent
bbabda2324
commit
94675ec217
@ -148,9 +148,9 @@ public class GeckoEvent {
|
||||
|
||||
if (s.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
|
||||
mType = ACCELERATION_EVENT;
|
||||
mX = s.values[0] / SensorManager.GRAVITY_EARTH;
|
||||
mY = s.values[1] / SensorManager.GRAVITY_EARTH;
|
||||
mZ = s.values[2] / SensorManager.GRAVITY_EARTH;
|
||||
mX = s.values[0];
|
||||
mY = s.values[1];
|
||||
mZ = s.values[2];
|
||||
}
|
||||
else {
|
||||
mType = ORIENTATION_EVENT;
|
||||
|
Loading…
Reference in New Issue
Block a user