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
-
Field Summary
Fields inherited from class com.jme3.input.event.InputEvent
consumed, time
-
Constructor Summary
ConstructorDescriptionTouchEvent
(TouchEvent.Type type, float x, float y, float deltax, float deltay) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
int
int
float
float
float
getType()
Returns the type of touch event.float
getX()
float
getY()
boolean
void
set
(TouchEvent.Type type) void
set
(TouchEvent.Type type, float x, float y, float deltax, float deltay) void
setCharacters
(String characters) void
setDeltaScaleSpan
(float deltaScaleSpan) void
setKeyCode
(int keyCode) void
setPointerId
(int pointerId) void
setPressure
(float pressure) void
setScaleFactor
(float scaleFactor) void
setScaleSpan
(float scaleSpan) void
setScaleSpanInProgress
(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
-