Class KeyboardEvent

java.lang.Object
edu.macalester.graphics.events.AbstractEvent
edu.macalester.graphics.events.KeyboardEvent

public final class KeyboardEvent extends AbstractEvent
Carries information about a key being pressed or released.
See Also:
  • Constructor Details

    • KeyboardEvent

      public KeyboardEvent(KeyEvent sourceEvent)
      For internal use. Translates an underlying AWT event to a kilt-graphics event.
  • Method Details

    • getKey

      public Key getKey()
      The key that was pressed or released.
    • toString

      public String toString()
      Overrides:
      toString in class Object