Try to fix fenrir key going crazy

This commit is contained in:
chrys87 2016-10-25 17:57:33 +02:00 committed by GitHub
parent c0adc2c309
commit c610c121d8

View File

@ -168,10 +168,10 @@ class inputManager():
self.env['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR) self.env['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR)
def isFenrirKeyPressed(self): def isFenrirKeyPressed(self):
return 'KEY_FENRIR' in self.env['input']['currInput'] return 'KEY_FENRIR' in self.env['input']['prevDeepestInput']
def isScriptKeyPressed(self): def isScriptKeyPressed(self):
return 'KEY_SCRIPT' in self.env['input']['currInput'] return 'KEY_SCRIPT' in self.env['input']['prevDeepestInput']
def noKeyPressed(self): def noKeyPressed(self):
return self.env['input']['currInput'] == [] return self.env['input']['currInput'] == []