Update evdevDriver.py
This commit is contained in:
parent
37a7e22154
commit
528f39768c
@ -48,8 +48,6 @@ class driver(inputDriver):
|
||||
self.env['runtime']['inputManager'].setShortcutType('KEY')
|
||||
global _evdevAvailable
|
||||
global _udevAvailable
|
||||
self._initialized = _evdevAvailable and _udevAvailable
|
||||
if not self._initialized:
|
||||
global _evdevAvailableError
|
||||
global _udevAvailableError
|
||||
if not _udevAvailable:
|
||||
@ -61,6 +59,8 @@ class driver(inputDriver):
|
||||
if _udevAvailable:
|
||||
self.env['runtime']['processManager'].addCustomEventThread(self.plugInputDeviceWatchdogUdev)
|
||||
self.env['runtime']['processManager'].addCustomEventThread(self.inputWatchdog)
|
||||
self._initialized = True
|
||||
|
||||
def plugInputDeviceWatchdogUdev(self,active , eventQueue):
|
||||
context = pyudev.Context()
|
||||
monitor = pyudev.Monitor.from_netlink(context)
|
||||
|
Loading…
Reference in New Issue
Block a user