public class JavaInput extends Input
keyboardEnabled, keyboardEvents, mouseEnabled, mouseEvents, touchEnabled, touchEvents| Constructor and Description |
|---|
JavaInput(JavaPlatform plat) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasHardwareKeyboard() |
boolean |
hasTouch() |
void |
postKey(long time,
Key key,
boolean pressed,
char typedCh)
Posts a key event received from elsewhere (i.e.
|
getText, hasMouse, hasMouseLock, isMouseLocked, setMouseLockedpublic JavaInput(JavaPlatform plat)
public void postKey(long time,
Key key,
boolean pressed,
char typedCh)
time - the time (in millis since epoch) at which the event was generated, or 0 if N/A.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 boolean hasHardwareKeyboard()
hasHardwareKeyboard in class InputCopyright © 2015. All Rights Reserved.