提交 5c6327f3 编写于 作者: G Gabriele Cirulli

add WASD controls (closes #10)

上级 92fda72c
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册