make update Rate configurable

This commit is contained in:
chrys
2016-08-08 21:10:43 +02:00
parent 77d5400633
commit de92da8b00
4 changed files with 9 additions and 7 deletions

View File

@ -13,7 +13,7 @@ class inputManager():
def getKeyPressed(self, environment):
timeout = True
try:
r, w, x = select(self.devices, [], [],0.4)
r, w, x = select(self.devices, [], [], environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'screen', 'screenUpdateDelay'))
environment['runtime']['globalLock'].acquire(True)
if r != []:
timeout = False

View File

@ -26,6 +26,7 @@ settings = {
},
'screen':{
'driver': 'linux',
'screenUpdateDelay':0.4,
},
'general':{
'keyboardLayout': "desktop",