From e85032012f1d5ded1b6a49a88d345cc60a6ac88b Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 9 May 2016 22:52:56 +0200 Subject: Properly handle keyboard events --- src/ch/epfl/xblast/client/KeyboardEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ch/epfl') 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 { * @param e event (pressed key) */ @Override - public void keyTyped(KeyEvent e) { + public void keyPressed(KeyEvent e) { PlayerAction act = this.playerActionMap.get(e.getKeyCode()); if (Objects.nonNull(act)) -- cgit v1.2.3