fix direction right

This commit is contained in:
HorizonCode 2022-08-11 16:28:50 +02:00
parent 475ad8955d
commit 73b4046a07
1 changed files with 2 additions and 1 deletions

3
app.js
View File

@ -52,7 +52,8 @@ async function run() {
if (button) {
if (keyCooldown > 0)
return;
if (KEYMAP[button]) {
if (KEYMAP[button] !== undefined) {
console.log()
currentKey = button;
keyCooldown = 10;
}