mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
change name
This commit is contained in:
parent
3fdd7ca470
commit
4fd2027fb4
1 changed files with 3 additions and 3 deletions
|
@ -93,7 +93,7 @@ function goAway(event) {
|
||||||
playAwayAnimation(); // animation is still seen by others
|
playAwayAnimation(); // animation is still seen by others
|
||||||
showOverlay();
|
showOverlay();
|
||||||
}
|
}
|
||||||
function goActive(event) {
|
function switchActiveState(event) {
|
||||||
if (!isAway || event.isAutoRepeat) {
|
if (!isAway || event.isAutoRepeat) {
|
||||||
if (event.text === '.') {
|
if (event.text === '.') {
|
||||||
goAway(event);
|
goAway(event);
|
||||||
|
@ -109,8 +109,8 @@ function goActive(event) {
|
||||||
hideOverlay();
|
hideOverlay();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Controller.keyPressEvent.connect(goActive);
|
Controller.keyPressEvent.connect(switchActiveState);
|
||||||
Script.scriptEnding.connect(goActive);
|
Script.scriptEnding.connect(switchActiveState);
|
||||||
if (HMD.active) {
|
if (HMD.active) {
|
||||||
goAway({}); // give a dummy event object
|
goAway({}); // give a dummy event object
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue