tablet: Don't swap X and Y in evcode_to_axis()

Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Stephen Chandler Paul 2014-07-10 15:10:12 -04:00 committed by Peter Hutterer
parent 43356a2979
commit 7444926b29

View file

@ -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;