Init absinfo with 0 to avoid spurious resolutions

Since we don't set the resolution, this ends up being garbage.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
add *.pyc to gitignore

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
data: remove empty event file

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
data: update recordings to new format

new *.prop files are given by evemu-play/record.
new *.event files are parsed and re-output to the new format to avoid
changes introduced by the kernel while re-reading them back.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
If no device file is given, display the list

Code taken from evtest, but since I wrote that code I'm happy for the
relicensing. License picked for that code is MIT so we won't have to worry
about copying that code in the future.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
python: make test robust to comment differences

Strip out comments and empty lines, but also strip the device description
from the recordings file before comparing events.

EVEMU 1.1 event format includes the device description as well as the
events. The test suite calls evemu_record() directly though which does not
write the description. Thus filter it from the input file to avoid
comparison failures.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

Benjamin Tissoires:
* rename strip_description() to extract_events() to reflect the code.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
python: fix file type detection to cater for new format

First line may not be N:, it could be either.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Don't check for SYN_MT_REPORT bits while replaying events

This bit may not be set on the device but the kernel still allows the
events.

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