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
  • Constructor Details

    • TouchEvent

      public TouchEvent()
    • TouchEvent

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

    • 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 String getCharacters()
    • setCharacters

      public void setCharacters(String characters)
    • 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

      public String toString()
      Overrides:
      toString in class Object