public class Joystick extends java.lang.Object implements JoystickInterface
Modifier and Type | Field and Description |
---|---|
protected edu.wpi.first.wpilibj.Joystick |
joy |
Constructor and Description |
---|
Joystick()
Initializes a Joystick without creating an internal WPILib Joystick.
|
Joystick(int port)
Standard constructor for making a Joystick.
|
Modifier and Type | Method and Description |
---|---|
double |
getRawAxis(int axis) |
protected edu.wpi.first.wpilibj.Joystick |
getWPIJoystick() |
double |
getX()
Gets the X axis of the Joystick.
|
double |
getY()
Gets the Y axis of the Joystick.
|
double |
getZ()
Gets the Z axis of the Joystick.
|
public Joystick(int port)
port
- The USB port the Joystick is plugged into.public Joystick()
protected edu.wpi.first.wpilibj.Joystick getWPIJoystick()
public double getRawAxis(int axis)
public double getX()
JoystickInterface
getX
in interface JoystickInterface
public double getY()
JoystickInterface
getY
in interface JoystickInterface
public double getZ()
JoystickInterface
getZ
in interface JoystickInterface