improve event fire

This commit is contained in:
chrys 2018-06-28 00:01:03 +02:00
parent 6728dd5745
commit 4fdb3a5b61

View File

@ -114,7 +114,8 @@ class driver(inputDriver):
eventQueue.put({"Type":fenrirEventType.KeyboardInput,"Data":currMapEvent.copy()})
eventFired = True
else:
if not event.type in [0,4]:
pass
if event.type in [2,3]:
foreward = True
event = self.iDevices[fd].read_one()
@ -262,6 +263,7 @@ class driver(inputDriver):
return False
ledState = self.getLedState(led)
for i in self.iDevices:
if self.gDevices[i]:
# 17 LEDs
if 17 in self.iDevices[i].capabilities():
if ledState == 1: