ecore_x_xi2: add small code to check device id

cancel event only can be dealed in touch device.
This commit is contained in:
Ji-Youn Park 2015-06-30 00:02:47 +09:00
parent bd6d7850dc
commit f74895c6b7
1 changed files with 15 additions and 0 deletions

View File

@ -150,6 +150,21 @@ _ecore_x_input_shutdown(void)
#ifdef ECORE_XI2
#ifdef ECORE_XI2_2
static Eina_Bool
_ecore_x_input_touch_device_check(int devid)
{
int i;
Eina_Inlist *l = _ecore_x_xi2_touch_info_list;
Ecore_X_Touch_Device_Info *info = NULL;
if ((!_ecore_x_xi2_devs) || (!_ecore_x_xi2_touch_info_list))
return EINA_FALSE;
EINA_INLIST_FOREACH(l, info)
if (info->devid == devid) return EINA_TRUE;
return EINA_FALSE;
}
static int
_ecore_x_input_touch_index_get(int devid, int detail, int event_type)
{