aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-03-13 13:12:23 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-03-13 13:12:23 +1000
commit3be2e4109cc681d815dcb50ca2f42cb04d9bbc16 (patch)
treef20ae927f600b7b5ca4fc80b83655cc441294ca1
parent9dd07f7e49d993c9beb768954863524fb225892b (diff)
downloadexternal_evtest-3be2e4109cc681d815dcb50ca2f42cb04d9bbc16.tar.gz
external_evtest-3be2e4109cc681d815dcb50ca2f42cb04d9bbc16.tar.bz2
external_evtest-3be2e4109cc681d815dcb50ca2f42cb04d9bbc16.zip
evtest-capture: support a few of the newer defines
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--evtest-capture.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/evtest-capture.c b/evtest-capture.c
index 3196930..04ce776 100644
--- a/evtest-capture.c
+++ b/evtest-capture.c
@@ -52,6 +52,19 @@
#define format(...) call(xmlTextWriterWriteFormatElement(writer, __VA_ARGS__))
#define attr(...) call(xmlTextWriterWriteAttribute(writer, __VA_ARGS__))
+#ifndef ABS_MT_SLOT
+#define ABS_MT_SLOT 0x2f
+#endif
+
+#ifndef ABS_MT_PRESSURE
+#define ABS_MT_PRESSURE 0x3a
+#endif
+
+#ifndef BTN_TOOL_QUADTAP
+#define BTN_TOOL_QUADTAP 0x14f
+#define BTN_TOOL_QINTTAP 0x148
+#endif
+
static int stop = 0;
const char *keys[KEY_MAX + 1] = {
@@ -399,6 +412,8 @@ const char *keys[KEY_MAX + 1] = {
[BTN_TOOL_DOUBLETAP] = "BTN_TOOL_DOUBLETAP",
[BTN_TOOL_TRIPLETAP] = "BTN_TOOL_TRIPLETAP",
+ [BTN_TOOL_QUADTAP] = "BTN_TOOL_QUADTAP",
+ [BTN_TOOL_QUINTTAP] = "BTN_TOOL_QUINTTAP",
[BTN_GEAR_DOWN] = "BTN_GEAR_DOWN",
[BTN_GEAR_UP] = "BTN_GEAR_UP",
@@ -561,6 +576,7 @@ const char *absolutes[ABS_MAX + 1] = {
[ABS_TOOL_WIDTH] = "ABS_TOOL_WIDTH",
[ABS_VOLUME] = "ABS_VOLUME",
[ABS_MISC] = "ABS_MISC",
+ [ABS_MT_SLOT] = "ABS_MT_SLOT",
[ABS_MT_TOUCH_MAJOR] = "ABS_MT_TOUCH_MAJOR",
[ABS_MT_TOUCH_MINOR] = "ABS_MT_TOUCH_MINOR",
[ABS_MT_WIDTH_MAJOR] = "ABS_MT_WIDTH_MAJOR",
@@ -571,6 +587,7 @@ const char *absolutes[ABS_MAX + 1] = {
[ABS_MT_TOOL_TYPE] = "ABS_MT_TOOL_TYPE",
[ABS_MT_BLOB_ID] = "ABS_MT_BLOB_ID",
[ABS_MT_TRACKING_ID] = "ABS_MT_TRACKING_ID",
+ [ABS_MT_PRESSURE] = "ABS_MT_PRESSURE",
};
const char *misc[MSC_MAX + 1] = {