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