@Override
    public void onAnalog(String name, float value, float tpf) {
        if (isEnabled()) {
            if (canRotate) {
                if (name.equals(CameraInput.CHASECAM_MOVELEFT)) {
                    horizontalRotation -= value * rotationSpeed;
                    rotateCamera();
                } else if (name.equals(CameraInput.CHASECAM_MOVERIGHT)) {
                    horizontalRotation += value * rotationSpeed;
                    rotateCamera();
                } else if (name.equals(CameraInput.CHASECAM_UP)) {
                    verticalRotation += value * rotationSpeed;
                    rotateCamera();
                } else if (name.equals(CameraInput.CHASECAM_DOWN)) {
                    verticalRotation -= value * rotationSpeed;
                    rotateCamera();
                }
            }
            if (name.equals(CameraInput.CHASECAM_ZOOMIN)) {
                zoomCamera(-value * zoomSpeed);
            } else if (name.equals(CameraInput.CHASECAM_ZOOMOUT)) {
                zoomCamera(+value * zoomSpeed);
            }
        }
    }
Registers inputs with the input manager
jme3-core/src/main/java/com/jme3/app/ChaseCameraAppState.java