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.
Code Block |
---|
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:
...
Learn more in our forum post.
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...