v0.8.0: refactored GameAction classes to more closely resemble enums

This commit is contained in:
Evan Debenham
2019-12-16 22:39:39 -05:00
parent 6dc0235aa6
commit 93320fb676
17 changed files with 186 additions and 204 deletions

View File

@@ -86,7 +86,7 @@ public class InputHandler extends InputAdapter {
@Override
public synchronized boolean keyDown( int keyCode ) {
if (KeyBindings.isBound( keyCode )) {
if (KeyBindings.isKeyBound( keyCode )) {
KeyEvent.addKeyEvent( new KeyEvent( keyCode, true ) );
return true;
} else {
@@ -96,7 +96,7 @@ public class InputHandler extends InputAdapter {
@Override
public synchronized boolean keyUp( int keyCode ) {
if (KeyBindings.isBound( keyCode )) {
if (KeyBindings.isKeyBound( keyCode )) {
KeyEvent.addKeyEvent( new KeyEvent( keyCode, false ) );
return true;
} else {