mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 02:53:43 +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) {
|
||||
var now = Date.now();
|
||||
if (this.mouseActivity.expired(now) || this.triggersPressed(controllerData, now)) {
|
||||
Reticle.visible = false;
|
||||
var hmdActive = HMD.active;
|
||||
if (this.mouseActivity.expired(now) || this.triggersPressed(controllerData, now) || !hmdActive) {
|
||||
if (!hmdActive) {
|
||||
Reticle.visible = true;
|
||||
} else {
|
||||
Reticle.visible = false;
|
||||
}
|
||||
|
||||
return ControllerDispatcherUtils.makeRunningValues(false, [], []);
|
||||
}
|
||||
this.adjustReticleDepth(controllerData);
|
||||
|
|
Loading…
Reference in a new issue