Bug 741869 - Revert the android sensor correction which changes direction of values. r=mwu

This commit is contained in:
Doug Turner 2012-04-04 14:20:25 -07:00
parent c4c232f4f2
commit f69631959b

View File

@ -337,16 +337,11 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
switch (type) {
case hal::SENSOR_ORIENTATION:
values.AppendElement(curEvent->X());
values.AppendElement(-curEvent->Y());
values.AppendElement(-curEvent->Z());
break;
case hal::SENSOR_ACCELERATION:
case hal::SENSOR_LINEAR_ACCELERATION:
case hal::SENSOR_ACCELERATION:
case hal::SENSOR_GYROSCOPE:
values.AppendElement(-curEvent->X());
values.AppendElement(curEvent->Y());
values.AppendElement(curEvent->X());
values.AppendElement(curEvent->Y());
values.AppendElement(curEvent->Z());
break;