mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 14:48:09 +02:00
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:
parent
43356a2979
commit
7444926b29
1 changed files with 2 additions and 2 deletions
|
|
@ -75,10 +75,10 @@ evcode_to_axis(const uint32_t evcode)
|
||||||
axis = LIBINPUT_TABLET_AXIS_PRESSURE;
|
axis = LIBINPUT_TABLET_AXIS_PRESSURE;
|
||||||
break;
|
break;
|
||||||
case ABS_TILT_X:
|
case ABS_TILT_X:
|
||||||
axis = LIBINPUT_TABLET_AXIS_TILT_Y;
|
axis = LIBINPUT_TABLET_AXIS_TILT_X;
|
||||||
break;
|
break;
|
||||||
case ABS_TILT_Y:
|
case ABS_TILT_Y:
|
||||||
axis = LIBINPUT_TABLET_AXIS_TILT_X;
|
axis = LIBINPUT_TABLET_AXIS_TILT_Y;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
axis = LIBINPUT_TABLET_AXIS_NONE;
|
axis = LIBINPUT_TABLET_AXIS_NONE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue