Normally the mouse is locked to the window and is not visible; controlling the camera in the style of first person shooters.
My understanding is you unlocking the mouse from a JMonkey window and make it visible by calling
inputManager.setCursorVisible(true);
However this has no visible effect. This is demonstrated within the following example program:
public class Main extends SimpleApplication {
public static void main(String[] args) {
Main app = new Main();
app.start();
}
@Override
public void simpleInitApp() {
Box b = new Box(Vector3f.ZERO, 1, 1, 1);
Geometry geom = new Geometry("Box", b);
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
mat.setColor("Color", ColorRGBA.Blue);
geom.setMaterial(mat);
inputManager.setCursorVisible(true);
rootNode.attachChild(geom);
}
}
Calling flyCam.setDragToRotate(true);
unlocks the mouse but also causes a number of DragToRotate behaviours (unsurpisingly)
The solution to this seems to be that the flycam must also be disabled. So
Or as a full example