From c82798673fb342cecf0db20a7edf1f599156d4a8 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Thu, 16 Nov 2017 10:42:28 -0800 Subject: [PATCH] change controllerDispatcher to setTimeOut update --- scripts/system/controllers/controllerDispatcher.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/system/controllers/controllerDispatcher.js b/scripts/system/controllers/controllerDispatcher.js index ee3b90d7b5..bab5edf349 100644 --- a/scripts/system/controllers/controllerDispatcher.js +++ b/scripts/system/controllers/controllerDispatcher.js @@ -367,6 +367,8 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js"); if (PROFILE) { Script.endProfileRange("dispatch.run"); } + + Script.setTimeOut(_this.update(), 60); }; this.setBlacklist = function() { @@ -452,7 +454,6 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js"); }; this.cleanup = function () { - Script.update.disconnect(_this.update); Controller.disableMapping(MAPPING_NAME); RayPick.removeRayPick(_this.leftControllerRayPick); RayPick.removeRayPick(_this.rightControllerRayPick); @@ -465,5 +466,5 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js"); Messages.subscribe('Hifi-Hand-RayPick-Blacklist'); Messages.messageReceived.connect(controllerDispatcher.handleHandMessage); Script.scriptEnding.connect(controllerDispatcher.cleanup); - Script.update.connect(controllerDispatcher.update); + Script.setTimeout(controllerDispatcher.update, 60); }());