add delay to sync

This commit is contained in:
Chrys
2019-10-22 00:08:44 +02:00
parent 617942f828
commit 1bb2d35425
2 changed files with 8 additions and 11 deletions

View File

@ -53,13 +53,10 @@ class inputManager():
if force:
self.setExecuteDeviceGrab()
if not self.executeDeviceGrab:
print('1')
return
if self.env['input']['eventBuffer'] != []:
print('2', self.env['input']['eventBuffer'])
return
if not self.noKeyPressed():
print('3')
return
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
self.executeDeviceGrab = False
@ -224,7 +221,7 @@ class inputManager():
def setLastDeepestInput(self, currentDeepestInput):
self.lastDeepestInput = currentDeepestInput
def clearLastDeepInput(self):
self.lastDeepestInput = []
self.lastDeepestInput = []
def getLastInputTime(self):
return self.lastInputTime
def getLastDeepestInput(self):
@ -266,7 +263,7 @@ class inputManager():
shortcut = []
self.env['input']['shortcutRepeat'] = 1
shortcut.append(self.env['input']['shortcutRepeat'])
shortcut.append(self.env['input']['currInput'])
shortcut.append(self.env['input']['currInput'])
self.env['runtime']['debug'].writeDebugOut("currShortcut " + str(shortcut) ,debug.debugLevel.INFO)
return str(shortcut)