@Override
	public double getJoystickAxis(int joystick, int axis) {
		int numAxes = getNumJoystickAxes(joystick);
		if (axis < 0 || axis >= numAxes) {
			return 0.0;
		}
		return (double) joystickAxes[joystick].get(axis);
	}