|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.interact.button.AbstractButtonTrigger | +--gumbo.interact.button.SimpleButtonTrigger
A "simple" button trigger, which is stateless (can arm and fire simultaneously), button level (not edge) sensing, and does not perform trigger capture. Being level sensing and stateless, if firing conditions are satisfied the trigger will fire immediately when fireable in goes true.
Constructor Summary | |
SimpleButtonTrigger(java.util.Collection triggerButtons,
java.util.Collection chordButtons,
java.util.Collection domainButtons,
boolean onDown,
boolean latching)
Creates an instance. |
Method Summary | |
protected boolean |
checkFire()
Called by the system to check for start or stop of trigger firing. |
boolean |
isLatching()
|
boolean |
isOnDown()
|
protected void |
processButtonsIn()
Called by the system to process the corresponding input event. |
protected void |
processFireableIn()
Called by the system to process the corresponding input event. |
Methods inherited from class gumbo.interact.button.AbstractButtonTrigger |
getActiveIn, getArmedOut, getButtonsIn, getCancelIn, getCancelOut, getCaptureOut, getChordButtons, getDomainButtons, getEnableIn, getFireableIn, getFireNotifyOut, getFireOut, getResetIn, getTriggerButtons, processCancelIn, processResetIn, startArmed, startCancel, startFire, startReset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleButtonTrigger(java.util.Collection triggerButtons, java.util.Collection chordButtons, java.util.Collection domainButtons, boolean onDown, boolean latching)
triggerButtons
- Value of trigger button flags (Object,
specifically MouseSensors.BUTTON_???, KeyboardSensors.KEY_???).
None if null. (See ButtonTrigger).chordButtons
- Value of chord button flags (Object,
specifically MouseSensors.BUTTON_???, KeyboardSensors.KEY_???).
None if null. (See ButtonTrigger).domainButtons
- Value of domain button flags (Object,
specifically MouseSensors.BUTTON_???, KeyboardSensors.KEY_???).
None if null. (See ButtonTrigger).onDown
- If true, buttons are active while down;
otherwise, while up.latching
- If true, trigger latches after firing until reset;
otherwise, trigger fires only while trigger conditions are satisfied.Method Detail |
public boolean isOnDown()
public boolean isLatching()
protected boolean checkFire()
protected void processButtonsIn()
AbstractButtonTrigger
processButtonsIn
in class AbstractButtonTrigger
protected void processFireableIn()
AbstractButtonTrigger
processFireableIn
in class AbstractButtonTrigger
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |