This commit is contained in:
chrys
2018-03-26 08:55:26 +02:00
parent 9e27ec9295
commit 22189b3ac8
7 changed files with 25 additions and 11 deletions

View File

@@ -13,6 +13,13 @@ fenrirPath = os.path.dirname(currentdir)
class inputManager():
def __init__(self):
self.setLedState = True
self.shortcutType = 'KEY'
def setShortcutType(self, shortcutType = 'KEY'):
if shortcutType in ['KEY', 'BYTE']:
self.shortcutType = shortcutType
def getShortcutType(self):
return self.shortcutType
def initialize(self, environment):
self.env = environment
self.env['runtime']['settingsManager'].loadDriver(\