Universal Camera multi touch disable

Hi, I’m using a Universal camera with only mouse input:
camera.inputs = new BABYLON.FreeCameraInputsManager(camera);
camera.inputs.addMouse();
I want the same behaviour on mouse and touch so i’m just using “add mouse” which also includes touch per the docs:
addMouse(touchEnabled?: boolean): [FreeCameraInputsManager]
##### Optional touchEnabled: boolean
if the FreeCameraMouseInput should support touch (default: true)
It works except when I put down two fingers on an ipad it moves all over the place because I think it can’t distinguish the primary input. I am messing around with event.isPrimary to detach the camera when there is more than one input with some success. …any ideas?

Seems fixed by testing for event.isPrimary onPointerDown and detaching the camera

2 Likes