Added missing mouse look enabled check

This commit is contained in:
rampa3 2023-08-29 15:57:47 +02:00
parent 831ef9a3bb
commit 8ed70d5d84

View file

@ -154,17 +154,19 @@ by rampa3 (https://github.com/rampa3) and vegaslon (https://github.com/vegaslon)
function onUiFocusChanged(keyFocus) { function onUiFocusChanged(keyFocus) {
if (!hmd) { if (!hmd) {
if (keyFocus) { if (mouseLookEnabled) {
keysOnOverlay = true; if (keyFocus) {
if (Camera.captureMouse) { keysOnOverlay = true;
Camera.captureMouse = false; if (Camera.captureMouse) {
} mouseLookOff();
} else { }
keysOnOverlay = false; } else {
if (!tablet.tabletShown) { keysOnOverlay = false;
if (!tempOff) { if (!tablet.tabletShown) {
if (!away) { if (!tempOff) {
mouseLookOn(); if (!away) {
mouseLookOn();
}
} }
} }
} }