[Title] fixed release event when multitouching
authorgiwoong.kim <giwoong.kim@samsung.com>
Thu, 28 Jun 2012 07:40:20 +0000 (16:40 +0900)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Fri, 14 Sep 2012 05:42:21 +0000 (09:42 +0400)
[Type] bugfix
[Module] touchscreen driver
[Priority] major
[Jira#] N_SE-1894
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

drivers/maru/maru_touchscreen.c

index 8f0a6deaeb5753a40e27e30863a08403c4a94679..20a758dbad55e052792cb6677033dcd7135f7311 100644 (file)
@@ -5,9 +5,9 @@
  * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * Contact: 
- *  GiWoong Kim <giwoong.kim@samsung.com>\r
- *  Hyunjun Son <hj79.son@samsung.com>\r
- *  DongKyun Yun <dk77.yun@samsung.com>\r
+ *  GiWoong Kim <giwoong.kim@samsung.com>
+ *  Hyunjun Son <hj79.son@samsung.com>
+ *  DongKyun Yun <dk77.yun@samsung.com>
  *  YeongKyoon Lee <yeongkyoon.lee@samsung.com>
  *
  * This program is free software; you can redistribute it and/or
@@ -91,15 +91,19 @@ static void emul_touchscreen_sys_irq(struct urb *urb)
         input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, 5);
         input_report_abs(input_dev, ABS_MT_POSITION_X, packet->x);
         input_report_abs(input_dev, ABS_MT_POSITION_Y, packet->y);
+        //printk(KERN_INFO "!!pressed x=%d, y=%d, z=%d", packet->x, packet->y, packet->z);
         input_mt_sync(input_dev);
     } else { //release
+#if 0
         if (packet->z == 1) {
             input_report_abs(input_dev, ABS_MT_TRACKING_ID, 1);
             input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, 0);
             input_mt_sync(input_dev);
         }
-        input_report_abs(input_dev, ABS_MT_TRACKING_ID, 0);
+#endif
+        input_report_abs(input_dev, ABS_MT_TRACKING_ID, packet->z);
         input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, 0);
+        //printk(KERN_INFO "!!released x=%d, y=%d, z=%d", packet->x, packet->y, packet->z);
         input_mt_sync(input_dev);
     }