KeyHandler is properly nested now
This commit is contained in:
parent
3b5ef952bc
commit
76057a4712
@ -5,7 +5,7 @@ import java.awt.event.KeyAdapter;
|
|||||||
import java.awt.event.KeyEvent;
|
import java.awt.event.KeyEvent;
|
||||||
|
|
||||||
public class Control {
|
public class Control {
|
||||||
public class KeyHandler extends KeyAdapter{
|
public static class KeyHandler extends KeyAdapter{
|
||||||
@Override
|
@Override
|
||||||
public void keyTyped(KeyEvent e) {
|
public void keyTyped(KeyEvent e) {
|
||||||
char c = e.getKeyChar();
|
char c = e.getKeyChar();
|
||||||
@ -67,7 +67,6 @@ public class Control {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Game.instance.updateDisplay();
|
Game.instance.updateDisplay();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user