Class ModifierlessKeybind


  • public class ModifierlessKeybind
    extends Keybind
    • Constructor Detail

      • ModifierlessKeybind

        public ModifierlessKeybind​(int keyCode,
                                   int modifiers)
      • ModifierlessKeybind

        public ModifierlessKeybind​(java.awt.event.KeyEvent e)
        Constructs a keybind with that matches the passed KeyEvent
    • Method Detail

      • matches

        public boolean matches​(java.awt.event.KeyEvent e)
        If the KeyEvent is from a KeyPressed event this returns if the Event is this hotkey being pressed. If the KeyEvent is a KeyReleased event this returns if the event is this hotkey being released
        Overrides:
        matches in class Keybind