From bd21eb797a729ee59d8c2d81d8b10a53fbbb71fe Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 21 Sep 2016 10:01:57 +0200 Subject: [PATCH] Update fenrir.py --- src/fenrir-package/fenrir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/fenrir.py b/src/fenrir-package/fenrir.py index 55993c9f..5e26c255 100755 --- a/src/fenrir-package/fenrir.py +++ b/src/fenrir-package/fenrir.py @@ -34,8 +34,8 @@ class fenrir(): self.shutdown() def handleProcess(self): - timeout = self.environment['runtime']['inputManager'].proceedInputEvent(self.environment) - if not timeout: + eventReceived = self.environment['runtime']['inputManager'].getInputEvent(self.environment) + if eventReceived: self.prepareCommand() if not (self.environment['runtime']['inputManager'].isConsumeInput(self.environment) or \ self.environment['runtime']['inputManager'].isFenrirKeyPressed(self.environment)) and \