Manual |
public PointerAndKeyboardConditions RotateCameraConditions { get; set; }
RotateCameraConditions gets or sets conditions from PointerAndKeyboardConditions enum that must be met to rotate the camera.
To specify which pointer or mouse button is used for rotation set RotateCameraConditions to LeftPointerButtonPressed, RightPointerButtonPressed or MiddlePointerButtonPressed.
To specify that a special modifier key must be also pressed, one of the following conditions can be added (with or operator) to the RotateCameraConditions: ShiftKey, AltKey or ControlKey.
To disable the camera rotation set RotateCameraConditions to Disabled.
Default value of RotateCameraConditions is PointerAndKeyboardConditions.LeftPointerButtonPressed.
To specify conditions to move the camera use MoveCameraConditions property. To specify conditions to start quick zooming the camera use QuickZoomConditions property.
The following code sets the camera controller to rotate the camera with pressed left pointer or mouse button and to move the camera with pressed left pointer or mouse button and control key.
PointerCameraController1.RotateCameraConditions = PointerAndKeyboardConditions.LeftPointerButtonPressed; PointerCameraController1.MoveCameraConditions = PointerAndKeyboardConditions.LeftPointerButtonPressed | PointerAndKeyboardConditions.ControlKey;