forked from enlightenment/efl
parent
d04755d2a2
commit
87e0ecfaa7
|
@ -70,9 +70,10 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler)
|
||||||
#ifdef OLD_UDEV_RRRRRRRRRRRRRR
|
#ifdef OLD_UDEV_RRRRRRRRRRRRRR
|
||||||
if ((!(test = udev_device_get_subsystem(device))) || (strcmp(test, "input")))
|
if ((!(test = udev_device_get_subsystem(device))) || (strcmp(test, "input")))
|
||||||
goto error;
|
goto error;
|
||||||
if (_walk_parents_for_attr(device, "bInterfaceProtocol", "01"))
|
test = udev_device_get_property_value(device, "ID_CLASS");
|
||||||
break;
|
if ((!_walk_parents_for_attr(device, "bInterfaceProtocol", "01")) && ((!test) || (strcmp(test, "kbd"))))
|
||||||
goto error;
|
goto error;
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
if (!udev_device_get_property_value(device, "ID_INPUT_KEYBOARD"))
|
if (!udev_device_get_property_value(device, "ID_INPUT_KEYBOARD"))
|
||||||
goto error;
|
goto error;
|
||||||
|
@ -81,9 +82,10 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler)
|
||||||
#ifdef OLD_UDEV_RRRRRRRRRRRRRR
|
#ifdef OLD_UDEV_RRRRRRRRRRRRRR
|
||||||
if ((!(test = udev_device_get_subsystem(device))) || (strcmp(test, "input")))
|
if ((!(test = udev_device_get_subsystem(device))) || (strcmp(test, "input")))
|
||||||
goto error;
|
goto error;
|
||||||
if (_walk_parents_for_attr(device, "bInterfaceProtocol", "02"))
|
test = udev_device_get_property_value(device, "ID_CLASS");
|
||||||
break;
|
if ((!_walk_parents_for_attr(device, "bInterfaceProtocol", "02")) && ((!test) || (strcmp(test, "mouse"))))
|
||||||
goto error;
|
goto error;
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
if (!udev_device_get_property_value(device, "ID_INPUT_MOUSE"))
|
if (!udev_device_get_property_value(device, "ID_INPUT_MOUSE"))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue