*** empty log message ***

This commit is contained in:
Elias Naur 2003-10-07 11:23:12 +00:00
parent 0e799f0972
commit df7a48b3ea
2 changed files with 124 additions and 35 deletions

View file

@ -130,11 +130,13 @@ public class KeyboardTest {
}
//check keys, buffered
Keyboard.poll();
Keyboard.read();
int count = Keyboard.getNumKeyboardEvents();
while(Keyboard.next()) {
System.out.println("Checking key:" + Keyboard.getKeyName(Keyboard.key));
System.out.println("Key character: " + Keyboard.character);
if(Keyboard.key == Keyboard.KEY_ESCAPE) {
return;
}
@ -143,10 +145,6 @@ public class KeyboardTest {
position.x += 1;
}
if (Keyboard.key == Keyboard.KEY_RIGHT) {
position.x += 1;
}
if (Keyboard.isKeyDown(Keyboard.KEY_LEFT)) {
position.x -= 1;
}