Class Event

java.lang.Object
net.java.games.input.Event

public final class Event extends Object
  • Constructor Details

    • Event

      public Event()
  • Method Details

    • set

      public void set(Event other)
    • set

      public void set(Component component, float value, long nanos)
    • getComponent

      public Component getComponent()
    • getValue

      public float getValue()
    • getNanos

      public 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 String toString()
      Overrides:
      toString in class Object