Enum Class Key.Type

java.lang.Object
java.lang.Enum<Key.Type>
dev.xichil.mvui.Key.Type
All Implemented Interfaces:
Serializable, Comparable<Key.Type>, Constable
Enclosing class:
Key

public static enum Key.Type extends Enum<Key.Type>
Whether a Key is a keyboard key or a mouse button.
  • Enum Constant Details

    • KEYBOARD

      public static final Key.Type KEYBOARD
      A keyboard key; Key.code() is its GLFW key code.
    • MOUSE

      public static final Key.Type MOUSE
      A mouse button; Key.code() is its number (0 left, 1 right, 2 middle…).
  • Method Details

    • values

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