Package com.jme3.input.event
Enum Class TouchEvent.Type
- All Implemented Interfaces:
Serializable
,Comparable<TouchEvent.Type>
,Constable
- Enclosing class:
- TouchEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTouch down event, fields: posX, posY, pressureFinger 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, charactersVirtual keyboard or hardware key event up, fields: keyCode, charactersVirtual keyboard or hardware key event up, fields: keyCode, charactersMove/Drag event, fields: posX, posY, deltaX, deltaY, pressureTwo finger scale event end, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpanTwo finger scale event, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpanTwo finger scale event start, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpanScroll eventThe 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 TypeMethodDescriptionstatic TouchEvent.Type
Returns the enum constant of this class with the specified name.static TouchEvent.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOWN
Touch down event, fields: posX, posY, pressure -
MOVE
Move/Drag event, fields: posX, posY, deltaX, deltaY, pressure -
UP
Touch up event, fields: posX, posY, pressure -
KEY_DOWN
Virtual keyboard or hardware key event down, fields: keyCode, characters -
KEY_UP
Virtual keyboard or hardware key event up, fields: keyCode, characters -
FLING
-
TAP
-
DOUBLETAP
-
LONGPRESSED
-
HOVER_START
Finger started hovering over the screen without touching Requires Android OS rev 14 or higher (Android 4.0 or higher) -
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
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
Two finger scale event start, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan -
SCALE_MOVE
Two finger scale event, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan -
SCALE_END
Two finger scale event end, 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. 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
-
IDLE
-
KEY_MULTIPLE
Virtual keyboard or hardware key event up, fields: keyCode, characters
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-