mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 16:36:55 +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) {
|
||||
var now = Date.now();
|
||||
if (this.mouseActivity.expired(now) || this.triggersPressed(controllerData, now)) {
|
||||
if (!HMD.active) {
|
||||
var hmdActive = HMD.active;
|
||||
if (this.mouseActivity.expired(now) || this.triggersPressed(controllerData, now) || !hmdActive) {
|
||||
if (!hmdActive) {
|
||||
Reticle.visible = true;
|
||||
} else {
|
||||
Reticle.visible = false;
|
||||
|
|
Loading…
Reference in a new issue