mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:08:51 +02:00
improve mouseHMD exit logic
This commit is contained in:
parent
ba50fcc509
commit
3139f5ef2a
1 changed files with 3 additions and 2 deletions
|
@ -114,8 +114,9 @@
|
||||||
|
|
||||||
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;
|
||||||
if (!HMD.active) {
|
if (this.mouseActivity.expired(now) || this.triggersPressed(controllerData, now) || !hmdActive) {
|
||||||
|
if (!hmdActive) {
|
||||||
Reticle.visible = true;
|
Reticle.visible = true;
|
||||||
} else {
|
} else {
|
||||||
Reticle.visible = false;
|
Reticle.visible = false;
|
||||||
|
|
Loading…
Reference in a new issue