From 5a46b3320e09ce4573dcdb4003b0181d70e56f91 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 23 Oct 2016 19:58:04 -0400 Subject: [PATCH] Revert "change the sorting of events may not be a good idea" This reverts commit 1fa9259bd73d1f7936f29c83d83244ef1ec2f84f. --- src/fenrir/inputDriver/evdev.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fenrir/inputDriver/evdev.py b/src/fenrir/inputDriver/evdev.py index e3320997..2815a818 100644 --- a/src/fenrir/inputDriver/evdev.py +++ b/src/fenrir/inputDriver/evdev.py @@ -35,14 +35,16 @@ class driver(): for fd in r: event = self.iDevices[fd].read_one() while(event): - self.env['input']['eventBuffer'].append( [self.iDevices[fd], self.uDevices[fd], event]) if event.type == evdev.events.EV_KEY: + self.env['input']['eventBuffer'].append( [self.iDevices[fd], self.uDevices[fd], event]) if event.code != 0: currMapEvent = self.env['runtime']['inputDriver'].mapEvent(event) if not currMapEvent: return currMapEvent if currMapEvent['EventState'] in [0,1,2]: - return currMapEvent + return currMapEvent + else: + self.writeUInput(self.uDevices[fd], event) event = self.iDevices[fd].read_one() return None