catch some driver calls
This commit is contained in:
parent
e58d13dced
commit
e812d4e2ae
@ -109,10 +109,16 @@ class inputManager():
|
|||||||
|
|
||||||
def grabAllDevices(self):
|
def grabAllDevices(self):
|
||||||
if self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
if self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
||||||
self.env['runtime']['inputDriver'].grabAllDevices()
|
try:
|
||||||
|
self.env['runtime']['inputDriver'].grabAllDevices()
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
def ungrabAllDevices(self):
|
def ungrabAllDevices(self):
|
||||||
if self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
if self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
||||||
self.env['runtime']['inputDriver'].ungrabAllDevices()
|
try:
|
||||||
|
self.env['runtime']['inputDriver'].ungrabAllDevices()
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
|
|
||||||
def updateInputDevices(self):
|
def updateInputDevices(self):
|
||||||
try:
|
try:
|
||||||
@ -155,7 +161,10 @@ class inputManager():
|
|||||||
return eventName
|
return eventName
|
||||||
|
|
||||||
def clearEventBuffer(self):
|
def clearEventBuffer(self):
|
||||||
self.env['runtime']['inputDriver'].clearEventBuffer()
|
try:
|
||||||
|
self.env['runtime']['inputDriver'].clearEventBuffer()
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
def setLastDeepestInput(self, currentDeepestInput):
|
def setLastDeepestInput(self, currentDeepestInput):
|
||||||
self.lastDeepestInput = currentDeepestInput
|
self.lastDeepestInput = currentDeepestInput
|
||||||
def clearLastDeepInput(self):
|
def clearLastDeepInput(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user