Skip to content

Commit

Permalink
Update spela.php
Browse files Browse the repository at this point in the history
Lade till wasd keys för styrning.
  • Loading branch information
jlivingstonsg authored Jan 26, 2020
1 parent acaa4bd commit 825555f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spela.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ function body_key(e) {
case 32: send_cmd('go_fwd'); e.preventDefault(); return false;
case 38: send_cmd('go_fwd'); e.preventDefault(); return false;
case 40: send_cmd('go_back'); e.preventDefault(); return false;
case 87: send_cmd('go_fwd'); e.preventDefault(); return false;
case 83: send_cmd('go_back'); e.preventDefault(); return false;
case 68: send_cmd('go_right'); e.preventDefault(); return false;
case 65: send_cmd('go_left'); e.preventDefault(); return false;
default: break;

}
Expand Down

0 comments on commit 825555f

Please sign in to comment.