public class NetJoystick extends java.lang.Object implements JoystickInterface
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
key |
protected double |
xVal |
protected double |
yVal |
protected double |
zVal |
Constructor and Description |
---|
NetJoystick(java.lang.String key)
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
refresh()
Refresh the value of this NetJoystick.
|
protected double xVal
protected double yVal
protected double zVal
protected java.lang.String key
public NetJoystick(java.lang.String key)
key
- A unique key to refer to this NetJoystickpublic void refresh()
public double getX()
JoystickInterface
getX
in interface JoystickInterface
public double getY()
JoystickInterface
getY
in interface JoystickInterface
public double getZ()
JoystickInterface
getZ
in interface JoystickInterface