Class InputEvent

java.lang.Object
icyllis.modernui.view.InputEvent
Direct Known Subclasses:
KeyEvent, MotionEvent

public abstract class InputEvent extends Object
The base class of input events.
  • Method Details

    • copy

      public abstract InputEvent copy()
      Copies the event.
      Returns:
      A deep copy of the event.
    • recycle

      public abstract void recycle()
      Recycles the event.

      This method should only be called by system.

    • getEventTime

      public abstract long getEventTime()
      Get the time in milliseconds that this event object is created in the GLFW time base
      Returns:
      the time this event occurred
    • getEventTimeNano

      public abstract long getEventTimeNano()
      Get the precise time in nanoseconds that this event object is created in the GLFW time base
      Returns:
      the time this event occurred
    • cancel

      public abstract void cancel()
      Marks the input event as being canceled.