public final class Keyboard extends Object
Window.pollEvents()
method instead.Modifier and Type | Class and Description |
---|---|
static class |
Keyboard.Key
Enumeration of supported keys.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isKeyPressed(Keyboard.Key key)
Checks if a certain key is currently pressed on the keyboard.
|
public static boolean isKeyPressed(Keyboard.Key key)
key
- the key in question.true
if the key is currently being pressed,
false
otherwise.