Update evdevDriver.py
This commit is contained in:
parent
abf92cda6b
commit
37a7e22154
@ -52,14 +52,13 @@ class driver(inputDriver):
|
|||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
global _evdevAvailableError
|
global _evdevAvailableError
|
||||||
global _udevAvailableError
|
global _udevAvailableError
|
||||||
currError = ' '
|
|
||||||
if not _evdevAvailable:
|
|
||||||
currError += _evdevAvailableError
|
|
||||||
if not _udevAvailable:
|
if not _udevAvailable:
|
||||||
currError += ' ' + _udevAvailableError
|
self.env['runtime']['debug'].writeDebugOut('InputDriver:' + _udevAvailableError, debug.debugLevel.ERROR)
|
||||||
self.env['runtime']['debug'].writeDebugOut('InputDriver:' + currError, debug.debugLevel.ERROR)
|
if not _evdevAvailable:
|
||||||
|
self.env['runtime']['debug'].writeDebugOut('InputDriver:' + _evdevAvailableError, debug.debugLevel.ERROR)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if _udevAvailable:
|
||||||
self.env['runtime']['processManager'].addCustomEventThread(self.plugInputDeviceWatchdogUdev)
|
self.env['runtime']['processManager'].addCustomEventThread(self.plugInputDeviceWatchdogUdev)
|
||||||
self.env['runtime']['processManager'].addCustomEventThread(self.inputWatchdog)
|
self.env['runtime']['processManager'].addCustomEventThread(self.inputWatchdog)
|
||||||
def plugInputDeviceWatchdogUdev(self,active , eventQueue):
|
def plugInputDeviceWatchdogUdev(self,active , eventQueue):
|
||||||
|
Loading…
Reference in New Issue
Block a user