Update fenrir.py
This commit is contained in:
parent
e501f7293f
commit
8f8f8305e2
@ -36,7 +36,10 @@ class fenrir():
|
|||||||
|
|
||||||
def handleProcess(self):
|
def handleProcess(self):
|
||||||
eventReceived = self.environment['runtime']['inputManager'].getInputEvent()
|
eventReceived = self.environment['runtime']['inputManager'].getInputEvent()
|
||||||
startTime = time.time()
|
startTime = time.time()
|
||||||
|
if not eventReceived:
|
||||||
|
if not self.environment['runtime']['screenManager'].isSuspendingScreen():
|
||||||
|
self.environment['runtime']['inputManager'].updateInputDevices()
|
||||||
if eventReceived:
|
if eventReceived:
|
||||||
self.prepareCommand()
|
self.prepareCommand()
|
||||||
if not (self.wasCommand or self.environment['generalInformation']['tutorialMode']) or self.environment['runtime']['screenManager'].isSuspendingScreen():
|
if not (self.wasCommand or self.environment['generalInformation']['tutorialMode']) or self.environment['runtime']['screenManager'].isSuspendingScreen():
|
||||||
|
Loading…
Reference in New Issue
Block a user