Skip to content

Commit 646ac0c

Browse files
committed
Add input properties to output of evtest
1 parent 1cc547b commit 646ac0c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

evdev/evtest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def devicenum(device_path):
121121

122122
def print_capabilities(device):
123123
capabilities = device.capabilities(verbose=True)
124+
input_props = device.input_props(verbose=True)
124125

125126
print('Device name: {.name}'.format(device))
126127
print('Device info: {.info}'.format(device))
@@ -133,6 +134,12 @@ def print_capabilities(device):
133134
active_keys = ','.join(k[0] for k in device.active_keys(True))
134135
print('Active keys: %s\n' % active_keys)
135136

137+
if input_props:
138+
print('Input properties:')
139+
for type, code in input_props:
140+
print(' %s %s' % (type, code))
141+
print()
142+
136143
print('Device capabilities:')
137144
for type, codes in capabilities.items():
138145
print(' Type {} {}:'.format(*type))

0 commit comments

Comments
 (0)