dont endless loop on mapping issues in evdev
This commit is contained in:
parent
28d12dad91
commit
5cd0a1dd67
@ -106,8 +106,10 @@ class driver(inputDriver):
|
|||||||
if event.code != 0:
|
if event.code != 0:
|
||||||
currMapEvent = self.mapEvent(event)
|
currMapEvent = self.mapEvent(event)
|
||||||
if not currMapEvent:
|
if not currMapEvent:
|
||||||
|
event = self.iDevices[fd].read_one()
|
||||||
continue
|
continue
|
||||||
if not isinstance(currMapEvent['EventName'], str):
|
if not isinstance(currMapEvent['EventName'], str):
|
||||||
|
event = self.iDevices[fd].read_one()
|
||||||
continue
|
continue
|
||||||
if currMapEvent['EventState'] in [0,1,2]:
|
if currMapEvent['EventState'] in [0,1,2]:
|
||||||
eventQueue.put({"Type":fenrirEventType.KeyboardInput,"Data":currMapEvent.copy()})
|
eventQueue.put({"Type":fenrirEventType.KeyboardInput,"Data":currMapEvent.copy()})
|
||||||
|
Loading…
Reference in New Issue
Block a user