|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.interact.InputFacade
A facade providing common interactive input support. Includes mouse and keyboard sensors, picking, and action single over feedback. The default implementation uses a Swing mouse and keyboard sensor, which requires targets with a Component graphic. Also includes a "capture cancel" button trigger for button trigger and drag cancel, and a "multi-select" button trigger for target multi-select. Pick support includes a pick sensor and adapter, but not a mapper. The pick target output reflects sensor mouse over, not mouse capture.
Due to the nature of picking, the specific mouse target is usually significant. Due to the nature of keyboard focus, however, usually any target will due. As such, pick output activation requires both the mouse and keyboard to be active, which means that the mouse must be over a target and the keyboard must be focused on a target, but not necessarily the same target. Button output activation, however, only requires that the keybaord be active.
Constructor Summary | |
InputFacade(PickSensor picker)
|
Method Summary | |
void |
addSensorTarget(SpaceNode target)
Convenience method for registering sensor targets. |
protected void |
connectSensors(MouseSensor mouse,
KeyboardSensor keyboard,
BooleanField.EventIn pickerActiveIn)
Called by the system after input sensors have been created to establish connections between the sensors and to the picker's active input, such as for focus-follows-mouse). |
StateSetField.EventOut |
getButtonsOut()
Mouse and keyboard buttons. |
BooleanField.EventOut |
getCancelOut()
True while the escape key is down. |
KeyboardSensor |
getKeyboardSensor()
Gets the keyboard sensor. |
MouseSensor |
getMouseSensor()
Gets the mouse sensor. |
BooleanField.EventOut |
getMultiOut()
True while the control key is down. |
InteractorField.EventOut |
getPickOut()
Mouse pick out. |
protected KeyboardSensor |
newKeyboardSensor()
Called by the system during initialization to get the keyboard sensor. |
protected MouseSensor |
newMouseSensor()
Called by the system during initialization to get the mouse sensor. |
void |
removeSensorTarget(SpaceNode target)
Convenience method for unregistering sensor targets. |
void |
setNoPickTarget(Interactor target)
Sets the action feedback target corresponding to NO_PICK_TARGET target in. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InputFacade(PickSensor picker)
Method Detail |
protected MouseSensor newMouseSensor()
protected KeyboardSensor newKeyboardSensor()
protected void connectSensors(MouseSensor mouse, KeyboardSensor keyboard, BooleanField.EventIn pickerActiveIn)
public MouseSensor getMouseSensor()
public KeyboardSensor getKeyboardSensor()
public void addSensorTarget(SpaceNode target)
public void removeSensorTarget(SpaceNode target)
public void setNoPickTarget(Interactor target)
target
- The feedback target. None if null, which is the default.public InteractorField.EventOut getPickOut()
public StateSetField.EventOut getButtonsOut()
public BooleanField.EventOut getCancelOut()
public BooleanField.EventOut getMultiOut()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |