mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-09 04:43:19 +08:00
tune
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user