diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2013-01-10 13:38:43 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-23 18:33:17 +0100 |
commit | 78ad1fabee403ac910d29bb212cf0e3b9a670708 (patch) | |
tree | 9dbfdfdab19de9666eaf2923e79d2b9141cc4eaa /src/sensors/qsensor_p.h | |
parent | 5700ab09b06617d73b0495d2db0696512913ba51 (diff) |
Add a axes remapping feature
This allows orientable sensors like accelerometer or compass
to change to adapt the reading values based on the current
screen orientation.
Add support for the BlackBerry backend.
Change-Id: If7cfde8f20da4f677fdd13c38f7e11f2ed96bedd
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'src/sensors/qsensor_p.h')
-rw-r--r-- | src/sensors/qsensor_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sensors/qsensor_p.h b/src/sensors/qsensor_p.h index 8504a3f6..041e4baa 100644 --- a/src/sensors/qsensor_p.h +++ b/src/sensors/qsensor_p.h @@ -80,6 +80,9 @@ public: , error(0) , alwaysOn(false) , skipDuplicates(false) + , axesOrientationMode(QSensor::FixedOrientation) + , currentOrientation(0) + , userOrientation(0) { } @@ -110,6 +113,10 @@ public: bool alwaysOn; bool skipDuplicates; + + QSensor::AxesOrientationMode axesOrientationMode; + int currentOrientation; + int userOrientation; }; class QSensorReadingPrivate |