Update fenrirManager.py

This commit is contained in:
chrys87 2018-05-18 11:16:41 +02:00 committed by GitHub
parent b6853c7cda
commit 0a77f2a54d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,10 +166,7 @@ class fenrirManager():
#print('handleScreenUpdate:',time.time() - startTime) #print('handleScreenUpdate:',time.time() - startTime)
def handlePlugInputDevice(self, event): def handlePlugInputDevice(self, event):
if event['Data']: self.env['runtime']['inputManager'].handlePlugInputDevice(event['Data'])
self.env['runtime']['inputManager'].updateInputDevices(event['Data'])
else:
self.env['runtime']['inputManager'].updateInputDevices()
self.environment['runtime']['commandManager'].executeDefaultTrigger('onPlugInputDevice', force=True) self.environment['runtime']['commandManager'].executeDefaultTrigger('onPlugInputDevice', force=True)
def handleHeartBeat(self, event): def handleHeartBeat(self, event):