print current event in consumeEvent
This commit is contained in:
parent
b72614a9a4
commit
315ae6e5a8
@ -31,6 +31,7 @@ while i < 100:
|
|||||||
for fd in r:
|
for fd in r:
|
||||||
for event in iDevices[fd].read():
|
for event in iDevices[fd].read():
|
||||||
if event.code != 30: # a
|
if event.code != 30: # a
|
||||||
|
print(event)
|
||||||
uDevices[fd].write_event(event)
|
uDevices[fd].write_event(event)
|
||||||
uDevices[fd].syn()
|
uDevices[fd].syn()
|
||||||
#print('Devicename:'+ devices[fd].name + ' Devicepath:' + devices[fd].fn + ' Events:' + str(devices[fd].active_keys(verbose=True)) + ' Value:' + str(event.value))
|
#print('Devicename:'+ devices[fd].name + ' Devicepath:' + devices[fd].fn + ' Events:' + str(devices[fd].active_keys(verbose=True)) + ' Value:' + str(event.value))
|
||||||
|
Loading…
Reference in New Issue
Block a user