fix mouse dissapearing in desktop mode

This commit is contained in:
druiz17 2017-10-05 15:07:49 -07:00
parent a3bafa3c44
commit ba50fcc509

View file

@ -115,7 +115,12 @@
this.run = function(controllerData, deltaTime) {
var now = Date.now();
if (this.mouseActivity.expired(now) || this.triggersPressed(controllerData, now)) {
Reticle.visible = false;
if (!HMD.active) {
Reticle.visible = true;
} else {
Reticle.visible = false;
}
return ControllerDispatcherUtils.makeRunningValues(false, [], []);
}
this.adjustReticleDepth(controllerData);