Package playn.java
Class JavaInput
java.lang.Object
playn.core.Input
playn.java.JavaInput
-
Field Summary
Fields inherited from class playn.core.Input
focus, keyboardEnabled, keyboardEvents, mouseEnabled, mouseEvents, touchEnabled, touchEvents -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class playn.core.Input
getText, getText, hasMouseLock, isMouseLocked, setMouseLocked, sysDialog
-
Constructor Details
-
JavaInput
-
-
Method Details
-
postKey
Posts a key event received from elsewhere (i.e. a native UI component). This is useful for applications that are using GL in Canvas mode and sharing keyboard focus with other (non-GL) components. The event will be queued and dispatched on the next frame, after GL keyboard events.- Parameters:
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 nullmodFlags- modifier key state flags (generated byInput.modifierFlags(boolean, boolean, boolean, boolean))
-
hasMouse
public boolean hasMouse() -
hasHardwareKeyboard
public boolean hasHardwareKeyboard()- Overrides:
hasHardwareKeyboardin classInput
-
hasTouch
public boolean hasTouch()
-