fix api
This commit is contained in:
1 parent
861b0413db
commit
e833640bb9
1 file changed
+3
-3
@@ -274,10 +274,10 @@ class driver(inputDriver):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: init Uinput not possible: ' + str(e),debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: init Uinput not possible: ' + str(e),debug.debugLevel.ERROR)
|
||||||
return
|
return
|
||||||
def addDevice(self, newDevice, fd):
|
def addDevice(self, newDevice):
|
||||||
self.iDevices[newDevice.fd] = newDevice
|
self.iDevices[newDevice.fd] = newDevice
|
||||||
self.createUInputDev(fd)
|
self.createUInputDev(newDevice.fd)
|
||||||
self.grabDevice(fd)
|
self.grabDevice(newDevice.fd)
|
||||||
def grabDevice(self, fd):
|
def grabDevice(self, fd):
|
||||||
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in new issue
Block a user