[PATCH libinput] tablet: Don't swap X and Y in evcode_to_axis()

Stephen Chandler Paul thatslyude at gmail.com
Thu Jul 10 12:10:12 PDT 2014


Signed-off-by: Stephen Chandler Paul <thatslyude at gmail.com>
---
 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 74447bd..1b53d20 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;
-- 
1.8.5.5



More information about the wayland-devel mailing list