Left mousebutton connects itself to the camera

I wanted to use the right mousebutton (MouseInput.BUTTON_LEFT) to move the camera, so I made a modified version of the FlyByCamera class and turned off the default one with flyCam.setEnabled(false).



Now my modified version is working well but I can still move the camera with the lmb, which is pretty odd because when I do ctrl-f in my modified class and search for ‘MouseInput.BUTTON_LEFT’ I get nothing and when I don’t instantiate the modified class and only disable the default flyCam the lmb is disabled like it should be.

Still the mapping of the flyCam is in the inputmanager, you also gotta look for that string.

1 Like

I thought that using the same map would override, thanks! :smiley: