diff options
-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 |