diff options
author | Carsten Weisse <[email protected]> | 2004-12-16 00:00:01 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2004-12-16 00:00:01 +0000 |
commit | a0f3684e6ee25517ab03f7514458b1849769ace5 (patch) | |
tree | a56e4e8269c43fd0253bf821991dedda444172eb /src | |
parent | a6286626c67b8aaa7d9ce951ec155885e441bcc8 (diff) |
simple
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 |