Package edu.wpi.first.wpilibj.buttons
Class InternalButton
- java.lang.Object
-
- edu.wpi.first.wpilibj.buttons.Trigger
-
- edu.wpi.first.wpilibj.buttons.Button
-
- edu.wpi.first.wpilibj.buttons.InternalButton
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.buttons.Trigger
Trigger.ButtonScheduler
-
-
Constructor Summary
Constructors Constructor Description InternalButton()Creates an InternalButton that is not inverted.InternalButton(boolean inverted)Creates an InternalButton which is inverted depending on the input.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanget()Returns whether or not the trigger is active.voidsetInverted(boolean inverted)voidsetPressed(boolean pressed)-
Methods inherited from class edu.wpi.first.wpilibj.buttons.Button
cancelWhenPressed, toggleWhenPressed, whenPressed, whenReleased, whileHeld
-
Methods inherited from class edu.wpi.first.wpilibj.buttons.Trigger
cancelWhenActive, initSendable, toggleWhenActive, whenActive, whenInactive, whileActive
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.wpi.first.wpilibj.Sendable
addChild, getName, getSubsystem, setName, setName, setName, setName, setSubsystem
-
-
-
-
Constructor Detail
-
InternalButton
public InternalButton()
Creates an InternalButton that is not inverted.
-
InternalButton
public InternalButton(boolean inverted)
Creates an InternalButton which is inverted depending on the input.- Parameters:
inverted- if false, then this button is pressed when set to true, otherwise it is pressed when set to false.
-
-