protected final class Joystick.JoystickAxis extends java.lang.Object implements HIDAxis
| Modifier and Type | Field and Description |
|---|---|
private double |
m_backlash |
private int |
m_channel
The m_channel.
|
private double |
m_deadband
The m_dead band.
|
private double |
m_fineConrol |
private boolean |
m_inverted
The m_invert.
|
private double |
m_m1 |
private double |
m_m2 |
private double |
m_rampEnd |
| Constructor and Description |
|---|
JoystickAxis(int axis)
Instantiates a new joystick axis.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
calculate() |
double |
get()
Get the Value of the Axis.
|
void |
setBacklash(double value) |
void |
setDeadband(double value)
Set the Deadband of the Axis.
|
void |
setFineControl(double control) |
void |
setInverted(boolean inverted)
Invert the Axis.
|
void |
setRampEnd(double end) |
private boolean m_inverted
private double m_deadband
private double m_backlash
private double m_fineConrol
private double m_rampEnd
private double m_m1
private double m_m2
private final int m_channel
public JoystickAxis(int axis)
axis - the axispublic double get()
get in interface NumberSourceget in interface HIDAxispublic void setInverted(boolean inverted)
setInverted in interface HIDAxispublic void setDeadband(double value)
setDeadband in interface HIDAxisvalue - the deadband value of the axis.public void setRampEnd(double end)
setRampEnd in interface HIDAxispublic void setBacklash(double value)
setBacklash in interface HIDAxispublic void setFineControl(double control)
setFineControl in interface HIDAxisprivate void calculate()