leve the old code until the new one is better tested

This commit is contained in:
chrys 2016-10-13 00:30:07 +02:00
parent c80e93abab
commit 1e1510dd54

View File

@ -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()