[PATCH libinput 07/24] Add extra libinput_pointer_axis values for tablets

Carlos Garnacho carlosg at gnome.org
Mon Apr 21 10:11:16 PDT 2014


distance/pressure/xtilt/ytilt are handled at the moment, this leaves
wheels/strips out at the moment...

Signed-off-by: Carlos Garnacho <carlosg at gnome.org>
---
 src/libinput.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/libinput.h b/src/libinput.h
index 5b3d79e..05690a9 100644
--- a/src/libinput.h
+++ b/src/libinput.h
@@ -108,7 +108,11 @@ enum libinput_pointer_button_state {
  */
 enum libinput_pointer_axis {
 	LIBINPUT_POINTER_AXIS_VERTICAL_SCROLL = 0,
-	LIBINPUT_POINTER_AXIS_HORIZONTAL_SCROLL = 1
+	LIBINPUT_POINTER_AXIS_HORIZONTAL_SCROLL = 1,
+	LIBINPUT_POINTER_AXIS_DISTANCE = 2,
+	LIBINPUT_POINTER_AXIS_PRESSURE = 3,
+	LIBINPUT_POINTER_AXIS_VERTICAL_TILT = 4,
+	LIBINPUT_POINTER_AXIS_HORIZONTAL_TILT = 5
 };
 
 /**
-- 
1.9.0



More information about the wayland-devel mailing list