diff --git a/src/fenrir/inputDriver/evdev.py b/src/fenrir/inputDriver/evdev.py index f878a65e..134c7703 100644 --- a/src/fenrir/inputDriver/evdev.py +++ b/src/fenrir/inputDriver/evdev.py @@ -117,6 +117,21 @@ class driver(): return False def grabDevices(self): +# leve the old code until the new one is better tested +# for fd in self.iDevices: +# dev = self.iDevices[fd] +# cap = dev.capabilities() +# del cap[0] +# self.uDevices[fd] = UInput( +# cap, +# dev.name, +# #dev.info.vendor, +# #dev.info.product, +# #dev.version, +# #dev.info.bustype, +# #'/dev/uinput' +# ) +# dev.grab() for fd in self.iDevices: self.uDevices[fd] = UInput.from_device(self.iDevices[fd].fn) self.iDevices[fd].grab()