chiark / gitweb /
terminal: add evdev elements to idev
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 27 Aug 2014 16:31:34 +0000 (18:31 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 27 Aug 2014 16:42:28 +0000 (18:42 +0200)
commitc93e5a62ff599528c3bf2a8656825403aaebe093
tree4aed2f2ccaad553397e60d68851b5fdc80307d6e
parente202fa31fb2d60084e7b2ab7976a81c138184d40
terminal: add evdev elements to idev

The evdev-element provides linux evdev interfaces as idev-elements. This
way, all real input hardware devices on linux can be used with the idev
interface.

We use libevdev to interface with the kernel. It's a simple wrapper
library around the kernel evdev API that takes care to resync devices
after kernel-queue overflows, which is a rather non-trivial task.
Furthermore, it's a well tested interface used by all other major input
users (Xorg, weston, libinput, ...).
Last but not least, it provides nice keycode to keyname lookup tables (and
vice versa), which is really nice for debugging input problems.
Makefile.am
configure.ac
src/libsystemd-terminal/idev-evdev.c [new file with mode: 0644]
src/libsystemd-terminal/idev-internal.h
src/libsystemd-terminal/idev.c
src/libsystemd-terminal/idev.h