mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 20:58:38 +02:00
Merge pull request #11535 from druiz17/mouse-disapears
Fix mouse disappearing when switching to desktop mode from HMD
This commit is contained in:
commit
76d5d13914
1 changed files with 8 additions and 2 deletions
|
@ -114,8 +114,14 @@
|
||||||
|
|
||||||
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)) {
|
var hmdActive = HMD.active;
|
||||||
Reticle.visible = false;
|
if (this.mouseActivity.expired(now) || this.triggersPressed(controllerData, now) || !hmdActive) {
|
||||||
|
if (!hmdActive) {
|
||||||
|
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