diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/sys/LWJGLKBD.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/jake2/sys/LWJGLKBD.java b/src/jake2/sys/LWJGLKBD.java index 122d7e7..f6864e2 100644 --- a/src/jake2/sys/LWJGLKBD.java +++ b/src/jake2/sys/LWJGLKBD.java @@ -57,14 +57,12 @@ public class LWJGLKBD extends KBD { { Cbuf.ExecuteText(Defines.EXEC_APPEND, "quit"); } - int key; - char ch; - boolean down; + while (Keyboard.next()) { - key = Keyboard.getEventKey(); - ch = Keyboard.getEventCharacter(); - down = Keyboard.getEventKeyState(); + int key = Keyboard.getEventKey(); + char ch = Keyboard.getEventCharacter(); + boolean down = Keyboard.getEventKeyState(); // fill the character translation table // this is needed because the getEventCharacter() returns \0 if a key is released |