replace own implementation of from_device by new mainstream function

This commit is contained in:
chrys 2016-10-12 22:56:02 +02:00
parent 7d457e6d54
commit f785b3e6db

View File

@ -118,19 +118,8 @@ class driver():
def grabDevices(self):
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()
self.uDevices[fd] = UInput.from_device(self.iDevices[fd].fn)
self.iDevices[fd].grab()
def releaseDevices(self):
for fd in self.iDevices: