Update evdevDriver.py

This commit is contained in:
chrys87 2018-03-07 13:10:11 +01:00 committed by GitHub
parent c9cfb5b84c
commit b56c0acae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ class driver(inputDriver):
foreward = True foreward = True
event = self.iDevices[fd].read_one() event = self.iDevices[fd].read_one()
continue continue
if not foreward: if not foreward or eventFired:
if currMapEvent['EventState'] in [0,1,2]: if currMapEvent['EventState'] in [0,1,2]:
eventQueue.put({"Type":fenrirEventType.KeyboardInput,"Data":currMapEvent}) eventQueue.put({"Type":fenrirEventType.KeyboardInput,"Data":currMapEvent})
eventFired = True eventFired = True