Package com.jme3.input.event
Class InputEvent
java.lang.Object
com.jme3.input.event.InputEvent
- Direct Known Subclasses:
- JoyAxisEvent,- JoyButtonEvent,- KeyInputEvent,- MouseButtonEvent,- MouseMotionEvent,- TouchEvent
An abstract input event.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlonggetTime()The time when the event occurred.booleanReturns true if the input event has been consumed, meaning it is no longer valid and should not be forwarded to input listeners.voidCall to mark this input event as consumed, meaning it is no longer valid and should not be forwarded to input listeners.voidsetTime(long time) Set the time when the event occurred.
- 
Field Details- 
timeprotected long time
- 
consumedprotected boolean consumed
 
- 
- 
Constructor Details- 
InputEventpublic InputEvent()
 
- 
- 
Method Details- 
getTimepublic long getTime()The time when the event occurred. This is relative toInput.getInputTimeNanos().- Returns:
- time when the event occurred
 
- 
setTimepublic void setTime(long time) Set the time when the event occurred.- Parameters:
- time- time when the event occurred.
 
- 
isConsumedpublic boolean isConsumed()Returns true if the input event has been consumed, meaning it is no longer valid and should not be forwarded to input listeners.- Returns:
- true if the input event has been consumed
 
- 
setConsumedpublic void setConsumed()Call to mark this input event as consumed, meaning it is no longer valid and should not be forwarded to input listeners.
 
-