Update inputManager.py

This commit is contained in:
chrys87 2018-05-18 11:19:40 +02:00 committed by GitHub
parent 0a77f2a54d
commit 0082898119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)