com.jme3.input.event
クラス TouchEvent

java.lang.Object
  上位を拡張 com.jme3.input.event.InputEvent
      上位を拡張 com.jme3.input.event.TouchEvent

public class TouchEvent
extends InputEvent

TouchEvent represents a single event from multi-touch input devices


入れ子のクラスの概要
static class TouchEvent.Type
           
 
コンストラクタの概要
TouchEvent()
           
TouchEvent(TouchEvent.Type type, float x, float y, float deltax, float deltay)
           
 
メソッドの概要
 java.lang.String getCharacters()
           
 float getDeltaX()
           
 float getDeltaY()
           
 int getKeyCode()
           
 int getPointerId()
           
 float getPressure()
           
 float getScaleFactor()
           
 float getScaleSpan()
           
 TouchEvent.Type getType()
          Returns the type of touch event.
 float getX()
           
 float getY()
           
 void set(TouchEvent.Type type)
           
 void set(TouchEvent.Type type, float x, float y, float deltax, float deltay)
           
 void setCharacters(java.lang.String characters)
           
 void setKeyCode(int keyCode)
           
 void setPointerId(int pointerId)
           
 void setPressure(float pressure)
           
 void setScaleFactor(float scaleFactor)
           
 void setScaleSpan(float scaleSpan)
           
 
クラス com.jme3.input.event.InputEvent から継承されたメソッド
getTime, isConsumed, setConsumed, setTime
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TouchEvent

public TouchEvent()

TouchEvent

public TouchEvent(TouchEvent.Type type,
                  float x,
                  float y,
                  float deltax,
                  float deltay)
メソッドの詳細

set

public void set(TouchEvent.Type type)

set

public void set(TouchEvent.Type type,
                float x,
                float y,
                float deltax,
                float deltay)

getType

public TouchEvent.Type getType()
Returns the type of touch event.

戻り値:
the type of touch event.

getX

public float getX()

getY

public float getY()

getDeltaX

public float getDeltaX()

getDeltaY

public float getDeltaY()

getPressure

public float getPressure()

setPressure

public void setPressure(float pressure)

getPointerId

public int getPointerId()

setPointerId

public void setPointerId(int pointerId)

getKeyCode

public int getKeyCode()

setKeyCode

public void setKeyCode(int keyCode)

getCharacters

public java.lang.String getCharacters()

setCharacters

public void setCharacters(java.lang.String characters)

getScaleFactor

public float getScaleFactor()

setScaleFactor

public void setScaleFactor(float scaleFactor)

getScaleSpan

public float getScaleSpan()

setScaleSpan

public void setScaleSpan(float scaleSpan)