ch.aplu.jgamegrid
Class GGKeyAdapter

java.lang.Object
  extended by ch.aplu.jgamegrid.GGKeyAdapter
All Implemented Interfaces:
GGKeyListener, java.util.EventListener

public class GGKeyAdapter
extends java.lang.Object
implements GGKeyListener

Implementation of empty methods of GGKeyListener.


Constructor Summary
GGKeyAdapter()
           
 
Method Summary
 boolean keyPressed(java.awt.event.KeyEvent evt)
          Event callback method called when a key is pressed.
 boolean keyReleased(java.awt.event.KeyEvent evt)
          Event callback method called when a key is released.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GGKeyAdapter

public GGKeyAdapter()
Method Detail

keyPressed

public boolean keyPressed(java.awt.event.KeyEvent evt)
Event callback method called when a key is pressed.

Specified by:
keyPressed in interface GGKeyListener
Parameters:
evt - the KeyEvent that gives information about the key
Returns:
true, if the key is consumed, so following listeners in the GGKeyListener sequence will not get the event

keyReleased

public boolean keyReleased(java.awt.event.KeyEvent evt)
Event callback method called when a key is released.

Specified by:
keyReleased in interface GGKeyListener
Parameters:
evt - the KeyEvent that gives information about the key
Returns:
true, if the key is consumed, so following listeners in the GGKeyListener sequence will not get the event