change name

This commit is contained in:
Howard Stearns 2015-11-04 11:42:21 -08:00
parent 3fdd7ca470
commit 4fd2027fb4

View file

@ -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
} }