summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-03-12 13:41:22 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-03-13 10:57:57 +1000
commite4ce6dfb0aa1d2e601c9c912560436b0aacf9fdd (patch)
tree3cae88bab40537463eec8683b8b9f835a1bb5f1d
parent5883ac7d98614e735e44767f3fef0e2ca03ad1ee (diff)
tools: libinput-replay: only print the events in verbose mode
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rwxr-xr-xtools/libinput-replay3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libinput-replay b/tools/libinput-replay
index 4097cc82..df77139c 100755
--- a/tools/libinput-replay
+++ b/tools/libinput-replay
@@ -122,7 +122,8 @@ def replay(device, verbose):
evs = [libevdev.InputEvent(libevdev.evbit(e[2], e[3]), value=e[4], sec=e[0], usec=e[1]) for e in evdev]
uinput.send_events(evs)
- print_events(uinput.devnode, device['__index'], evs)
+ if verbose:
+ print_events(uinput.devnode, device['__index'], evs)
def wrap(func, *args):