Package limn.scene.event
Class KeyEvent
java.lang.Object
limn.scene.event.InputEvent
limn.scene.event.KeyEvent
A keyboard event routed to the focused widget (bubbling to its ancestors
until consumed). Key codes and modifiers follow
Keys.-
Constructor Summary
ConstructorsConstructorDescriptionKeyEvent(int key, boolean pressed, boolean repeat, int modifiers) A key transition;keyandmodifiersareKeysconstants. -
Method Summary
Methods inherited from class limn.scene.event.InputEvent
consume, isConsumed
-
Constructor Details
-
KeyEvent
public KeyEvent(int key, boolean pressed, boolean repeat, int modifiers) A key transition;keyandmodifiersareKeysconstants.
-
-
Method Details
-
key
public int key()The physical key, as aKeysconstant, which is layout-independent. -
isPressed
public boolean isPressed()Whether this is a press (or auto-repeat) rather than a release. -
isRepeat
public boolean isRepeat()- Returns:
truefor auto-repeat presses
-
modifiers
public int modifiers()Modifier mask held during the event; test it with theKeys.MOD_*bits. -
toString
-