Update fenrir.py

This commit is contained in:
chrys87 2016-09-21 10:01:57 +02:00 committed by GitHub
parent 77c8b27be2
commit bd21eb797a

View File

@ -34,8 +34,8 @@ class fenrir():
self.shutdown() self.shutdown()
def handleProcess(self): def handleProcess(self):
timeout = self.environment['runtime']['inputManager'].proceedInputEvent(self.environment) eventReceived = self.environment['runtime']['inputManager'].getInputEvent(self.environment)
if not timeout: if eventReceived:
self.prepareCommand() self.prepareCommand()
if not (self.environment['runtime']['inputManager'].isConsumeInput(self.environment) or \ if not (self.environment['runtime']['inputManager'].isConsumeInput(self.environment) or \
self.environment['runtime']['inputManager'].isFenrirKeyPressed(self.environment)) and \ self.environment['runtime']['inputManager'].isFenrirKeyPressed(self.environment)) and \