change the sorting of events may not be a good idea
This commit is contained in:
parent
05f44f9fb9
commit
1fa9259bd7
@ -35,16 +35,14 @@ class driver():
|
|||||||
for fd in r:
|
for fd in r:
|
||||||
event = self.iDevices[fd].read_one()
|
event = self.iDevices[fd].read_one()
|
||||||
while(event):
|
while(event):
|
||||||
|
self.env['input']['eventBuffer'].append( [self.iDevices[fd], self.uDevices[fd], event])
|
||||||
if event.type == evdev.events.EV_KEY:
|
if event.type == evdev.events.EV_KEY:
|
||||||
self.env['input']['eventBuffer'].append( [self.iDevices[fd], self.uDevices[fd], event])
|
|
||||||
if event.code != 0:
|
if event.code != 0:
|
||||||
currMapEvent = self.env['runtime']['inputDriver'].mapEvent(event)
|
currMapEvent = self.env['runtime']['inputDriver'].mapEvent(event)
|
||||||
if not currMapEvent:
|
if not currMapEvent:
|
||||||
return currMapEvent
|
return currMapEvent
|
||||||
if currMapEvent['EventState'] in [0,1,2]:
|
if currMapEvent['EventState'] in [0,1,2]:
|
||||||
return currMapEvent
|
return currMapEvent
|
||||||
else:
|
|
||||||
self.writeUInput(self.uDevices[fd], event)
|
|
||||||
event = self.iDevices[fd].read_one()
|
event = self.iDevices[fd].read_one()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user