framework
Class KeyEventStore

java.lang.Object
  extended by framework.KeyEventStore
All Implemented Interfaces:
KeyListener, EventListener

public class KeyEventStore
extends Object
implements KeyListener

Listens to KeyEvent events and stores them in a list.


Constructor Summary
KeyEventStore()
           
 
Method Summary
 List getEvents()
          Returns all KeyEvents received since the previous call of this method.
 void keyPressed(KeyEvent e)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyEventStore

public KeyEventStore()
Method Detail

getEvents

public List getEvents()
Returns all KeyEvents received since the previous call of this method. Should be called once per game loop.


keyPressed

public void keyPressed(KeyEvent e)
Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener