From 7444926b29b3346a6c4862bb09667ea42ef9be97 Mon Sep 17 00:00:00 2001 From: Stephen Chandler Paul Date: Thu, 10 Jul 2014 15:10:12 -0400 Subject: [PATCH] tablet: Don't swap X and Y in evcode_to_axis() Signed-off-by: Stephen Chandler Paul Signed-off-by: Peter Hutterer --- src/evdev-tablet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-tablet.h b/src/evdev-tablet.h index 74447bd9..1b53d201 100644 --- a/src/evdev-tablet.h +++ b/src/evdev-tablet.h @@ -75,10 +75,10 @@ evcode_to_axis(const uint32_t evcode) axis = LIBINPUT_TABLET_AXIS_PRESSURE; break; case ABS_TILT_X: - axis = LIBINPUT_TABLET_AXIS_TILT_Y; + axis = LIBINPUT_TABLET_AXIS_TILT_X; break; case ABS_TILT_Y: - axis = LIBINPUT_TABLET_AXIS_TILT_X; + axis = LIBINPUT_TABLET_AXIS_TILT_Y; break; default: axis = LIBINPUT_TABLET_AXIS_NONE;