@Override
    public void onAnalog(String name, float value, float tpf) {
        final float CHANGE_VALUE = tpf * 10;
        float newFov = cam.getFov();
        switch (name) {
            case FOV_IN:
                newFov -= CHANGE_VALUE;
                break;
            case FOV_OUT:
                newFov += CHANGE_VALUE;
                break;
        }
        if (newFov > 0 && newFov != cam.getFov()) {
            cam.setFov(newFov);
        }
    }
Tests the setting of the FOV and aspect ratios.

@author Markil 3
jme3-examples/src/main/java/jme3test/renderer/TestAspectFov.java