|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.haphazard.gui.handler.ClientInputHandler
| Constructor Summary | |
ClientInputHandler()
Creates a new instance of hKeyHandler |
|
| Method Summary | |
java.awt.event.KeyEvent |
getNextKey()
Gets the next key event from the buffer, if there exists any |
void |
keyPressed(java.awt.event.KeyEvent keyEvent)
Callback when a key is pressed |
void |
keyReleased(java.awt.event.KeyEvent keyEvent)
Callback when a key is released |
void |
keyTyped(java.awt.event.KeyEvent keyEvent)
Callback for when a key is typed |
boolean |
moreKeys()
Checks if there are more keys to process |
void |
mouseClicked(java.awt.event.MouseEvent event)
Callback for when a mouse is clicked |
void |
mouseEntered(java.awt.event.MouseEvent mouseEvent)
Callback for when the mouse enters the components space |
void |
mouseExited(java.awt.event.MouseEvent mouseEvent)
Callback for when the component exists this components space |
void |
mousePressed(java.awt.event.MouseEvent mouseEvent)
Callback for when the mouse is pressed |
void |
mouseReleased(java.awt.event.MouseEvent mouseEvent)
Callback for when a mouse button has been released |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClientInputHandler()
| Method Detail |
public boolean moreKeys()
public java.awt.event.KeyEvent getNextKey()
public void keyPressed(java.awt.event.KeyEvent keyEvent)
keyPressed in interface java.awt.event.KeyListenerkeyEvent - The event that has happenedpublic void keyReleased(java.awt.event.KeyEvent keyEvent)
keyReleased in interface java.awt.event.KeyListenerkeyEvent - The event that has happenedpublic void keyTyped(java.awt.event.KeyEvent keyEvent)
keyTyped in interface java.awt.event.KeyListenerkeyEvent - The event that has happenedpublic void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent mouseEvent)
mouseEntered in interface java.awt.event.MouseListenermouseEvent - The event that has happenedpublic void mouseExited(java.awt.event.MouseEvent mouseEvent)
mouseExited in interface java.awt.event.MouseListenermouseEvent - The event that has happenedpublic void mousePressed(java.awt.event.MouseEvent mouseEvent)
mousePressed in interface java.awt.event.MouseListenermouseEvent - The event that has happenedpublic void mouseReleased(java.awt.event.MouseEvent mouseEvent)
mouseReleased in interface java.awt.event.MouseListenermouseEvent - The event that has happened
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||