Convert make-event-names.py to allow Python3

Python3 doesn't have dict.has_key(), just try to access they key instead and
catch the exception.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
make-event-names: use multi-line print instead of several print calls

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
gitignore a bunch of test files, ctags files and vim .swp files

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Remove superflous "waiting for events" output

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Fix the evemu description conversion script

Namespacing missing from 2214fe128b29cb961d645a59ca80f5dedae6fca2

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: drop the uinput fd argument from evemu_destroy

Dropped in 3b5305d3cae884509ea1c5a400f689e7c2363cfc and dropped from most of
the python bits except here.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: leave uinput creation up to evemu

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: move the generated event_names.py to the python bits

The conversion script now requires manually setting PYTHONPATH unless the
evemu python bits are installed systemwide, but it's not used that often
anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: add an extra flag to evemu.Device.__init__ to avoid uinput creation

If we're just reading a file for info, we don't need to create a uinput
device.

This means we can now use the conversion script without being root. Oh, the
progress!

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: add a wrapper around evemu_read_event

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>