|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.first.wpilibj.buttons.Button
edu.wpi.first.wpilibj.buttons.InternalButton
public class InternalButton
This class is intended to be used within a program. The programmer can manually set its value. Also includes a setting for whether or not it should invert its value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.buttons.Button |
---|
Button.ButtonScheduler |
Constructor Summary | |
---|---|
InternalButton()
Creates an InternalButton that is not inverted. |
|
InternalButton(boolean inverted)
Creates an InternalButton which is inverted depending on the input. |
Method Summary | |
---|---|
boolean |
get()
Returns whether or not the button is pressed. |
void |
setInverted(boolean inverted)
|
void |
setPressed(boolean pressed)
|
Methods inherited from class edu.wpi.first.wpilibj.buttons.Button |
---|
getTable, getType, whenPressed, whenReleased, whileHeld |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InternalButton()
public InternalButton(boolean inverted)
inverted
- if false, then this button is pressed when set to true, otherwise it is pressed when set to false.Method Detail |
---|
public void setInverted(boolean inverted)
public void setPressed(boolean pressed)
public boolean get()
Button
get
in class Button
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |