mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:36:45 +02:00
Replace tabs with spaces
This commit is contained in:
parent
90e979bda7
commit
b730c457ca
1 changed files with 6 additions and 6 deletions
|
@ -285,10 +285,10 @@ function maybeGoAway() {
|
||||||
if (Reticle.mouseCaptured !== wasMouseCaptured) {
|
if (Reticle.mouseCaptured !== wasMouseCaptured) {
|
||||||
wasMouseCaptured = !wasMouseCaptured;
|
wasMouseCaptured = !wasMouseCaptured;
|
||||||
if (!wasMouseCaptured) {
|
if (!wasMouseCaptured) {
|
||||||
if (enterAwayStateWhenFocusLostInVR) {
|
if (enterAwayStateWhenFocusLostInVR) {
|
||||||
goAway();
|
goAway();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -354,13 +354,13 @@ eventMapping.from(Controller.Standard.Start).peek().to(goActive);
|
||||||
Controller.enableMapping(eventMappingName);
|
Controller.enableMapping(eventMappingName);
|
||||||
|
|
||||||
function awayStateWhenFocusLostInVRChanged(enabled) {
|
function awayStateWhenFocusLostInVRChanged(enabled) {
|
||||||
enterAwayStateWhenFocusLostInVR = enabled;
|
enterAwayStateWhenFocusLostInVR = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
Script.scriptEnding.connect(function () {
|
Script.scriptEnding.connect(function () {
|
||||||
Script.clearInterval(maybeIntervalTimer);
|
Script.clearInterval(maybeIntervalTimer);
|
||||||
goActive();
|
goActive();
|
||||||
HMD.awayStateWhenFocusLostInVRChanged.disconnect(awayStateWhenFocusLostInVRChanged);
|
HMD.awayStateWhenFocusLostInVRChanged.disconnect(awayStateWhenFocusLostInVRChanged);
|
||||||
Controller.disableMapping(eventMappingName);
|
Controller.disableMapping(eventMappingName);
|
||||||
Controller.mousePressEvent.disconnect(goActive);
|
Controller.mousePressEvent.disconnect(goActive);
|
||||||
Controller.keyPressEvent.disconnect(maybeGoActive);
|
Controller.keyPressEvent.disconnect(maybeGoActive);
|
||||||
|
|
Loading…
Reference in a new issue