add force
This commit is contained in:
parent
d01d4f0773
commit
42a690de77
@ -49,7 +49,9 @@ class inputManager():
|
|||||||
return event
|
return event
|
||||||
def setExecuteDeviceGrab(self, newExecuteDeviceGrab = True):
|
def setExecuteDeviceGrab(self, newExecuteDeviceGrab = True):
|
||||||
self.executeDeviceGrab = newExecuteDeviceGrab
|
self.executeDeviceGrab = newExecuteDeviceGrab
|
||||||
def handleDeviceGrab(self):
|
def handleDeviceGrab(self, force = False):
|
||||||
|
if force:
|
||||||
|
self.setExecuteDeviceGrab()
|
||||||
if not self.executeDeviceGrab:
|
if not self.executeDeviceGrab:
|
||||||
print('1')
|
print('1')
|
||||||
return
|
return
|
||||||
@ -175,10 +177,9 @@ class inputManager():
|
|||||||
self.env['runtime']['inputDriver'].updateInputDevices(newDevice)
|
self.env['runtime']['inputDriver'].updateInputDevices(newDevice)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
self.setExecuteDeviceGrab()
|
|
||||||
try:
|
try:
|
||||||
if self.env['runtime']['screenManager']:
|
if self.env['runtime']['screenManager']:
|
||||||
self.handleDeviceGrab()
|
self.handleDeviceGrab(force = True)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
def removeAllDevices(self):
|
def removeAllDevices(self):
|
||||||
|
@ -417,10 +417,10 @@ class settingsManager():
|
|||||||
environment['runtime']['vmenuManager'].initialize(environment)
|
environment['runtime']['vmenuManager'].initialize(environment)
|
||||||
environment['runtime']['quickMenuManager'] = quickMenuManager.quickMenuManager()
|
environment['runtime']['quickMenuManager'] = quickMenuManager.quickMenuManager()
|
||||||
environment['runtime']['quickMenuManager'].initialize(environment)
|
environment['runtime']['quickMenuManager'].initialize(environment)
|
||||||
|
|
||||||
# only possible after having input and screen managers with clean buffer
|
# only possible after having input and screen managers with clean buffer
|
||||||
environment['runtime']['inputManager'].setExecuteDeviceGrab()
|
|
||||||
environment['runtime']['inputManager'].writeEventBuffer()
|
environment['runtime']['inputManager'].writeEventBuffer()
|
||||||
environment['runtime']['inputManager'].handleDeviceGrab()
|
environment['runtime']['inputManager'].handleDeviceGrab(force = True)
|
||||||
|
|
||||||
environment['runtime']['debug'].writeDebugOut('\/-------environment-------\/',debug.debugLevel.INFO, onAnyLevel=True)
|
environment['runtime']['debug'].writeDebugOut('\/-------environment-------\/',debug.debugLevel.INFO, onAnyLevel=True)
|
||||||
environment['runtime']['debug'].writeDebugOut(str(environment), debug.debugLevel.INFO, onAnyLevel=True)
|
environment['runtime']['debug'].writeDebugOut(str(environment), debug.debugLevel.INFO, onAnyLevel=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user