mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-01 10:30:09 +01:00
tools: libinput-replay: only print the events in verbose mode
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
5883ac7d98
commit
e4ce6dfb0a
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue