Package icyllis.modernui.view

# 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 Summary

  Modifier and Type
  Method
  Description
  `abstract void`
  `cancel()`
  Marks the input event as being canceled.
  `abstract InputEvent`
  `copy()`
  Copies the event.
  `abstract long`
  `getEventTime()`
  Get the time in milliseconds that this event object is created in the GLFW time base
  `abstract long`
  `getEventTimeNano()`
  Get the precise time in nanoseconds that this event object is created in the GLFW time base
  `abstract void`
  `recycle()`
  Recycles the event.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.