public void setEnabled(boolean enable){
        if (enabled && !enable){
            if (inputManager!= null && (!dragToRotate || (dragToRotate && canRotate))){
                inputManager.setCursorVisible(true);
            }
        }
        enabled = enable;
    }
Enable or disable this controller. When disabled, the controller ignored
input.

@param enable true to enable, false to disable
jme3-core/src/main/java/com/jme3/input/FlyByCamera.java