Try to fix fenrir key going crazy
This commit is contained in:
parent
c0adc2c309
commit
c610c121d8
@ -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'] == []
|
||||||
|
Loading…
Reference in New Issue
Block a user