Class InputEvent

java.lang.Object
limn.scene.event.InputEvent
Direct Known Subclasses:
CharEvent, FileDropEvent, KeyEvent, MouseEvent, PreeditEvent

public abstract sealed class InputEvent extends Object permits MouseEvent, KeyEvent, CharEvent, PreeditEvent, FileDropEvent
Base of all dispatched input events. Event data is immutable; the single mutable bit is consumption: a handler that fully processed the event calls consume() and bubbling stops.
  • Constructor Details

    • InputEvent

      public InputEvent()
  • Method Details

    • consume

      public final void consume()
      Marks the event handled, stopping it from bubbling further up the tree.
    • isConsumed

      public final boolean isConsumed()
      Whether some handler has already claimed this event.