add pluggable mouse control
This commit is contained in:
parent
7b0a85b9a2
commit
ba56b36af2
2 changed files with 23 additions and 3 deletions
|
|
@ -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 }
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue