Enum Class KeyInputModifier

java.lang.Object
java.lang.Enum<KeyInputModifier>
net.mezzdev.config.gui.api.keybindings.KeyInputModifier
All Implemented Interfaces:
Serializable, Comparable<KeyInputModifier>, Constable

public enum KeyInputModifier extends Enum<KeyInputModifier>
Physical modifiers for keyboard and mouse input combinations.
Since:
0.6.0
  • Enum Constant Details

    • SHIFT

      public static final KeyInputModifier SHIFT
      Either Shift key.
      Since:
      0.6.0
    • CONTROL

      public static final KeyInputModifier CONTROL
      Either Control key, including on macOS.
      Since:
      0.6.0
    • ALT

      public static final KeyInputModifier ALT
      Either Alt key.
      Since:
      0.6.0
    • COMMAND

      public static final KeyInputModifier COMMAND
      Either Command/Super key.
      Since:
      0.6.0
  • Method Details

    • values

      public static KeyInputModifier[] 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 KeyInputModifier 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