Class TraceKeyAdapter

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

public class TraceKeyAdapter extends Object implements KeyListener
  • Constructor Details

    • TraceKeyAdapter

      public TraceKeyAdapter()
    • TraceKeyAdapter

      public TraceKeyAdapter(KeyListener downstream)
  • 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