summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-02-01 14:51:14 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-02-10 12:05:16 +1000
commit6bd2a4a5f1631e88155546a02ddbb7d21befd465 (patch)
tree1573ad2f7a27649d27790fe15862209a12589dce /src
parentd8eced2afed75eb0d161a53a911a2dbd89f5d2ef (diff)
test: add test for left-handed mouse rotation on tablets
Should be offset by 180 degrees Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev-tablet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index 9a2bfdde..192121e1 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -515,6 +515,8 @@ tablet_check_notify_axes(struct tablet_dispatch *tablet,
axes.tilt.x = 0;
axes.tilt.y = 0;
+ /* tilt is already coverted to left-handed, so mouse
+ * rotation is converted to left-handed automatically */
} else {
axes.rotation = tablet_handle_artpen_rotation(tablet, device);
}