mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 741869 - Revert the android sensor correction which changes direction of values. r=mwu
This commit is contained in:
parent
c4c232f4f2
commit
f69631959b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user