[PATCH] ABS_MT_* Events reporting in evtest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Tested-by: Stéphane Chatty <chatty@xxxxxxx>

diff -rupN a/utils/evtest.c b/utils/evtest.c 
--- a/utils/evtest.c    2009-05-20 00:12:14.000000000 +0100
+++ b/utils/evtest.c    2009-06-17 08:16:15.000000000 +0100
@@ -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] = {

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux