mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 22:09:06 +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,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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue