update debug code in traceEvdev
This commit is contained in:
parent
13a4ece690
commit
77db18f366
@ -5,9 +5,16 @@ from select import select
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
devices = map(evdev.InputDevice, (evdev.list_devices()))
|
devices = map(evdev.InputDevice, (evdev.list_devices()))
|
||||||
devices = {dev.fd: dev for dev in devices}
|
devicesNew = {}
|
||||||
for fd in devices:
|
for dev in devices:
|
||||||
print('Devicename:'+ devices[fd].name + ' Devicepath:' + devices[fd].fn )
|
try:
|
||||||
|
devicesNew[dev.fd] = dev
|
||||||
|
print('DONE: Devicename:'+ devicesNew[dev.fd].name + ' Devicepath:' + devicesNew[dev.fd].fn )
|
||||||
|
except Exception as e:
|
||||||
|
print('ERROR:'+ ' ' + str(e) )
|
||||||
|
|
||||||
|
for fd in devicesNew:
|
||||||
|
print('Devicename:'+ devicesNew[fd].name + ' Devicepath:' + devicesNew[fd].fn )
|
||||||
|
|
||||||
#--- log events---
|
#--- log events---
|
||||||
#while True:
|
#while True:
|
||||||
|
Loading…
Reference in New Issue
Block a user