From e02b33f653407c09b8c398109cea3c01d9955b69 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 25 Sep 2016 20:19:32 +0200 Subject: [PATCH] make tutorial mode working with new input handling --- src/fenrir-package/fenrir.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/fenrir.py b/src/fenrir-package/fenrir.py index b0c45e4c..fa8bbf2a 100755 --- a/src/fenrir-package/fenrir.py +++ b/src/fenrir-package/fenrir.py @@ -43,13 +43,14 @@ class fenrir(): # self.environment['runtime']['inputManager'].isFenrirKeyPressed()) and \ # not self.environment['runtime']['commandManager'].isCommandQueued(): - if not (self.wasCommand or self.environment['runtime']['inputManager'].isFenrirKeyPressed()): + if not (self.wasCommand or self.environment['runtime']['inputManager'].isFenrirKeyPressed() or self.environment['generalInformation']['tutorialMode']): self.environment['runtime']['inputManager'].writeEventBuffer() if self.environment['runtime']['inputManager'].noKeyPressed(): if self.wasCommand: - print('mache falsch') self.wasCommand = False self.environment['runtime']['inputManager'].clearEventBuffer() + if self.environment['generalInformation']['tutorialMode']: + self.environment['runtime']['inputManager'].clearEventBuffer() self.environment['input']['prevDeepestInput'] = [] self.environment['runtime']['screenManager'].update()