Update inputManager.py
This commit is contained in:
parent
0a77f2a54d
commit
0082898119
@ -136,10 +136,12 @@ class inputManager():
|
|||||||
self.env['runtime']['inputDriver'].ungrabAllDevices()
|
self.env['runtime']['inputDriver'].ungrabAllDevices()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
def handlePlugInputDevice(self, eventData):
|
||||||
|
self.env['runtime']['inputManager'].updateInputDevices(eventData)
|
||||||
|
|
||||||
def updateInputDevices(self):
|
def updateInputDevices(self, newDevice = None):
|
||||||
try:
|
try:
|
||||||
self.env['runtime']['inputDriver'].updateInputDevices()
|
self.env['runtime']['inputDriver'].updateInputDevices(newDevice)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
self.handleDeviceGrab(True)
|
self.handleDeviceGrab(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user