mirror of
https://github.com/overte-org/overte.git
synced 2025-07-10 18:38:57 +02:00
Added missing mouse look enabled check
This commit is contained in:
parent
831ef9a3bb
commit
8ed70d5d84
1 changed files with 13 additions and 11 deletions
|
@ -154,10 +154,11 @@ by rampa3 (https://github.com/rampa3) and vegaslon (https://github.com/vegaslon)
|
||||||
|
|
||||||
function onUiFocusChanged(keyFocus) {
|
function onUiFocusChanged(keyFocus) {
|
||||||
if (!hmd) {
|
if (!hmd) {
|
||||||
|
if (mouseLookEnabled) {
|
||||||
if (keyFocus) {
|
if (keyFocus) {
|
||||||
keysOnOverlay = true;
|
keysOnOverlay = true;
|
||||||
if (Camera.captureMouse) {
|
if (Camera.captureMouse) {
|
||||||
Camera.captureMouse = false;
|
mouseLookOff();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
keysOnOverlay = false;
|
keysOnOverlay = false;
|
||||||
|
@ -171,6 +172,7 @@ by rampa3 (https://github.com/rampa3) and vegaslon (https://github.com/vegaslon)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Script.scriptEnding.connect(onScriptEnding);
|
Script.scriptEnding.connect(onScriptEnding);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue