}
static Eina_Bool
-_e_gesture_is_touch_device(const char *identifier)
+_e_gesture_is_touch_device(Ecore_Device *dev)
{
Eina_List *l;
char *data;
+ const char *identifier;
+
+ EINA_SAFETY_ON_NULL_RETURN_VAL(dev, EINA_FALSE);
+
+ identifier = ecore_device_identifier_get(dev);
+ if (!identifier) return EINA_FALSE;
EINA_LIST_FOREACH(gesture->touch_devices, l, data)
{
{
Ecore_Event_Device_Info *ev = event;
- if (ev->caps & EVDEV_SEAT_TOUCH)
+ if (ev->clas == ECORE_DEVICE_CLASS_TOUCH)
{
gesture->touch_devices = eina_list_append(gesture->touch_devices, ev->identifier);
GTINF("%s(%s) device is touch device: add list\n", ev->name, ev->identifier);
Eina_List *l, *l_next;
char *data;
- if (ev->caps & EVDEV_SEAT_TOUCH)
+ if (ev->clas == ECORE_DEVICE_CLASS_TOUCH)
{
EINA_LIST_FOREACH_SAFE(gesture->touch_devices, l, l_next, data)
{
{
return EINA_TRUE;
}
- if (_e_gesture_is_touch_device(ev->dev_name) == EINA_FALSE)
+ if (_e_gesture_is_touch_device(ev->dev) == EINA_FALSE)
{
return EINA_TRUE;
}
{
return EINA_TRUE;
}
- if (_e_gesture_is_touch_device(ev->dev_name) == EINA_FALSE)
+ if (_e_gesture_is_touch_device(ev->dev) == EINA_FALSE)
{
return EINA_TRUE;
}
{
return EINA_TRUE;
}
- if (_e_gesture_is_touch_device(ev->dev_name) == EINA_FALSE)
+ if (_e_gesture_is_touch_device(ev->dev) == EINA_FALSE)
{
return EINA_TRUE;
}