Skip to contentSkip to conversation

input: mt: Add ABS_MT_* Events reporting to evtest

PATCH New Mohamed-Ikbel Boulabiar 1 participant 1 message Jun 17, 2009 1 message not in the archive HID

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 input: mt: Add ABS_MT_* Events reporting to evtest

In reply to a message not in the archive

This patch adds new multitouch events reporting capabilities to evtest tool.
New multi-touch events (ABS_MT_*) were added by Henrik Rydberg in the kernel-2.6.30

From: Mohamed-Ikbel Boulabiar <[email protected]>

utils/evtest.c +11 -1
diff -rupN a/utils/evtest.c b/utils/evtest.c 
@@ -2,7 +2,7 @@
  * $Id$
  *
  *  Copyright (c) 1999-2000 Vojtech Pavlik
- *
+ *  		  2009 Mohamed-Ikbel Boulabiar
  *  Event device test program
  */
 
@@ -252,6 +252,16 @@ char *absolutes[ABS_MAX + 1] = {
 	[ABS_DISTANCE] = "Distance",	[ABS_TILT_X] = "XTilt",
 	[ABS_TILT_Y] = "YTilt",		[ABS_TOOL_WIDTH] = "Tool Width",
 	[ABS_VOLUME] = "Volume",	[ABS_MISC] = "Misc",
+	[ABS_MT_TOUCH_MAJOR] = "MT Touch Major",
+	[ABS_MT_TOUCH_MINOR] = "MT Touch Minor",
+	[ABS_MT_WIDTH_MAJOR] = "MT Width Major",
+	[ABS_MT_WIDTH_MINOR] = "MT Width Minor",
+	[ABS_MT_POSITION_X] = "MT Position X",	
+	[ABS_MT_POSITION_Y] = "MT Position Y",
+	[ABS_MT_TOOL_TYPE] = "MT Tool Type",	
+	[ABS_MT_BLOB_ID] = "MT Blob ID",
+	[ABS_MT_ORIENTATION] = "MT Orientation",
+	[ABS_MT_TRACKING_ID] = "MT Tracking ID",
 };
 
 char *misc[MSC_MAX + 1] = {