framework
Class KeyEventStore
java.lang.Object
framework.KeyEventStore
- All Implemented Interfaces:
- KeyListener, EventListener
public class KeyEventStore
- extends Object
- implements KeyListener
Listens to KeyEvent events and stores them in a list.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyEventStore
public KeyEventStore()
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