From e833640bb9cb642e9dbe69933e4674167ef1e411 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 14 May 2018 20:20:28 +0200 Subject: [PATCH] fix api --- src/fenrirscreenreader/inputDriver/evdevDriver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/inputDriver/evdevDriver.py b/src/fenrirscreenreader/inputDriver/evdevDriver.py index 12df5457..85e12c9a 100644 --- a/src/fenrirscreenreader/inputDriver/evdevDriver.py +++ b/src/fenrirscreenreader/inputDriver/evdevDriver.py @@ -274,10 +274,10 @@ class driver(inputDriver): except Exception as e: self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: init Uinput not possible: ' + str(e),debug.debugLevel.ERROR) return - def addDevice(self, newDevice, fd): + def addDevice(self, newDevice): self.iDevices[newDevice.fd] = newDevice - self.createUInputDev(fd) - self.grabDevice(fd) + self.createUInputDev(newDevice.fd) + self.grabDevice(newDevice.fd) def grabDevice(self, fd): if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'): return