Class InputEvent

java.lang.Object
org.luwrain.core.Event
org.luwrain.core.events.InputEvent

public final class InputEvent extends Event
  • Field Details

    • isSpecial

      protected boolean isSpecial
    • special

      protected InputEvent.Special special
    • nonSpecialChar

      protected char nonSpecialChar
    • shiftPressed

      protected boolean shiftPressed
    • controlPressed

      protected boolean controlPressed
    • altPressed

      protected boolean altPressed
  • Constructor Details

    • InputEvent

      public InputEvent(InputEvent.Special special)
    • InputEvent

      public InputEvent(InputEvent.Special special, Set<InputEvent.Modifiers> modifiers)
    • InputEvent

      public InputEvent(InputEvent.Special special, boolean shiftPressed, boolean controlPressed, boolean altPressed)
    • InputEvent

      public InputEvent(char nonSpecialChar)
    • InputEvent

      public InputEvent(char nonSpecialChar, Set<InputEvent.Modifiers> modifiers)
    • InputEvent

      public InputEvent(char nonSpecialChar, boolean shiftPressed, boolean controlPressed, boolean altPressed)
    • InputEvent

      public InputEvent(boolean isSpecial, InputEvent.Special special, char nonSpecialChar, boolean shiftPressed, boolean controlPressed, boolean altPressed)
    • InputEvent

      public InputEvent(boolean isSpecial, InputEvent.Special special, char nonSpecialChar)
  • Method Details

    • equals

      public boolean equals(InputEvent event)
    • isSpecial

      public boolean isSpecial()
    • getChar

      public char getChar()
    • getSpecial

      public InputEvent.Special getSpecial()
    • isModified

      public boolean isModified()
    • withShift

      public boolean withShift()
    • withShiftOnly

      public boolean withShiftOnly()
    • withControl

      public boolean withControl()
    • withControlOnly

      public boolean withControlOnly()
    • withAlt

      public boolean withAlt()
    • withAltOnly

      public boolean withAltOnly()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • translateSpecial

      public static InputEvent.Special translateSpecial(String value)
    • getKeyboardLayout

      public static KeyboardLayout getKeyboardLayout()
    • setKeyboardLayout

      public static void setKeyboardLayout(KeyboardLayout layout)