[PATCH 1/4] Add ABS_MT_MAX to build with old input.h
Martin Minarik
minarik11 at student.fiit.stuba.sk
Fri Aug 23 10:17:32 PDT 2013
Enables build on kernels that didn't have ABS_MT_TOOL_Y
---
libevdev/libevdev-int.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/libevdev/libevdev-int.h b/libevdev/libevdev-int.h
index a36be62..71057ad 100644
--- a/libevdev/libevdev-int.h
+++ b/libevdev/libevdev-int.h
@@ -35,7 +35,12 @@
#define MAX_NAME 256
#define MAX_SLOTS 32
#define ABS_MT_MIN ABS_MT_SLOT
-#define ABS_MT_MAX ABS_MT_TOOL_Y
+#ifdef ABS_MT_DISTANCE
+ #define ABS_MT_MAX ABS_MT_DISTANCE
+#endif
+#ifdef ABS_MT_TOOL_Y
+ #define ABS_MT_MAX ABS_MT_TOOL_Y
+#endif
#define ABS_MT_CNT (ABS_MT_MAX - ABS_MT_MIN + 1)
#undef min
--
1.7.10.4
More information about the Input-tools
mailing list