This commit is contained in:
Reppard 2022-02-08 13:04:43 -05:00
parent 9cba0ca9b9
commit 5a5b3cc8db

View File

@ -118,30 +118,23 @@ export default {
created() { created() {
window.addEventListener('keyup', (e) => { window.addEventListener('keyup', (e) => {
if (e.key == 'q') { switch(e.key) {
case "q":
this.playOSC(this.spaces[0].tone) this.playOSC(this.spaces[0].tone)
this.checkInput(0) this.checkInput(0)
} break
}) case "w":
window.addEventListener('keyup', (e) => {
if (e.key == 'w') {
this.playOSC(this.spaces[1].tone) this.playOSC(this.spaces[1].tone)
this.checkInput(1) this.checkInput(1)
} break
}) case "a":
window.addEventListener('keyup', (e) => {
if (e.key == 'a') {
this.playOSC(this.spaces[2].tone) this.playOSC(this.spaces[2].tone)
this.checkInput(2) this.checkInput(2)
} break
}) case "s":
window.addEventListener('keyup', (e) => {
if (e.key == 's') {
this.playOSC(this.spaces[3].tone) this.playOSC(this.spaces[3].tone)
this.checkInput(3) this.checkInput(3)
break
} }
}) })
}, },