Package com.badlogic.gdx.scenes.scene2d
Enum InputEvent.Type
- java.lang.Object
-
- java.lang.Enum<InputEvent.Type>
-
- com.badlogic.gdx.scenes.scene2d.InputEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InputEvent.Type>
- Enclosing class:
- InputEvent
public static enum InputEvent.Type extends java.lang.Enum<InputEvent.Type>
Types of low-level input events supported by scene2d.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description enter
The mouse pointer or an active touch have entered (i.e.,hit
) an actor.exit
The mouse pointer or an active touch have exited an actor.keyDown
A keyboard key has been pressed.keyTyped
A keyboard key has been pressed and released.keyUp
A keyboard key has been released.mouseMoved
The mouse pointer has moved (without a mouse button being active).scrolled
The mouse scroll wheel has changed.touchDown
A new touch for a pointer on the stage was detectedtouchDragged
A pointer that is touching the stage has moved.touchUp
A pointer has stopped touching the stage.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputEvent.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InputEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
touchDown
public static final InputEvent.Type touchDown
A new touch for a pointer on the stage was detected
-
touchUp
public static final InputEvent.Type touchUp
A pointer has stopped touching the stage.
-
touchDragged
public static final InputEvent.Type touchDragged
A pointer that is touching the stage has moved.
-
mouseMoved
public static final InputEvent.Type mouseMoved
The mouse pointer has moved (without a mouse button being active).
-
enter
public static final InputEvent.Type enter
The mouse pointer or an active touch have entered (i.e.,hit
) an actor.
-
exit
public static final InputEvent.Type exit
The mouse pointer or an active touch have exited an actor.
-
scrolled
public static final InputEvent.Type scrolled
The mouse scroll wheel has changed.
-
keyDown
public static final InputEvent.Type keyDown
A keyboard key has been pressed.
-
keyUp
public static final InputEvent.Type keyUp
A keyboard key has been released.
-
keyTyped
public static final InputEvent.Type keyTyped
A keyboard key has been pressed and released.
-
-
Method Detail
-
values
public static InputEvent.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 (InputEvent.Type c : InputEvent.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 InputEvent.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 namejava.lang.NullPointerException
- if the argument is null
-
-