Skip to content

Commit

Permalink
add WASD controls (closes gabrielecirulli#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielecirulli committed Mar 11, 2014
1 parent 92fda72 commit 5c6327f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/keyboard_input_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ KeyboardInputManager.prototype.listen = function () {
75: 0, // vim keybindings
76: 1,
74: 2,
72: 3
72: 3,
87: 0, // W
68: 1, // D
83: 2, // S
65: 3 // A
};

document.addEventListener("keydown", function (event) {
Expand Down

0 comments on commit 5c6327f

Please sign in to comment.