mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:37:51 +02:00
fix mouse dissapearing in desktop mode
This commit is contained in:
parent
a3bafa3c44
commit
ba50fcc509
1 changed files with 6 additions and 1 deletions
|
@ -115,7 +115,12 @@
|
||||||
this.run = function(controllerData, deltaTime) {
|
this.run = function(controllerData, deltaTime) {
|
||||||
var now = Date.now();
|
var now = Date.now();
|
||||||
if (this.mouseActivity.expired(now) || this.triggersPressed(controllerData, 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, [], []);
|
return ControllerDispatcherUtils.makeRunningValues(false, [], []);
|
||||||
}
|
}
|
||||||
this.adjustReticleDepth(controllerData);
|
this.adjustReticleDepth(controllerData);
|
||||||
|
|
Loading…
Reference in a new issue