This commit is contained in:
chrys 2016-07-13 10:58:07 +02:00
parent d6e8c5857b
commit 45dd094b9f

View File

@ -18,9 +18,7 @@ from utils import debug
class fenrir(): class fenrir():
def __init__(self): def __init__(self):
self.threadUpdateScreen = None
self.threadHandleInput = None self.threadHandleInput = None
self.threadHandleCommandQueue = None
self.environment = environment.environment self.environment = environment.environment
self.environment['runtime']['inputManager'] = inputManager.inputManager() self.environment['runtime']['inputManager'] = inputManager.inputManager()
self.environment['runtime']['settingsManager'] = settingsManager.settingsManager() self.environment['runtime']['settingsManager'] = settingsManager.settingsManager()
@ -41,12 +39,8 @@ class fenrir():
self.environment['runtime']['settingsManager'].getSetting(self.environment,'sound', 'driver')) self.environment['runtime']['settingsManager'].getSetting(self.environment,'sound', 'driver'))
def proceed(self): def proceed(self):
#self.threadUpdateScreen = Thread(target=self.updateScreen, args=())
self.threadHandleInput = Thread(target=self.handleInput, args=()) self.threadHandleInput = Thread(target=self.handleInput, args=())
#self.threadCommands = Thread(target=self.handleCommands, args=())
#self.threadUpdateScreen.start()
self.threadHandleInput.start() self.threadHandleInput.start()
#self.threadCommands.start()
while(self.environment['generalInformation']['running']): while(self.environment['generalInformation']['running']):
self.updateScreen() self.updateScreen()
self.shutdown() self.shutdown()