Enum Class Input.Key

All Implemented Interfaces:
Serializable, Comparable<Input.Key>, Constable
Enclosing interface:
Input

public static enum Input.Key extends Enum<Input.Key>
Non-character keys supported by the input API.
  • Enum Constant Details

    • UP

      public static final Input.Key UP
      Up arrow key.
    • DOWN

      public static final Input.Key DOWN
      Down arrow key.
    • LEFT

      public static final Input.Key LEFT
      Left arrow key.
    • SHIFT

      public static final Input.Key SHIFT
      Shift modifier key.
    • CONTROL

      public static final Input.Key CONTROL
      Control modifier key.
    • ALT

      public static final Input.Key ALT
      Alt modifier key.
    • ENTER

      public static final Input.Key ENTER
      Enter or Return key.
    • ESCAPE

      public static final Input.Key ESCAPE
      Escape key.
    • BACKSPACE

      public static final Input.Key BACKSPACE
      Backspace key.
    • DELETE

      public static final Input.Key DELETE
      Delete key.
  • Method Details

    • values

      public static Input.Key[] 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 Input.Key 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