From 14b644a009f0c0a0207bd2851e5231e963e4a16e Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 27 Feb 2017 22:07:30 +0100 Subject: [PATCH] remove unneded detection --- src/fenrir/inputDriver/evdevDriver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fenrir/inputDriver/evdevDriver.py b/src/fenrir/inputDriver/evdevDriver.py index a1a1a508..27fafbea 100644 --- a/src/fenrir/inputDriver/evdevDriver.py +++ b/src/fenrir/inputDriver/evdevDriver.py @@ -104,7 +104,6 @@ class driver(): if not force: if len(deviceFileList) == self.iDeviceNo: return - self.iDeviceNo = len(deviceFileList) mode = self.env['runtime']['settingsManager'].getSetting('keyboard', 'device').upper() iDevicesFiles = [] for device in self.iDevices: @@ -133,6 +132,7 @@ class driver(): self.iDevices[currDevice.fd] = currDevice self.grabDevice(currDevice.fd) print('Device added (ALL):' + self.iDevices[currDevice.fd].name) + print(currDevice.capabilities(verbose=True)) elif mode == 'NOMICE': if not ((2 in cap) or (3 in cap)): self.iDevices[currDevice.fd] = currDevice @@ -144,6 +144,7 @@ class driver(): print('Device added (Name):' + self.iDevices[currDevice.fd].name) except Exception as e: print("Skip Inputdevice : " + deviceFile +' ' + str(e)) + self.iDeviceNo = len(evdev.list_devices()) def mapEvent(self, event): if not self._initialized: