Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

You can set the primary mouse button using Communicator.Operator.CameraOrbitOperator.setPrimaryButton to orbit around the selected point on the model with this button. The default button is middle.
When you want to change the primary button to right button, add mapping for right button and set primary button.

var operator = _this._operatorManager.getOperator(Communicator.OperatorId.Orbit);
operator.setPrimaryButton(Communicator.Button.Right);
operator.addMapping(Communicator.Button.Right);

setPrimaryButton https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Operator.CameraOrbitOperator.html?highlight=setprimarybutton#setprimarybutton

Sample code:

  • No labels