Class WsJoystickButton
java.lang.Object
org.wildstang.framework.io.inputs.Input
org.wildstang.framework.io.inputs.DigitalInput
org.wildstang.hardware.roborio.inputs.WsJoystickButton
Reads a controller button.
-
Constructor Summary
ConstructorsConstructorDescriptionWsJoystickButton(String p_name, int p_port, int p_buttonIndex) Construct the button. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReads the value from the button.Methods inherited from class org.wildstang.framework.io.inputs.DigitalInput
getValue, readDataFromInput, setValueMethods inherited from class org.wildstang.framework.io.inputs.Input
addInputListener, disable, enable, getInputListeners, getName, hasValueChanged, isEnabled, notifyListeners, removeAllListeners, removeInputListener, setValueChanged, update
-
Constructor Details
-
WsJoystickButton
Construct the button.- Parameters:
p_name- Descriptive name of the button.p_port- Controller port as defined in the driver station.p_buttonIndex- Controller button index.
-
-
Method Details
-
readRawValue
protected boolean readRawValue()Reads the value from the button.- Specified by:
readRawValuein classDigitalInput- Returns:
- Raw button value.
-