diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-02-11 10:11:22 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-02-11 10:11:22 +0100 |
commit | 7354c80f8aa06f7d048212027a53f9630f4603a6 (patch) | |
tree | 66410157951661f0acda745f8f28175f586fe7cd | |
parent | 06ae55b224a33e8a00eeefe5149aef2a88f3213f (diff) |
inputdev_describe: filter out tautological SYN cap
-rwxr-xr-x | inputdev_describe | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/inputdev_describe b/inputdev_describe index ed43920..37fd3dd 100755 --- a/inputdev_describe +++ b/inputdev_describe @@ -26,7 +26,12 @@ with contextlib.closing(evdev.InputDevice(args.device)) as device: info['version'] = device.info.version out['info'] = info - out['capabilities'] = device.capabilities() + caps = {} + for t, l in device.capabilities().items(): + if t == evdev.ecodes.EV_SYN: + continue + caps[t] = l + out['capabilities'] = caps # TODO: LEDs |