aboutsummaryrefslogtreecommitdiff
path: root/src/ch/epfl
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2016-05-09 22:52:56 +0200
committerPacien TRAN-GIRARD2016-05-09 22:52:56 +0200
commite85032012f1d5ded1b6a49a88d345cc60a6ac88b (patch)
tree3e8122814fd0c4e9094a16c2e3bf53b8ce7d728b /src/ch/epfl
parentd9854415ffb5affb5021146a61bf76ebec0769e2 (diff)
downloadxblast-e85032012f1d5ded1b6a49a88d345cc60a6ac88b.tar.gz
Properly handle keyboard events
Diffstat (limited to 'src/ch/epfl')
-rw-r--r--src/ch/epfl/xblast/client/KeyboardEventHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/xblast/client/KeyboardEventHandler.java b/src/ch/epfl/xblast/client/KeyboardEventHandler.java
index a0d3848..2060959 100644
--- a/src/ch/epfl/xblast/client/KeyboardEventHandler.java
+++ b/src/ch/epfl/xblast/client/KeyboardEventHandler.java
@@ -37,7 +37,7 @@ public class KeyboardEventHandler extends KeyAdapter {
37 * @param e event (pressed key) 37 * @param e event (pressed key)
38 */ 38 */
39 @Override 39 @Override
40 public void keyTyped(KeyEvent e) { 40 public void keyPressed(KeyEvent e) {
41 PlayerAction act = this.playerActionMap.get(e.getKeyCode()); 41 PlayerAction act = this.playerActionMap.get(e.getKeyCode());
42 42
43 if (Objects.nonNull(act)) 43 if (Objects.nonNull(act))