Update fenrirManager.py

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

View File

@ -166,7 +166,10 @@ class fenrirManager():
#print('handleScreenUpdate:',time.time() - startTime) #print('handleScreenUpdate:',time.time() - startTime)
def handlePlugInputDevice(self, event): def handlePlugInputDevice(self, event):
self.env['runtime']['inputManager'].updateInputDevices(event) if 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):