summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-08-31Fix build error on kernels w/o input propertiesHEADmasterPeter Hutterer1-0/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-08-29Rename BTN_A/B/X/Y to BTN_SOUTH/EAST/NORTH/WESTPeter Hutterer1-2/+7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reported-by: Chris Healy <cphealy@gmail.com>
2013-08-29Add KEY_ATTENDANT_* groupPeter Hutterer1-0/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reported-by: Chris Healy <cphealy@gmail.com>
2013-08-29Add KEY_CAMERA_*Peter Hutterer1-0/+5
Upstream e2d3d44b9a6efe4f3968252d4b680397a9640268 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reported-by: Chris Healy <cphealy@gmail.com>
2013-08-29Add BTN_DPAD_*Peter Hutterer1-0/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reported-by: Chris Healy <cphealy@gmail.com>
2013-08-29Add a basic READMEPeter Hutterer1-0/+19
This is mainly so we have a pointer to the input-tools list Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-08-23Always print EV_REP values, even when no properties existPeter Hutterer1-5/+6
Previous code had repeat handling within the ifdef INPUT_PROP_SEMI_MT. EV_REP pre-dates input properties. Also rename the actual printing code. Repeat handling is sort-of a property but let's not confuse the two. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-08-23Prevent out-of-bounds access for undefined types/codesPeter Hutterer1-9/+38
The various arrays that define the names are of the respective type size (i.e. rel is of size REL_CNT, etc.). This means the size is encoded at compile time, with no boundary checks at runtime for whether a type or code exceeds those limits. Wrap the accesses into those arrays into helper functions that check for the maximum allowed sizes for types and for the respective event codes. Reported-by: Stéphane Chatty <chatty@enac.fr> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-08-23Use temp variables for type/code when printing eventsPeter Hutterer1-9/+14
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-08-23Clarify a conditionPeter Hutterer1-1/+1
EV_SYN is 0, so !type means type == EV_SYN Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-08-23Use type/code/prop instead of i/jPeter Hutterer1-14/+14
Slight readability enhancement Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-08-23Add some extra bracesPeter Hutterer1-1/+2
No functional change Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-08-23Add SYN_DROPPEDPeter Hutterer1-1/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-08-23Define SYN_MAX instead of a hardcoded valuePeter Hutterer1-1/+6
This is a bump from the previous one since current kernels have SYN_DROPPED of 3 - might as well update to this value. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
2013-08-22Drop an unnecessary ifdefPeter Hutterer1-2/+0
SYN_MT_REPORT is always defined (see top of evtest.c) Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-06-04evtest 1.31evtest-1.31Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-06-03Use versionsort instead of alphasortPeter Hutterer1-1/+1
Having /dev/input/event10 sort after /dev/input/event9 almost makes me think the future is here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-03-14Print EV_REP properties and values of those propertiesBenjamin Tissoires1-1/+19
Needs a bit of special treatment, EV_REP bits are not set by the kernel on EVIOCGBIT as properties between 0 and REP_MAX are always set. Hack around that so the output is preventing EV_REP to appear as an event. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-03-14Drop evtest-capture references in autotoolsBenjamin Tissoires2-19/+0
evtest-capture has been dropped, but the references are still there in Makefile.am and configure.ac. In a system having libxml, the make command returns without being able to compile evtest-capture.o Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-03-13Drop evtest-capturePeter Hutterer3-1193/+0
Badly maintained and it only provided rudimentary functionality. Several bugs were never fixed, so recordings would sometimes skip events. Use evemu instead: http://www.freedesktop.org/wiki/Evemu Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-03-13evtest-capture: support a few of the newer definesPeter Hutterer1-0/+17
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-01-07add a configure flag to control xml behaviorMike Frysinger1-4/+8
The default behavior (autodetection) is unchanged. This adds a knob for distros to control directly. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-01-07ignore generated filesMike Frysinger1-0/+22
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-01-07use newer config headers macroMike Frysinger1-1/+1
With newer automake, it throws an error: configure.ac:5: error: 'AM_CONFIG_HEADER': this macro is obsolete. You should use the 'AC_CONFIG_HEADERS' macro instead. The newer macro has been around a long time, so there's no need to worry about backwards compat here. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-11-27add missing symbols: ABS_MT_TOOL_X|Y, ABS_MT_DISTANCE, MSC_TIMESTAMPBenjamin Tissoires1-0/+8
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-04-27evtest 1.30evtest-1.30Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-03-06Fix missing #ifdef around declaration of propbits.Daniel Beer1-0/+2
This declaration references INPUT_PROP_MAX, and was introduced in commit ca8b12d6517568a8a7f2d5244a786e82216f8b43. Signed-off-by: Daniel Beer <dlbeer@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-03-05Add BTN_TOOL_QUINTTAPPeter Hutterer1-0/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-23Add support for input propertiesPeter Hutterer1-0/+21
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-09-05evtest 1.29evtest-1.29Peter Hutterer1-1/+1
fe76f7cd2a6cf3fbb634c61d50648714c050bee4 got inadvertently tagged as 1.28 without bumping configure. Do so now and jump to 1.29. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-09-01Add --version flagPeter Hutterer1-0/+18
evtest versions are different enough now that it does matter what version a user uses. Add a --version flag to ease triaging of bug reports. "gcc -o evtest evtest.c" should continue to work, so add an extra ifdef for the case PACKAGE_VERSION is undefined. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-08-29modify comments to match code (query lookups are case sensitive)Paul Fox1-2/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-08-29change documentation of query-mode exit values to match codePaul Fox1-2/+2
in query mode, the zero/non-zero exit code matches the zero/non-zero state of the key bit. so the command "succeeds" in the shell Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-22Add one-shot query functionalityDaniel Drake2-15/+266
Add functionality to query evdev state of a specific key, switch, button, LED or sound event. This is useful in programs such as powerd (http://wiki.laptop.org/go/Powerd) which need to query things like the state of the laptop lid switch from shell code. Original capture-mode functionality is left unchanged and is still activated by default. New usage modes are explained in the man page. Signed-off-by: Daniel Drake <dsd@laptop.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-18Factor out capture setup code into its own functionDaniel Drake1-33/+35
This is in preparation for a followup patch which adds a one-shot query mode. Signed-off-by: Daniel Drake <dsd@laptop.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-15Remove custom event namesDaniel Drake1-338/+340
As suggested by Dmitry Torokhov, drop the textual name of the individual state bits. We already have the name of the constant - use that instead. Also mark the name lookup tables as static const data. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-06-08Add force-feedback information (#38053)David Gravereaux1-0/+18
X.Org Bug 38053 <http://bugs.freedesktop.org/show_bug.cgi?id=38053> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-16Add REL_RX, REL_RY, REL_RZevtest-1.28Peter Hutterer1-1/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-16evtest-capture: try /dev/uinput first (as well as /dev/input/uinput)Peter Hutterer1-1/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-04Add support for EV_SWDaniel Kurtz1-1/+25
EV_SW is the event type for switches. The EV_SW event codes (SW_*) are defined in the linux kernel in linux/input.h. However, leave the definition of switches in ifdef blocks according to when they were committed to the linux kernel. Signed-off-by: Daniel Kurtz <djkurtz@google.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-22evtest 1.27evtest-1.27Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-18Add bugzilla link, we now have a home on freedesktop.orgPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-10Return the filename directly from scan_devices.Peter Hutterer1-13/+14
Don't go the roundabout path of having it return a number, then convert to a filename. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-10Add vim bits for right indentation/tab spacing.Peter Hutterer1-0/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-10Factor out printing absolute axis extra data.Peter Hutterer1-8/+21
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-10Rename EventDevOnly to is_event_device.Peter Hutterer1-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-10Standardise comment style (doxygen/javadoc).Peter Hutterer1-8/+40
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-10When piping into a file, don't buffer.Peter Hutterer1-1/+3
Turn off buffering when piping the output into a file to stop ppl sending me empty logs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-10If lacking permissions, suggest to the user to run as root.Peter Hutterer1-0/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-10Print device selection to stderr to separate from potential pipes.Peter Hutterer1-5/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>