com.jme3.input.event
クラス InputEvent

java.lang.Object
  上位を拡張 com.jme3.input.event.InputEvent
直系の既知のサブクラス:
JoyAxisEvent, JoyButtonEvent, KeyInputEvent, MouseButtonEvent, MouseMotionEvent, TouchEvent

public abstract class InputEvent
extends java.lang.Object

An abstract input event.


コンストラクタの概要
InputEvent()
           
 
メソッドの概要
 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.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

InputEvent

public InputEvent()
メソッドの詳細

getTime

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

戻り値:
time when the event occured

setTime

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

パラメータ:
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.

戻り値:
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.