Go to file
Peter Hutterer 3e81e4adca Handle holes in the event node lists
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>
2015-01-29 06:57:45 +10:00
.gitignore ignore generated files 2013-01-07 07:49:51 +10:00
COPYING Add GPL2 COPYING document 2009-10-21 12:02:58 +10:00
INSTALL Add INSTALL and basic compilation instructions. 2009-11-23 08:50:31 +10:00
Makefile.am Drop evtest-capture references in autotools 2013-03-14 07:02:36 +10:00
README Add a basic README 2013-08-29 07:22:17 +10:00
autogen.sh Add autogen.sh for one less buildstep. 2011-01-05 10:07:10 +10:00
configure.ac evtest 1.32 2014-08-08 12:49:19 +10:00
evtest.c Handle holes in the event node lists 2015-01-29 06:57:45 +10:00
evtest.txt Point users at fuser to figure out what has the device open 2014-08-08 12:46:30 +10:00

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