com.jme3.input.event
Class TouchEvent

java.lang.Object
  extended by com.jme3.input.event.InputEvent
      extended by com.jme3.input.event.TouchEvent

public class TouchEvent
extends InputEvent

TouchEvent represents a single event from multi-touch input devices


Nested Class Summary
static class TouchEvent.Type
           
 
Field Summary
 
Fields inherited from class com.jme3.input.event.InputEvent
consumed, time
 
Constructor Summary
TouchEvent()
           
TouchEvent(TouchEvent.Type type, float x, float y, float deltax, float deltay)
           
 
Method Summary
 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)
           
 
Methods inherited from class com.jme3.input.event.InputEvent
getTime, isConsumed, setConsumed, setTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TouchEvent

public TouchEvent()

TouchEvent

public TouchEvent(TouchEvent.Type type,
                  float x,
                  float y,
                  float deltax,
                  float deltay)
Method Detail

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.

Returns:
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)