@Override
    public Vector2f getCursorPosition() {

        if (environment != null){
            if (environment.getApplication() != null){
                 if( environment.isInVR() ) {
                        return cursorPos;
                    }

                    return environment.getApplication().getInputManager().getCursorPosition();
            } else {
                throw new IllegalStateException("This VR environment is not attached to any application.");
            }
        } else {
            throw new IllegalStateException("This VR view manager is not attached to any VR environment.");
        }
    }
Create a new AbstractVRMouseManager attached to the given {@link VREnvironment VR environment}.
@param environment the {@link VREnvironment VR environment} that this manager is attached to.
jme3-vr/src/main/java/com/jme3/input/vr/AbstractVRMouseManager.java