Update inputDriver.py

This commit is contained in:
chrys87 2018-05-14 14:57:38 +02:00 committed by GitHub
parent 4cde0159f9
commit 0f83708ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,13 +41,16 @@ class inputDriver():
def toggleLedState(self, led = 0):
if not self._initialized:
return None
def grabDevices(self):
def grabAllDevices(self):
if not self._initialized:
return None
def releaseDevices(self):
def ungrabAllDevices(self):
if not self._initialized:
return None
def removeAllDevices(self):
if not self._initialized:
return None
def __del__(self):
if not self._initialized:
return None
self.releaseDevices()
self.removeAllDevices()