Class WsJoystickButton
- java.lang.Object
-
- org.wildstang.framework.io.inputs.Input
-
- org.wildstang.framework.io.inputs.DigitalInput
-
- org.wildstang.hardware.roborio.inputs.WsJoystickButton
-
public class WsJoystickButton extends DigitalInput
Reads a controller button.
-
-
Constructor Summary
Constructors Constructor Description WsJoystickButton(java.lang.String p_name, int p_port, int p_buttonIndex)
Construct the button.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
readRawValue()
Reads the value from the button.-
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 button.- Specified by:
readRawValue
in classDigitalInput
- Returns:
- Raw button value.
-
-