This commit is contained in:
Vincent Wei
2020-11-10 17:49:18 +08:00
parent dd9e59d82f
commit 8694a342b9

View File

@@ -43,11 +43,6 @@
* For more information about the commercial license, please refer to
* <http://www.minigui.com/blog/minigui-licensing-policy/>.
*/
/*
** comminput.c: Common Input Engine for eCos, uC/OS-II, VxWorks, ...
**
** Created by Zhong Shuyi, 2004/02/29
*/
#include <stdio.h>
#include <stdlib.h>
@@ -107,10 +102,6 @@ static int get_touch_data (short *x, short *y, short *button)
break;
case ABS_MT_TOUCH_MAJOR:
if (data.value > 0)
*button = IAL_MOUSE_LEFTBUTTON;
else
*button = 0;
break;
case ABS_MT_WIDTH_MAJOR:
@@ -119,21 +110,6 @@ static int get_touch_data (short *x, short *y, short *button)
case ABS_MT_TRACKING_ID:
break;
case ABS_X:
*x = data.value;
break;
case ABS_Y:
*y = data.value;
break;
case ABS_PRESSURE:
if (data.value > 0)
*button = IAL_MOUSE_LEFTBUTTON;
else
*button = 0;
break;
default:
_WRN_PRINTF ("unknow event code for EV_ABS event: %x, %x.\n", data.code, data.value);
return -1;