diff --git a/scripts/system/controllers/mouseLook.js b/scripts/system/controllers/mouseLook.js index 7b867bb336..6d1b2d4367 100644 --- a/scripts/system/controllers/mouseLook.js +++ b/scripts/system/controllers/mouseLook.js @@ -191,6 +191,12 @@ by rampa3 (https://github.com/rampa3) and vegaslon (https://github.com/vegaslon) } } + Messages.messageReceived.connect(onMessageReceived); + function onMessageReceived(channel, message, sender, localOnly) { + if (channel === "Hifi-Away-Enable") + if (message === 'enable') mouseLookOn(); + } + Script.scriptEnding.connect(onScriptEnding); function onScriptEnding() {