mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
*** empty log message ***
This commit is contained in:
parent
0e799f0972
commit
df7a48b3ea
2 changed files with 124 additions and 35 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue