Mouse leaves the screen with MouseAxisTrigger

Hello all,

I’ve create a Class for rotating and following a spatial and its works. I used this method :


public void onAnalog(String name, float value, float tpf) {

if (name.equals(“mouseLeft”)) {

angleB -= 10value;

} else if (name.equals(“mouseRight”)) {

angleB += 10



private void registerWithInput(InputManager inputManager) {

String[] inputs = {“mouseLeft”, “mouseRight”};

this.inputManager = inputManager;

inputManager.addMapping(“mouseLeft”, new MouseAxisTrigger(0, true));

inputManager.addMapping(“mouseRight”, new MouseAxisTrigger(0, false));

inputManager.addListener(this, inputs);


But the cursor appears on the screen and when I leave the screen the camera will not turn.

How to not break the screen and the cursor disappears?

If you need the mouse cursor you can do it like its done here. You have to press the button to rotate the view.

1 Like

The link is broke. Can u corrige this ?

I fixed the link

I found what i’ve want thanks for all.

The solution was just :