summaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-02-18 14:20:22 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-05-05 03:59:34 +0000
commitcf1abf08186f607b20bd7fdec32b7ab16378f1aa (patch)
treeb60c100ba9874b697b706679fa51e43f13890373 /completion
parentf1b16c18e5f33c590e8c9e643ed53effe73cbc51 (diff)
downloadlibinput-cf1abf08186f607b20bd7fdec32b7ab16378f1aa.tar.gz
tools/record: add support for hidraw recording
New commandline switch --with-hidraw. This will open all hidraw devices associated with this device and add any reports to the output in the form: events: - hid: time: [0, 0] hidraw1: [0x01, 0x02, 0x03, 0x05, 0x06] hidraw2: [0x07, 0x08, 0x09, 0x0a, 0x0b] - evdev: ... i.e. there's a nesting of `hid` with a list of reports, each with the hidraw node as dictionary entry. Because hidraw events do not have timestamps and always occur before the evdev events, they are in a separate frame (as shown above). We could try to figure out how to match them with the upcoming evdev frame but it's not worth it for now. The timestamp itself is a special key in the hidraw with the timestamp from clock_gettime. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'completion')
-rw-r--r--completion/zsh/_libinput1
1 files changed, 1 insertions, 0 deletions
diff --git a/completion/zsh/_libinput b/completion/zsh/_libinput
index 617bc165..3eb32f2e 100644
--- a/completion/zsh/_libinput
+++ b/completion/zsh/_libinput
@@ -223,6 +223,7 @@ __all_seats()
'--multiple[Record multiple devices at once]' \
'--show-keycodes[Show keycodes as-is in the recording]' \
'--with-libinput[Record libinput events alongside device events]' \
+ '--with-hidraw[Record hidraw events alongside device events]' \
'*::device:_files -W /dev/input/ -P /dev/input/'
}