зеркало из https://github.com/mozilla/gecko-dev.git
Bug 741869 - Revert the android sensor correction which changes direction of values. r=mwu
This commit is contained in:
Родитель
8d65697b39
Коммит
f73b6e5d54
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче