From 1e1510dd547c04a156eb934b2b10c5a5b923a8b0 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 13 Oct 2016 00:30:07 +0200 Subject: [PATCH] leve the old code until the new one is better tested --- src/fenrir/inputDriver/evdev.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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()