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 void
cancel()
Marks the input event as being canceled.abstract InputEvent
copy()
Copies the event.abstract long
Get the time in milliseconds that this event object is created in the GLFW time baseabstract long
Get the precise time in nanoseconds that this event object is created in the GLFW time baseabstract void
recycle()
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.
-