[Bug 196678] [x11-servers/xorg-server] [PATCH] Xorg devd backend

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 14 13:25:43 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196678

--- Comment #20 from Vitaly Magerya <vmagerya at gmail.com> ---
Evdev devices should already have an IOCTL that exposes that
information; see 'libevdev_has_event_type' and 'libevdev_set_fd'
over at [1].

For example, if 'libevdev_has_event_type(device, EV_ABS)' is
true, then it's a touchpad. (Maybe an additional test for
'libevdev_has_event_code(evdev, EV_KEY, BTN_TOUCH)' being true
is also needed, I'm not sure).

I think this can be corrected later -- if this patch will be
accepted at all, improving it will be easy enough from there.

[1] http://cgit.freedesktop.org/libevdev/tree/libevdev/libevdev.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list