summaryrefslogtreecommitdiff
path: root/libevdev/make-event-names.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop the argparse requirement for make-event-names.pyPeter Hutterer2014-01-151-9/+10
| | | | | | | | | We only take one option (path to linux/input.h) anyway so drop the argparse requirement. This way libevdev builds on RHEL6 too which doesn't ship argparse. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
* Drop --output flag and python generation code from make-event-names.pyPeter Hutterer2014-01-151-41/+1
| | | | | | | | This is a leftover from when the file was in evemu and used to generate python headers too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
* include: update linux/input.h for kernel 3.12Peter Hutterer2014-01-091-4/+0
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* Create event type/code lookup tablesDavid Herrmann2013-10-311-4/+59
| | | | | | | | | | | | | Additionally to type->string mapping tables we now also create string->type lookup tables. The lookup tables are sorted by their name so binary-search will work. We create one lookup table for EV_* types and one for all event-codes. More tables (like bus-names, input-properties, ..) can be added later. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Pass linux/input.h as argument to make-event-names.pyPeter Hutterer2013-10-231-6/+5
| | | | | | Rather than a hardcoded path inside the source. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Match the kernel define for SYN_MAXPeter Hutterer2013-09-041-1/+3
| | | | | | | | | Will be defined as 0xf in 3.12, see http://git.kernel.org/cgit/linux/kernel/git/dtor/input.git/commit/?h=next&id=52764fed5049655926bcecaefd52f0a415ceb105 And add the required ifdef guards for kernels before that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Ignore -Woverride-init in event-names.hPeter Hutterer2013-08-291-2/+3
| | | | | | | | | | | | Having the declarations in the form of [0...EV_MAX] = NULL together with the actual definitions causes warnings for every true definition if -Woverride-init is enabled. We can drop them for most as they're zero, but still need them for ev_max (which defaults to -1), not zero. So use the GCC pragma to disable the warnings for this file. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Change event name generate script to be python 2/3 compatiblePeter Hutterer2013-08-291-47/+48
| | | | | | | | | | | | | | | | | | Python 3 doesn't have a print statement, only a print function. Fixed with: 2to3 make-event-names.py | git apply Print as function requires Python 2.6 which is reasonable enough given that even RHEL6 ships that. Even though it's not needed for 2.6, use from __future__ import print_function to avoid accidentally introducing a print statement in the future. With this line, print "blah" is now a syntax error in python 2. This line was added manually, after the 2to3 conversion. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Handle EV_REP events in event-names.hPeter Hutterer2013-06-261-0/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Default to a max of -1 for undefined EV_foo bitsPeter Hutterer2013-06-261-0/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Blacklist some key names that resolve to other namesPeter Hutterer2013-06-041-1/+8
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Expose API for retrieving event namesPeter Hutterer2013-06-041-0/+178
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>