From 0082898119c2c31b77400536baa2285d116876fc Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 18 May 2018 11:19:40 +0200 Subject: [PATCH] Update inputManager.py --- src/fenrirscreenreader/core/inputManager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/core/inputManager.py b/src/fenrirscreenreader/core/inputManager.py index 18aebe52..f10b86ce 100644 --- a/src/fenrirscreenreader/core/inputManager.py +++ b/src/fenrirscreenreader/core/inputManager.py @@ -136,10 +136,12 @@ class inputManager(): self.env['runtime']['inputDriver'].ungrabAllDevices() except Exception as e: pass - - def updateInputDevices(self): + def handlePlugInputDevice(self, eventData): + self.env['runtime']['inputManager'].updateInputDevices(eventData) + + def updateInputDevices(self, newDevice = None): try: - self.env['runtime']['inputDriver'].updateInputDevices() + self.env['runtime']['inputDriver'].updateInputDevices(newDevice) except: pass self.handleDeviceGrab(True)