|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threed.jpct.util.KeyMapper
KeyMapper is convenience class to ease the different handling of the keyboard when using hard- or software rendering. It provides a uniform way to access the keyboard.
| Constructor Summary | |
KeyMapper()
Use this constructor to create a KeyMapper that works in combination with hardware rendering (i.e. that is using LWJGL's methods to access the keyboard). |
|
KeyMapper(java.awt.Component comp)
Use this construtor to create a KeyMapper that works on an AWT/Swing component, which is usually your frame (or whatever) where the rendered output will be displayed onto. |
|
| Method Summary | |
void |
destroy()
Destroys the KeyMapper. |
void |
keyPressed(java.awt.event.KeyEvent e)
Has to be public, because KeyMapper implements KeyListener. |
void |
keyReleased(java.awt.event.KeyEvent e)
Has to be public, because KeyMapper implements KeyListener. |
void |
keyTyped(java.awt.event.KeyEvent e)
Has to be public, because KeyMapper implements KeyListener. |
KeyState |
poll()
Poll the keyboard until no further KeyStates are available. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public KeyMapper()
public KeyMapper(java.awt.Component comp)
comp - the component| Method Detail |
public void destroy()
public KeyState poll()
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenere - the KeyEventpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenere - the KeyEventpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenere - the KeyEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||