improve ouptut
This commit is contained in:
parent
f83ea85152
commit
afc4b398dc
@ -6,9 +6,8 @@ import time
|
|||||||
|
|
||||||
iDevices = map(evdev.InputDevice, (evdev.list_devices()))
|
iDevices = map(evdev.InputDevice, (evdev.list_devices()))
|
||||||
iDevices = {dev.fd: dev for dev in iDevices}
|
iDevices = {dev.fd: dev for dev in iDevices}
|
||||||
|
|
||||||
for fd in iDevices:
|
|
||||||
print('----------------------')
|
print('----------------------')
|
||||||
|
for fd in iDevices:
|
||||||
dev = iDevices[fd]
|
dev = iDevices[fd]
|
||||||
cap = dev.capabilities()
|
cap = dev.capabilities()
|
||||||
print('Name: ' + str(dev.name))
|
print('Name: ' + str(dev.name))
|
||||||
|
Loading…
Reference in New Issue
Block a user