Enum Class InputEvent.Type

java.lang.Object
java.lang.Enum<InputEvent.Type>
com.prineside.tdi2.scene2d.InputEvent.Type
All Implemented Interfaces:
Serializable, Comparable<InputEvent.Type>, Constable
Enclosing class:
InputEvent

public static enum InputEvent.Type extends Enum<InputEvent.Type>
Types of low-level input events supported by scene2d.
  • Enum Constant Details

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

    • values

      public static InputEvent.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 InputEvent.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