Class WsDPadButton
- java.lang.Object
-
- org.wildstang.framework.io.inputs.Input
-
- org.wildstang.framework.io.inputs.DigitalInput
-
- org.wildstang.hardware.roborio.inputs.WsDPadButton
-
public class WsDPadButton extends DigitalInput
Reads the d-pad on playstation controllers.
-
-
Constructor Summary
Constructors Constructor Description WsDPadButton(java.lang.String p_name, int p_port, int p_buttonIndex)
Construct the d-pad button.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
readRawValue()
Reads the value from the d-pad and appropriately sets button press.-
Methods inherited from class org.wildstang.framework.io.inputs.DigitalInput
getValue, readDataFromInput, setValue
-
Methods inherited from class org.wildstang.framework.io.inputs.Input
addInputListener, disable, enable, getInputListeners, getName, hasValueChanged, isEnabled, notifyListeners, removeAllListeners, removeInputListener, setValueChanged, update
-
-
-
-
Method Detail
-
readRawValue
protected boolean readRawValue()
Reads the value from the d-pad and appropriately sets button press.- Specified by:
readRawValue
in classDigitalInput
- Returns:
- True if pressed.
-
-