Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
There is no evdev ioctl to set the state of a device without sending an event
through the device, so we can't replicate the state without altering the
recorded event sequence. For this reason, we use the libevdev shortcut to
query the state rather than adding an evemu-specific API to get the state.
The state is printed to the comments, and optionally printed to the recording
(0 is assumed when missing).
EV_KEY can give us the state but we don't print it, unlike the others a key
state is too transient.
EV_SND could be added, if we ever see demand for it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
|
|
Now that we have a mailing list, might as well point to it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
|
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
|
|
commit 83be088ca7876fe3c breaks old format compatibility.
It requires comments to be inserted everywhere in the file, thus the
bump of the file format.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Switch to using getline for per-line handling of input. Check each line for
a preceding comment character, then skip ahead. First line _may_ be the file
format version so we need to manually handle that with getline.
As a side-effect, this gives us support for end-of-line comments too since
we always discard what is in the buffer after our scanf ended. Plus it fixes
a bug where a mismatched input line would quietly confuse the parser.
Previously, an input line
I: 1 2 3 4 5 6\n
was parsed with fscanf("I: %04x %04x %04x %04x\n", &bustype, &vendor, &product, &version)
The next read to the file will point to "5" instead of the next line.
Treating each line independently fixes this issue, though we're still quiet
about the parsing errors.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=62272
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Benjamin Tissoires:
* Change read_* to parse_* to reflect the semantic change.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
|
|
Simple header in the form of # EVEMU 1.0 to add to the description format.
Being a comment this means it's ignored for older version of evemu (though
they may still have parsing issues), newer versions can parse it.
Declare current version as 1.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
|
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
|