v0.8.0: refactored GameAction classes to more closely resemble enums
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user