mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 05:30:41 +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
|
||||
showOverlay();
|
||||
}
|
||||
function goActive(event) {
|
||||
function switchActiveState(event) {
|
||||
if (!isAway || event.isAutoRepeat) {
|
||||
if (event.text === '.') {
|
||||
goAway(event);
|
||||
|
@ -109,8 +109,8 @@ function goActive(event) {
|
|||
hideOverlay();
|
||||
}
|
||||
}
|
||||
Controller.keyPressEvent.connect(goActive);
|
||||
Script.scriptEnding.connect(goActive);
|
||||
Controller.keyPressEvent.connect(switchActiveState);
|
||||
Script.scriptEnding.connect(switchActiveState);
|
||||
if (HMD.active) {
|
||||
goAway({}); // give a dummy event object
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue