From 92d59146ce2024290d11ec728056225a5134e4e1 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 31 Aug 2016 13:54:00 +0200 Subject: [PATCH] Update inputManager.py --- src/fenrir-package/core/inputManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/core/inputManager.py b/src/fenrir-package/core/inputManager.py index fe285bec..7a47c893 100644 --- a/src/fenrir-package/core/inputManager.py +++ b/src/fenrir-package/core/inputManager.py @@ -28,7 +28,7 @@ class inputManager(): environment['input']['consumeKey'] = not environment['input']['keyForeward'] and not environment['generalInformation']['suspend'] if self.isConsumeKeypress(environment): environment['runtime']['debug'].writeDebugOut(environment, str(event)+' consume'+str(time.time()),debug.debugLevel.ERROR) - self.writeUInput(self.uDevices[fd], event) + self.writeUInput(self.uDevices[fd], event,environment) keyString = '' if self.isFenrirKey(environment, event): keyString = 'FENRIR' @@ -62,7 +62,7 @@ class inputManager(): environment['input']['keyForeward'] or \ not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'grabDevices') - def writeUInput(self, uDevice, event): + def writeUInput(self, uDevice, event,environment): try: environment['runtime']['debug'].writeDebugOut(environment, str(event)+' write event '+str(time.time()),debug.debugLevel.ERROR) uDevice.write_event(event)