prepare for remake input handling, prepare other stuff
This commit is contained in:
21
src/fenrir-package/core/screenManager.py
Normal file
21
src/fenrir-package/core/screenManager.py
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/python
|
||||
import time
|
||||
from utils import debug
|
||||
|
||||
class screenManager():
|
||||
def __init__(self):
|
||||
pass
|
||||
def initialize(self, environment):
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def update(self, environment):
|
||||
environment['generalInformation']['suspend'] = self.isSuspendingScreen(environment)
|
||||
if not environment['generalInformation']['suspend']:
|
||||
environment = environment['runtime']['screenDriver'].update(environment)
|
||||
return environment
|
||||
|
||||
def isSuspendingScreen(self, environment):
|
||||
return environment['generalInformation']['suspend'] = environment['runtime']['screenDriver'].getCurrScreen() in \
|
||||
environment['runtime']['settingsManager'].getSetting(environment,'screen', 'suspendingScreen').split(',')
|
||||
|
Reference in New Issue
Block a user