|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.event.MouseAdapter
com.threerings.opengl.gui.util.PseudoKeys.Unifier
public static class PseudoKeys.Unifier
Processes unconsumed key, mouse, and controller events, converting them into unified "key" events. Users may either subclass this adapter or pass an observer to the constructor.
| Constructor Summary | |
|---|---|
PseudoKeys.Unifier()
Constructor for subclasses. |
|
PseudoKeys.Unifier(boolean consume)
Constructor for subclasses. |
|
PseudoKeys.Unifier(PseudoKeys.Observer observer)
Constructor for observers. |
|
| Method Summary | |
|---|---|
void |
controllerMoved(ControllerEvent event)
Dispatched when the controller is moved on an axis. |
void |
controllerPovXMoved(ControllerEvent event)
Dispatched when the controller's pov has moved on the x axis. |
void |
controllerPovYMoved(ControllerEvent event)
Dispatched when the controller's pov has moved on the y axis. |
void |
controllerPressed(ControllerEvent event)
Dispatched when a controller button is pressed. |
void |
controllerReleased(ControllerEvent event)
Dispatched when a controller button is released. |
void |
keyPressed(KeyEvent event)
Dispatched when a key is pressed within the bounds of the target component. |
void |
keyPressed(long when,
int key,
float amount)
Called when a "key" (either a real key or a pseudo-key) is pressed. |
void |
keyReleased(KeyEvent event)
Dispatched when a key is released after having been pressed within the bounds of the target component. |
void |
keyReleased(long when,
int key)
Called when a "key" is released. |
void |
mousePressed(MouseEvent event)
Dispatched when a button is pressed within the bounds of the target component. |
void |
mouseReleased(MouseEvent event)
Dispatched when a button is released after having been pressed within the bounds of the target component. |
void |
mouseWheeled(MouseEvent event)
Dispatched when the mouse wheel is rotated within the bounds of the target component. |
| Methods inherited from class com.threerings.opengl.gui.event.MouseAdapter |
|---|
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PseudoKeys.Unifier(PseudoKeys.Observer observer)
public PseudoKeys.Unifier(boolean consume)
public PseudoKeys.Unifier()
| Method Detail |
|---|
public void keyPressed(long when,
int key,
float amount)
public void keyReleased(long when,
int key)
public void keyPressed(KeyEvent event)
KeyListener
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent event)
KeyListener
keyReleased in interface KeyListenerpublic void mouseWheeled(MouseEvent event)
MouseWheelListener
mouseWheeled in interface MouseWheelListenerpublic void controllerPressed(ControllerEvent event)
ControllerListener
controllerPressed in interface ControllerListenerpublic void controllerReleased(ControllerEvent event)
ControllerListener
controllerReleased in interface ControllerListenerpublic void controllerMoved(ControllerEvent event)
ControllerListener
controllerMoved in interface ControllerListenerpublic void controllerPovXMoved(ControllerEvent event)
ControllerListener
controllerPovXMoved in interface ControllerListenerpublic void controllerPovYMoved(ControllerEvent event)
ControllerListener
controllerPovYMoved in interface ControllerListenerpublic void mousePressed(MouseEvent event)
MouseListener
mousePressed in interface MouseListenermousePressed in class MouseAdapterpublic void mouseReleased(MouseEvent event)
MouseListener
mouseReleased in interface MouseListenermouseReleased in class MouseAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||