flyCam is enabled and mouse pointer is showing

I dont know how to hide mouse pointer when flyCam is enabled…
I tried this but it is not hiding mouse :

   @Override
   public void simpleInitApp() {
         flyCam.setEnabled(true);
         inputManager.setCursorVisible(false); 
   }

simpleInitApp() is too soon… it’s called before anything else ever.

…but if you have the fly cam already and haven’t removed it then it should already be doing the cursor thing correctly. So something else you have is turning it on.

Create a simple test app. You’ll see.

thats right GuiGlobals.initialize(this);.
but how to disable mouse cursor in lemur?

http://jmonkeyengine-contributions.github.io/Lemur/javadoc/Lemur/com/simsilica/lemur/GuiGlobals.html#setCursorEventsEnabled(boolean)

1 Like