|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.interact.ControlAdapter
Base class for control feedback adapters. Converts discrete control events into a target interactor state (see InteractorFlags.CONTROL_???). Can work multiple targets, but relies on input events to do any cleanup before switching to a new target.
Constructor Summary | |
ControlAdapter()
Creates an instance that recognizes all targets. |
|
ControlAdapter(java.util.Collection targets)
Creates an instance that recognizes a group of dynamic targets. |
|
ControlAdapter(Interactor target)
Creates an instance that recognizes a single static target. |
Method Summary | |
BooleanField.EventIn |
getArmedIn()
True while the control is armed for firing. |
BooleanField.EventIn |
getCancelIn()
True while the control is cancelled. |
BooleanField.EventIn |
getCaptureIn()
True while the control is captured for arming, firing, or cancellation. |
BooleanField.EventIn |
getFireIn()
True while the control is firing or has fired. |
InteractorField.EventIn |
getTargetIn()
The current target. |
void |
setNoPickTarget(Interactor target)
Sets the 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 ControlAdapter()
public ControlAdapter(Interactor target)
target
- The recognized target. NO_PICK_TARGET for the no
pick target. Never null.public ControlAdapter(java.util.Collection targets)
targets
- The group of recognized targets (Interactor).
Live reference. Include NO_PICK_TARGET for the no
pick target. Only affects new targets. If null, all targets
are recognized.Method Detail |
public void setNoPickTarget(Interactor target)
target
- The feedback target. Null if none. The default is null.public InteractorField.EventIn getTargetIn()
public BooleanField.EventIn getCaptureIn()
public BooleanField.EventIn getArmedIn()
public BooleanField.EventIn getFireIn()
public BooleanField.EventIn getCancelIn()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |