Enum Class TouchEvent.Type

java.lang.Object
java.lang.Enum<TouchEvent.Type>
com.jme3.input.event.TouchEvent.Type
All Implemented Interfaces:
Serializable, Comparable<TouchEvent.Type>, Constable
Enclosing class:
TouchEvent

public static enum TouchEvent.Type extends Enum<TouchEvent.Type>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
     
    Touch down event, fields: posX, posY, pressure
     
    Finger was pulled away from the screen or touched the screen Requires Android OS rev 14 or higher (Android 4.0 or higher)
    Finger moved while still hovering over the screen without touching Requires Android OS rev 14 or higher (Android 4.0 or higher)
    Finger started hovering over the screen without touching Requires Android OS rev 14 or higher (Android 4.0 or higher)
     
    Virtual keyboard or hardware key event down, fields: keyCode, characters
    Virtual keyboard or hardware key event up, fields: keyCode, characters
    Virtual keyboard or hardware key event up, fields: keyCode, characters
     
    Move/Drag event, fields: posX, posY, deltaX, deltaY, pressure
     
    Two finger scale event end, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
    Two finger scale event, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
    Two finger scale event start, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
    Scroll event
    The user has performed a down MotionEvent and not performed a move or up yet.
     
    Touch up event, fields: posX, posY, pressure
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • DOWN

      public static final TouchEvent.Type DOWN
      Touch down event, fields: posX, posY, pressure
    • MOVE

      public static final TouchEvent.Type MOVE
      Move/Drag event, fields: posX, posY, deltaX, deltaY, pressure
    • UP

      public static final TouchEvent.Type UP
      Touch up event, fields: posX, posY, pressure
    • KEY_DOWN

      public static final TouchEvent.Type KEY_DOWN
      Virtual keyboard or hardware key event down, fields: keyCode, characters
    • KEY_UP

      public static final TouchEvent.Type KEY_UP
      Virtual keyboard or hardware key event up, fields: keyCode, characters
    • FLING

      public static final TouchEvent.Type FLING
    • TAP

      public static final TouchEvent.Type TAP
    • DOUBLETAP

      public static final TouchEvent.Type DOUBLETAP
    • LONGPRESSED

      public static final TouchEvent.Type LONGPRESSED
    • HOVER_START

      public static final TouchEvent.Type HOVER_START
      Finger started hovering over the screen without touching Requires Android OS rev 14 or higher (Android 4.0 or higher)
    • HOVER_MOVE

      public static final TouchEvent.Type HOVER_MOVE
      Finger moved while still hovering over the screen without touching Requires Android OS rev 14 or higher (Android 4.0 or higher)
    • HOVER_END

      public static final TouchEvent.Type HOVER_END
      Finger was pulled away from the screen or touched the screen Requires Android OS rev 14 or higher (Android 4.0 or higher)
    • SCALE_START

      public static final TouchEvent.Type SCALE_START
      Two finger scale event start, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
    • SCALE_MOVE

      public static final TouchEvent.Type SCALE_MOVE
      Two finger scale event, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
    • SCALE_END

      public static final TouchEvent.Type SCALE_END
      Two finger scale event end, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
    • SCROLL

      public static final TouchEvent.Type SCROLL
      Scroll event
    • SHOWPRESS

      public static final TouchEvent.Type SHOWPRESS
      The user has performed a down MotionEvent and not performed a move or up yet. This event is commonly used to provide visual feedback to the user to let them know that their action has been recognized i.e. highlight an element.
    • OUTSIDE

      public static final TouchEvent.Type OUTSIDE
    • IDLE

      public static final TouchEvent.Type IDLE
    • KEY_MULTIPLE

      public static final TouchEvent.Type KEY_MULTIPLE
      Virtual keyboard or hardware key event up, fields: keyCode, characters
  • Method Details

    • values

      public static TouchEvent.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TouchEvent.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null