1 parent 1cc547b commit 646ac0cCopy full SHA for 646ac0c
1 file changed
evdev/evtest.py
@@ -121,6 +121,7 @@ def devicenum(device_path):
121
122
def print_capabilities(device):
123
capabilities = device.capabilities(verbose=True)
124
+ input_props = device.input_props(verbose=True)
125
126
print('Device name: {.name}'.format(device))
127
print('Device info: {.info}'.format(device))
@@ -133,6 +134,12 @@ def print_capabilities(device):
133
134
active_keys = ','.join(k[0] for k in device.active_keys(True))
135
print('Active keys: %s\n' % active_keys)
136
137
+ if input_props:
138
+ print('Input properties:')
139
+ for type, code in input_props:
140
+ print(' %s %s' % (type, code))
141
+ print()
142
+
143
print('Device capabilities:')
144
for type, codes in capabilities.items():
145
print(' Type {} {}:'.format(*type))
0 commit comments