@Override
    public void onAction(String name, boolean value, float tpf) {
        if (!enabled)
            return;

        if (name.equals(CameraInput.FLYCAM_ROTATEDRAG) && dragToRotate) {
            canRotate = value;
            inputManager.setCursorVisible(!value);
        } else if (name.equals(CameraInput.FLYCAM_INVERTY)) {
            // Invert the "up" direction.
            if (!value) {
                invertY = !invertY;
            }
        }
    }
Callback to notify this controller of an action input event.

@param name name of the input event
@param value true if the action is "pressed", false otherwise
@param tpf time per frame (in seconds)
jme3-core/src/main/java/com/jme3/input/FlyByCamera.java