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

Version 1 Next »

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/build/api_ref/typedoc/classes/communicator.operator.cameraorbitoperator.html#setprimarybutton

Sample code:

  • No labels