Package com.jme3.input.event
Class TouchEvent
java.lang.Object
com.jme3.input.event.InputEvent
com.jme3.input.event.TouchEvent
TouchEvent represents a single event from multi-touch input devices-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.jme3.input.event.InputEvent
consumed, time -
Constructor Summary
ConstructorsConstructorDescriptionTouchEvent(TouchEvent.Type type, float x, float y, float deltax, float deltay) -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatfloatintintfloatfloatfloatgetType()Returns the type of touch event.floatgetX()floatgetY()booleanvoidset(TouchEvent.Type type) voidset(TouchEvent.Type type, float x, float y, float deltax, float deltay) voidsetCharacters(String characters) voidsetDeltaScaleSpan(float deltaScaleSpan) voidsetKeyCode(int keyCode) voidsetPointerId(int pointerId) voidsetPressure(float pressure) voidsetScaleFactor(float scaleFactor) voidsetScaleSpan(float scaleSpan) voidsetScaleSpanInProgress(boolean scaleSpanInProgress) toString()Methods inherited from class com.jme3.input.event.InputEvent
getTime, isConsumed, setConsumed, setTime
-
Constructor Details
-
TouchEvent
public TouchEvent() -
TouchEvent
-
-
Method Details
-
set
-
set
-
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
-
setCharacters
-
getScaleFactor
public float getScaleFactor() -
setScaleFactor
public void setScaleFactor(float scaleFactor) -
getScaleSpan
public float getScaleSpan() -
setScaleSpan
public void setScaleSpan(float scaleSpan) -
getDeltaScaleSpan
public float getDeltaScaleSpan() -
setDeltaScaleSpan
public void setDeltaScaleSpan(float deltaScaleSpan) -
isScaleSpanInProgress
public boolean isScaleSpanInProgress() -
setScaleSpanInProgress
public void setScaleSpanInProgress(boolean scaleSpanInProgress) -
toString
-