mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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) {
|
||||
if (!hmd) {
|
||||
if (keyFocus) {
|
||||
keysOnOverlay = true;
|
||||
if (Camera.captureMouse) {
|
||||
Camera.captureMouse = false;
|
||||
}
|
||||
} else {
|
||||
keysOnOverlay = false;
|
||||
if (!tablet.tabletShown) {
|
||||
if (!tempOff) {
|
||||
if (!away) {
|
||||
mouseLookOn();
|
||||
if (mouseLookEnabled) {
|
||||
if (keyFocus) {
|
||||
keysOnOverlay = true;
|
||||
if (Camera.captureMouse) {
|
||||
mouseLookOff();
|
||||
}
|
||||
} else {
|
||||
keysOnOverlay = false;
|
||||
if (!tablet.tabletShown) {
|
||||
if (!tempOff) {
|
||||
if (!away) {
|
||||
mouseLookOn();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue