Package net.java.games.input
Class Event
- java.lang.Object
-
- net.java.games.input.Event
-
public final class Event extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetComponent()longgetNanos()Return the time the event happened, in nanoseconds.floatgetValue()voidset(Component component, float value, long nanos)voidset(Event other)java.lang.StringtoString()
-
-
-
Method Detail
-
set
public final void set(Event other)
-
set
public final void set(Component component, float value, long nanos)
-
getComponent
public final Component getComponent()
-
getValue
public final float getValue()
-
getNanos
public final long getNanos()
Return the time the event happened, in nanoseconds. The time is relative and therefore can only be used to compare with other event times.
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-