Class KeyAdapter

java.lang.Object
com.jogamp.newt.event.KeyAdapter
All Implemented Interfaces:
KeyListener, NEWTEventListener, EventListener

public abstract class KeyAdapter extends Object implements KeyListener
  • Constructor Details

    • KeyAdapter

      public KeyAdapter()
  • Method Details

    • keyPressed

      public void keyPressed(KeyEvent e)
      Description copied from interface: KeyListener
      A key has been pressed, excluding auto-repeat modifier keys. See KeyEvent.
      Specified by:
      keyPressed in interface KeyListener
    • keyReleased

      public void keyReleased(KeyEvent e)
      Description copied from interface: KeyListener
      A key has been released, excluding auto-repeat modifier keys. See KeyEvent.

      To simulated the removed keyTyped(KeyEvent e) semantics, simply apply the following constraints upfront and bail out if not matched, i.e.:

              if( !e.isPrintableKey() || e.isAutoRepeat() ) {
                  return;
              }
       

      Specified by:
      keyReleased in interface KeyListener