improve ouptut

This commit is contained in:
chrys 2017-10-01 12:43:41 +02:00
parent f83ea85152
commit afc4b398dc

View File

@ -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))