com.jme3.input.event
Enum TouchEvent.Type

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

public static enum TouchEvent.Type
extends java.lang.Enum<TouchEvent.Type>


Enum Constant Summary
DOUBLETAP
           
DOWN
          Touch down event, fields: posX, posY, pressure
FLING
           
IDLE
           
KEY_DOWN
          Virtual keyboard or hardware key event down, fields: keyCode, characters
KEY_UP
          Virtual keyboard or hardware key event up, fields: keyCode, characters
LONGPRESSED
           
MOVE
          Move/Drag event, fields: posX, posY, deltaX, deltaY, pressure
OUTSIDE
           
SCALE_END
          Two finger scale event end, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
SCALE_MOVE
          Two finger scale event, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
SCALE_START
          Two finger scale event start, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
SCROLL
          Scroll event
SHOWPRESS
          The user has performed a down MotionEvent and not performed a move or up yet.
TAP
           
UP
          Touch up event, fields: posX, posY, pressure
 
Method Summary
static TouchEvent.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TouchEvent.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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

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
Method Detail

values

public static TouchEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TouchEvent.Type c : TouchEvent.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TouchEvent.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null