mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 08:33:12 +02:00
change controllerDispatcher to setTimeOut update
This commit is contained in:
parent
94ac8e52d5
commit
c82798673f
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}());
|
||||
|
|
Loading…
Reference in a new issue