fix debugDriver

This commit is contained in:
chrys 2018-05-14 20:09:08 +02:00
parent 79cc8ef13d
commit 861b0413db

View File

@ -20,7 +20,7 @@ class driver(inputDriver):
def shutdown(self): def shutdown(self):
if self._initialized: if self._initialized:
self.releaseDevices() self.removeAllDevices()
self._initialized = False self._initialized = False
print('Input Debug Driver: Shutdown') print('Input Debug Driver: Shutdown')
@ -51,17 +51,22 @@ class driver(inputDriver):
if not self._initialized: if not self._initialized:
return return
print('Input Debug Driver: toggleLedState') print('Input Debug Driver: toggleLedState')
def grabDevices(self): def grabAllDevices(self):
if not self._initialized: if not self._initialized:
return return
print('Input Debug Driver: grabDevices') print('Input Debug Driver: grabAllDevices')
def releaseDevices(self): def ungrabAllDevices(self):
if not self._initialized: if not self._initialized:
return return
print('Input Debug Driver: releaseDevices') print('Input Debug Driver: ungrabAllDevices')
def removeAllDevices(self):
if not self._initialized:
return
print('Input Debug Driver: removeAllDevices')
def __del__(self): def __del__(self):
if self._initialized: if self._initialized:
self.releaseDevices() self.removeAllDevices()
print('Input Debug Driver: __del__') print('Input Debug Driver: __del__')