com.jme3.input.event
Class InputEvent

java.lang.Object
  extended by com.jme3.input.event.InputEvent
Direct Known Subclasses:
JoyAxisEvent, JoyButtonEvent, KeyInputEvent, MouseButtonEvent, MouseMotionEvent, TouchEvent

public abstract class InputEvent
extends java.lang.Object

An abstract input event.


Field Summary
protected  boolean consumed
           
protected  long time
           
 
Constructor Summary
InputEvent()
           
 
Method Summary
 long getTime()
          The time when the event occurred.
 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.
 void setConsumed()
          Call to mark this input event as consumed, meaning it is no longer valid and should not be forwarded to input listeners.
 void setTime(long time)
          Set the time when the event occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

protected long time

consumed

protected boolean consumed
Constructor Detail

InputEvent

public InputEvent()
Method Detail

getTime

public long getTime()
The time when the event occurred. This is relative to Input.getInputTimeNanos().

Returns:
time when the event occured

setTime

public void setTime(long time)
Set the time when the event occurred.

Parameters:
time - time when the event occurred.

isConsumed

public 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

setConsumed

public void setConsumed()
Call to mark this input event as consumed, meaning it is no longer valid and should not be forwarded to input listeners.