mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 20:22:27 +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
|
||||
|
||||
|
||||
function keyPressEvent(event) {
|
||||
// if our tools are off, then don't do anything
|
||||
Controller.keyPressEvent.connect(function (event) {
|
||||
if (event.text == "1") {
|
||||
Window.location = "hifi://starchamber";
|
||||
} else if (event.text == "2") {
|
||||
|
@ -25,5 +24,4 @@ function keyPressEvent(event) {
|
|||
} else if (event.text == "6") {
|
||||
Window.location = "hifi://hoo";
|
||||
}
|
||||
}
|
||||
Controller.keyPressEvent.connect(keyPressEvent);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue