mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
cleaner version
This commit is contained in:
parent
069f1be89d
commit
5d6d9ae0df
1 changed files with 2 additions and 4 deletions
|
@ -10,8 +10,7 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
|
||||||
function keyPressEvent(event) {
|
Controller.keyPressEvent.connect(function (event) {
|
||||||
// if our tools are off, then don't do anything
|
|
||||||
if (event.text == "1") {
|
if (event.text == "1") {
|
||||||
Window.location = "hifi://starchamber";
|
Window.location = "hifi://starchamber";
|
||||||
} else if (event.text == "2") {
|
} else if (event.text == "2") {
|
||||||
|
@ -25,5 +24,4 @@ function keyPressEvent(event) {
|
||||||
} else if (event.text == "6") {
|
} else if (event.text == "6") {
|
||||||
Window.location = "hifi://hoo";
|
Window.location = "hifi://hoo";
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
Controller.keyPressEvent.connect(keyPressEvent);
|
|
||||||
|
|
Loading…
Reference in a new issue