From this interesting discussion I got curious about seeing if I could hook up my SpaceMouse to work in SketchUp Web.

Unfortunately I was unable to find a way to change the camera position (yet).

In another 3D web app that we use for quoting I was able to manipulate the camera, but I’m not quite sure how to calculate all the moves from the six axes.

So I can set the camera position and target like this, but I’m not sure how to calculate the values.

```
function updateController() {
axes = navigator.getGamepads()[1].axes
pan_lr_delta = axes[0];
pan_ud_delta = axes[2];
zoom_delta = axes[1];
rotate_ud_delta = axes[3];
rotate_lr_delta = axes[4];
orbit_delta = axes[5];
//Set the camera target and position
//???
camera.position.set(x, y, z,);
controls.target.set(x, y, z);
controls.update();
requestAnimationFrame(updateController);
}
```

PS: @TheOnlyAaron Is there any chance that the same thing could be done in SketchUp Web? It seems like it would be trivial to implement. Obviously there is a camera control in there somewhere already.