diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-07-28 14:14:38 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-07-28 16:37:31 +0200 |
commit | 67410cd644b76354ba17e9541903cdefa84fc85c (patch) | |
tree | ae58a59b39f45e32dc6539ccab199001b699a158 /src/widgets/kernel/qwidgetwindow.cpp | |
parent | a5578d216a37b04cd792bc470f5de86e95f1dc41 (diff) |
Windows: correct tablet stylus rotation to range -180..180 degrees
When the user holds the Wacom Art Pen straight, rotation is zero;
when turning it counter-clockwise, it should have a negative angle,
whereas the driver sends a positive angle multiplied by 10;
when turning it clockwise it should have a positive angle up to 180,
whereas the driver sends 360 * 10 going downwards towards 180 * 10.
These corrections make the angle reading the same between Linux and
Windows.
Task-number: QTBUG-39570
Change-Id: I9f18ef6629bffa849c8d65cba02d42b21469cebc
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/widgets/kernel/qwidgetwindow.cpp')
0 files changed, 0 insertions, 0 deletions