make fenrir useable with mouse and other nonwatched input events

This commit is contained in:
chrys
2016-12-18 00:10:08 +01:00
parent dec8b41b18
commit 932034b560
2 changed files with 20 additions and 6 deletions

View File

@ -15,6 +15,6 @@ while True:
if r != []:
for fd in r:
for event in devices[fd].read():
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 + ' EventType: ' + str(event.type) + ' Events:' + str(devices[fd].active_keys(verbose=True)) + ' Value:' + str(event.value))