The current code simply counts the number of directory entries and takes that as the maximum event node given. That isn't true if we have a hole in the event range after removing a device, making the last device in the list unaccessible. Fix this by actually looking at the event node numbers. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> |
||
---|---|---|
.gitignore | ||
COPYING | ||
INSTALL | ||
Makefile.am | ||
README | ||
autogen.sh | ||
configure.ac | ||
evtest.c | ||
evtest.txt |
README
Summary ======= evtest is a tool to print evdev kernel events. It reads directly from the kernel device and prints a device description and the events with the value and the symbolic name. Usage: evtest /dev/input/event0 Note: in most cases evtest needs to run as root to be able to read the devices. For more information, see the evtest(1) man page. Development ========== Please send patches to input-tools@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/input-tools