Class TriggerGroup
java.lang.Object
io.github.tigerbotics7125.tigerlib.input.trigger.TriggerGroup
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Disable allTrigger
s withing thisTriggerGroup
.void
Dissmiss aTrigger
from following thisTriggerGroup
.void
enable()
Enable allTrigger
s withing thisTriggerGroup
.void
Enroll aTrigger
to follow thisTriggerGroup
.void
initSendable
(edu.wpi.first.util.sendable.SendableBuilder builder) boolean
boolean
-
Constructor Details
-
TriggerGroup
public TriggerGroup()Create a newTriggerGroup
Object.
-
-
Method Details
-
enable
public void enable()Enable allTrigger
s withing thisTriggerGroup
. -
disable
public void disable()Disable allTrigger
s withing thisTriggerGroup
. -
isEnabled
public boolean isEnabled()- Returns:
- If this
TriggerGroup
is enabled.
-
isDisabled
public boolean isDisabled()- Returns:
- If this
TriggerGroup
is disabled.
-
enroll
Enroll aTrigger
to follow thisTriggerGroup
.- Parameters:
trigger
- TheTrigger
to enroll.
-
dismiss
Dissmiss aTrigger
from following thisTriggerGroup
.- Parameters:
trigger
- The {link Trigger} to dismiss.
-
initSendable
public void initSendable(edu.wpi.first.util.sendable.SendableBuilder builder) - Specified by:
initSendable
in interfaceedu.wpi.first.util.sendable.Sendable
-