cleanup
This commit is contained in:
parent
12fe84927f
commit
7cbc9ccf12
@ -11,6 +11,7 @@ class inputDriver():
|
|||||||
self._initialized = False
|
self._initialized = False
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
|
self.env['runtime']['inputManager'].setShortcutType('KEY')
|
||||||
self._isInitialized = True
|
self._isInitialized = True
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
if self._initialized:
|
if self._initialized:
|
||||||
|
@ -14,6 +14,7 @@ class driver(inputDriver):
|
|||||||
|
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
|
self.env['runtime']['inputManager'].setShortcutType('KEY')
|
||||||
self._initialized = True
|
self._initialized = True
|
||||||
print('Input Debug Driver: Initialized')
|
print('Input Debug Driver: Initialized')
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ class driver(inputDriver):
|
|||||||
self.watchDog = Value(c_bool, True)
|
self.watchDog = Value(c_bool, True)
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
|
self.env['runtime']['inputManager'].setShortcutType('KEY')
|
||||||
global _evdevAvailable
|
global _evdevAvailable
|
||||||
global _udevAvailable
|
global _udevAvailable
|
||||||
self._initialized = _evdevAvailable
|
self._initialized = _evdevAvailable
|
||||||
|
Loading…
Reference in New Issue
Block a user