com.jme3.input.event
Class 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, 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.
- 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)