From a6202cf3cbe2834551720c6d31b9887aaeb30d8f Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Wed, 13 Jun 2018 11:31:14 -0700 Subject: [PATCH] fixing invisible cursor --- .../controllers/controllerModules/mouseHMD.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/system/controllers/controllerModules/mouseHMD.js b/scripts/system/controllers/controllerModules/mouseHMD.js index 1d8aeee1f9..101a3502e1 100644 --- a/scripts/system/controllers/controllerModules/mouseHMD.js +++ b/scripts/system/controllers/controllerModules/mouseHMD.js @@ -101,12 +101,15 @@ this.isReady = function(controllerData, deltaTime) { var now = Date.now(); this.triggersPressed(controllerData, now); - if ((HMD.active && !this.mouseActivity.expired(now)) && _this.handControllerActivity.expired()) { - Reticle.visible = true; - return ControllerDispatcherUtils.makeRunningValues(true, [], []); - } if (HMD.active) { - Reticle.visible = false; + if (!this.mouseActivity.expired(now) && _this.handControllerActivity.expired()) { + Reticle.visible = true; + return ControllerDispatcherUtils.makeRunningValues(true, [], []); + } else { + Reticle.visible = false; + } + } else if (!Reticle.visible) { + Reticle.visible = true; } return ControllerDispatcherUtils.makeRunningValues(false, [], []);