Package icyllis.modernui.view
Class InputEvent
java.lang.Object
icyllis.modernui.view.InputEvent
- Direct Known Subclasses:
KeyEvent,MotionEvent
The base class of input events.
-
Method Summary
Modifier and TypeMethodDescriptionabstract voidcancel()Marks the input event as being canceled.abstract InputEventcopy()Copies the event.abstract longGet the time in milliseconds that this event object is created in the GLFW time baseabstract longGet the precise time in nanoseconds that this event object is created in the GLFW time baseabstract voidrecycle()Recycles the event.
-
Method Details
-
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.
-