Package com.simsilica.lemur.event
Class ModifiedKeyInputEvent
java.lang.Object
com.jme3.input.event.InputEvent
com.jme3.input.event.KeyInputEvent
com.simsilica.lemur.event.ModifiedKeyInputEvent
Extends the regular JME KeyInputEvent to support modifiers
like shift, control, and alt.
-
Field Summary
Fields inherited from class com.jme3.input.event.InputEvent
consumed, time
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
hasModifiers
(int mask) void
Call to mark this input event as consumed, meaning it is no longer valid and should not be forwarded to input listeners.Converts the values in this KeyInputEvent into a KeyAction.Methods inherited from class com.jme3.input.event.KeyInputEvent
getKeyChar, getKeyCode, isPressed, isReleased, isRepeating, toString
Methods inherited from class com.jme3.input.event.InputEvent
getTime, isConsumed, setTime
-
Constructor Details
-
ModifiedKeyInputEvent
-
-
Method Details
-
getModifiers
public int getModifiers() -
hasModifiers
public boolean hasModifiers(int mask) -
toKeyAction
Converts the values in this KeyInputEvent into a KeyAction. -
setConsumed
public void setConsumed()Description copied from class:InputEvent
Call to mark this input event as consumed, meaning it is no longer valid and should not be forwarded to input listeners.- Overrides:
setConsumed
in classInputEvent
-