add filter
This commit is contained in:
parent
157a0c6d74
commit
a7862c8366
@ -65,7 +65,7 @@ class driver(inputDriver):
|
|||||||
def plugInputDeviceWatchdogUdev(self,active , eventQueue):
|
def plugInputDeviceWatchdogUdev(self,active , eventQueue):
|
||||||
context = pyudev.Context()
|
context = pyudev.Context()
|
||||||
monitor = pyudev.Monitor.from_netlink(context)
|
monitor = pyudev.Monitor.from_netlink(context)
|
||||||
#monitor.filter_by(subsystem='input')
|
monitor.filter_by(subsystem='input')
|
||||||
monitor.start()
|
monitor.start()
|
||||||
while active.value:
|
while active.value:
|
||||||
validDevices = []
|
validDevices = []
|
||||||
|
Loading…
Reference in New Issue
Block a user