Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.12, 5.13
-
None
-
-
5
-
Team 2 Foundation_Sprint 42, Team 2 Foundation_Sprint 43
Description
Accelerometer {
active: true
accelerationMode: Accelerometer.Combined
axesOrientationMode: Sensor.AutomaticOrientation
onReadingChanged: console.log(reading.x)
onCurrentOrientationChanged: console.log(currentOrientation)
}
According to https://doc-snapshots.qt.io/qt5-5.11/qaccelerometerreading.html#details X axis should be positive when tilting the phone to the right and negative when tilting it to the left.
If I rotate the phone by 180 degrees, the X values are inverted.
If I put the phone in landscape mode, it's even worse, because the X becomes Y and vice-versa.