com.jogamp.newt.event
Interface KeyListener

All Superinterfaces:
EventListener, NEWTEventListener
All Known Implementing Classes:
JOGLNewtAppletBase, KeyAdapter, TraceKeyAdapter

public interface KeyListener
extends NEWTEventListener

Listener for KeyEvents.

See Also:
KeyEvent

Method Summary
 void keyPressed(KeyEvent e)
          A key has been pressed, excluding auto-repeat modifier keys.
 void keyReleased(KeyEvent e)
          A key has been released, excluding auto-repeat modifier keys.
 void keyTyped(KeyEvent e)
          Deprecated. Redundant, will be removed soon. Use keyReleased(KeyEvent) and exclude non printable keys and auto-repeat.
 

Method Detail

keyPressed

void keyPressed(KeyEvent e)
A key has been pressed, excluding auto-repeat modifier keys. See KeyEvent.


keyReleased

void keyReleased(KeyEvent e)
A key has been released, excluding auto-repeat modifier keys. See KeyEvent.


keyTyped

void keyTyped(KeyEvent e)
Deprecated. Redundant, will be removed soon. Use keyReleased(KeyEvent) and exclude non printable keys and auto-repeat.

A printable key has been typed (pressed and released), excluding auto-repeat. See KeyEvent.



Copyright 2010 JogAmp Community.