Generate event names from linux/input.h

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Print human-readable descriptions of the device and events

Print the events as human-readable descriptions as well as the format we
need. Format tries to be the same as evtest.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Print readable description next to actual event data

Changed format, the evtest format is too wide for printing next to the line

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

Benjamin Tissoires:
* rebase by dropping Write-event-descriptions-as-one-block-up-to-EV_SYN patch

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Be strict about parsing errors

If a line isn't the input we need, complain and fail.

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

An empty input line should not case a parsing error, they can be silently
ignored.

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