On Thu, Jul 30, 2009 at 04:07, Martin Pitt<[email protected]> wrote: > Peter Hutterer [2009-07-30 14:13 +1000]: >> The X server uses libhal to connect to HAL and asks it for the device list >> (libhal_find_device_by_capability(.. "input" ...) > > The libudev counterpart would be udev_enumerate_*() [1] with scanning for > the "input" subsystem, and then you could use > udev_device_get_devtype() to check for "event" (I didn't test this, > though).
I don't think "input" currently sets the device_type in the kernel, and this will return NULL. But *_get_sysname() will return the name of the device, where the prefix can be checked. Kay _______________________________________________ devkit-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/devkit-devel
