add pluggable mouse control

This commit is contained in:
Stewart Allen 2020-11-17 20:26:13 -05:00
commit ba56b36af2
2 changed files with 23 additions and 3 deletions

View file

@ -844,6 +844,13 @@
save: function() { return viewControl.getPosition(true) },
panTo: function(x,y,z) { tweenCamPan(x,y,z) },
setZoom: function(r,v) { viewControl.setZoom(r,v) },
setCtrl: function(name) {
if (name === 'onshape') {
viewControl.setMouse(viewControl.mouseOnshape);
} else {
viewControl.setMouse(viewControl.mouseDefault);
}
},
getFPS: function() { return fps }
},