Enum Class InputMod

java.lang.Object
java.lang.Enum<InputMod>
dev.pfaff.altargui.input.InputMod
All Implemented Interfaces:
Serializable, Comparable<InputMod>, Constable

public enum InputMod extends Enum<InputMod>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    If this bit is set one or more Alt keys were held down.
    If this bit is set the Caps Lock key is enabled and the LOCK_KEY_MODS input mode is set.
    If this bit is set one or more Control keys were held down.
    If this bit is set the Num Lock key is enabled and the LOCK_KEY_MODS input mode is set.
     
    If this bit is set one or more Shift keys were held down.
    If this bit is set one or more Super keys were held down.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final InputMod
    CTRL on all operating systems except for macOS, where it is SUPER.
    static final List<InputMod>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
    bit()
     
    final boolean
     
    static InputMod
    Returns the enum constant of this class with the specified name.
    static InputMod[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SHIFT

      public static final InputMod SHIFT
      If this bit is set one or more Shift keys were held down.
    • CTRL

      public static final InputMod CTRL
      If this bit is set one or more Control keys were held down.
    • ALT

      public static final InputMod ALT
      If this bit is set one or more Alt keys were held down.
    • SUPER

      public static final InputMod SUPER
      If this bit is set one or more Super keys were held down.
    • CAPS_LOCK

      public static final InputMod CAPS_LOCK
      If this bit is set the Caps Lock key is enabled and the LOCK_KEY_MODS input mode is set.
    • NUM_LOCK

      public static final InputMod NUM_LOCK
      If this bit is set the Num Lock key is enabled and the LOCK_KEY_MODS input mode is set.
    • REPEAT

      public static final InputMod REPEAT
  • Field Details

    • VALUES

      public static final List<InputMod> VALUES
    • PRIMARY

      public static final InputMod PRIMARY
      CTRL on all operating systems except for macOS, where it is SUPER.
  • Method Details

    • values

      public static InputMod[] 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 InputMod 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
    • bit

      public final int bit()
    • isAction

      public final boolean isAction()