leve the old code until the new one is better tested
This commit is contained in:
parent
c80e93abab
commit
1e1510dd54
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user