Package playn.core

Class Keyboard.KeyEvent

Enclosing class:
Keyboard

public static class Keyboard.KeyEvent extends Keyboard.Event
An event dispatched for key press/release.
  • Field Details

    • key

      public final Key key
      The key that triggered this event, e.g. Key.A, etc.
    • down

      public final boolean down
      Whether the key is down or up.
  • Constructor Details

    • KeyEvent

      public KeyEvent(int flags, double time, Key key, boolean down)