add WASD controls (closes #10)

This commit is contained in:
Gabriele Cirulli
2014-03-11 16:31:39 +01:00
parent 92fda72cf5
commit 5c6327f390
+5 -1
View File
@@ -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) {