Class WsDPadButton
java.lang.Object
org.wildstang.framework.io.inputs.Input
org.wildstang.framework.io.inputs.DigitalInput
org.wildstang.hardware.roborio.inputs.WsDPadButton
Reads the d-pad on playstation controllers.
-
Constructor Summary
ConstructorsConstructorDescriptionWsDPadButton(String p_name, int p_port, int p_buttonIndex) Construct the d-pad button. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReads the value from the d-pad and appropriately sets button press.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
-
WsDPadButton
Construct the d-pad button.- Parameters:
p_name- Descriptive name of the button.p_port- Controller port as defined in the driver station.p_buttonIndex- Button index of the d-pad.
-
-
Method Details
-
readRawValue
protected boolean readRawValue()Reads the value from the d-pad and appropriately sets button press.- Specified by:
readRawValuein classDigitalInput- Returns:
- True if pressed.
-