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 the primary button.
var operator = _this._operatorManager.getOperator(Communicator.OperatorId.Orbit);
operator.setPrimaryButton(Communicator.Button.Right);
operator.addMapping(Communicator.Button.Right);
setPrimaryButton
CameraOrbitOperator — HOOPS Communicator documentation
Sample code:
operator_orbit_primary_button.zip (1.8 KB)