mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-06 08:49:56 +01:00
new test, based on MouseTest
This commit is contained in:
parent
647e1b2b29
commit
900fc0e8fe
|
|
@ -384,7 +384,11 @@ public class Keyboard {
|
|||
*/
|
||||
public static boolean isKeyDown(int key) {
|
||||
assert created : "The keyboard has not been created.";
|
||||
return keyDownBuffer.get(key) != 0;
|
||||
// if (readBuffer != null) {
|
||||
// return Keyboard.key == key;
|
||||
// } else {
|
||||
return keyDownBuffer.get(key) != 0;
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue