add filter

This commit is contained in:
chrys 2018-05-25 14:08:41 +02:00
parent 157a0c6d74
commit a7862c8366

View File

@ -65,7 +65,7 @@ class driver(inputDriver):
def plugInputDeviceWatchdogUdev(self,active , eventQueue):
context = pyudev.Context()
monitor = pyudev.Monitor.from_netlink(context)
#monitor.filter_by(subsystem='input')
monitor.filter_by(subsystem='input')
monitor.start()
while active.value:
validDevices = []