Hi, I am new to babylon and am using the ArcRotateCamera in react. It’s functionality seems fine but I need to write my own custom inputs to switch modes from panning mode to rotate mode to zoom mode using buttons on the screen. I have a zoom bar to control the zooming. I have created a class for input controls with methods as instructed in the documentation but nothing seems to work when I try moving my mouse around the canvas.
Here is how I am trying to attach the controls.
const cam = this._scene.activeCamera cam.attachControl(this._canvas) cam.inputs.clear() cam.inputs.add(new CameraInput(this.store)) cam.inputs.add(new ArcRotateCameraMouseWheelInput()) cam.inputs.attachInput(camera.inputs.attached.pointers) cam.inputs.attachInput(camera.inputs.attached.mousewheel)