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