public abstract class JavaKeyboard extends Object implements Keyboard
Keyboard.Adapter, Keyboard.Event, Keyboard.Listener, Keyboard.TextType, Keyboard.TypedEvent| Constructor and Description |
|---|
JavaKeyboard() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasHardwareKeyboard() |
Keyboard.Listener |
listener() |
void |
post(Key key,
boolean pressed,
char typedCh)
Posts a key event received from elsewhere (i.e.
|
void |
setListener(Keyboard.Listener listener) |
public void post(Key key, boolean pressed, char typedCh)
Note: the resulting event will be sent with time = 0, since the GL event time is inaccessible and platform dependent.
key - the key that was pressed or released, or null for a char typed eventpressed - whether the key was pressed or released, ignored if key is nulltypedCh - the character that was typed, ignored if key is not nullpublic Keyboard.Listener listener()
public void setListener(Keyboard.Listener listener)
setListener in interface Keyboardpublic boolean hasHardwareKeyboard()
hasHardwareKeyboard in interface KeyboardCopyright © 2015. All Rights Reserved.