Click or drag to resize
Ab4d.SharpEngine logo

ManualPointerCameraControllerQuickZoomConditions Property

Gets or sets conditions from PointerAndKeyboardConditions enum that must be met to start quick zooming - quickly zooming in and out with moving the pointer or mouse forward and backward. Default value is PointerAndKeyboardConditions.Disabled.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public PointerAndKeyboardConditions QuickZoomConditions { get; set; }

Property Value

PointerAndKeyboardConditions
Remarks

QuickZoomConditions gets or sets conditions from PointerAndKeyboardConditions enum that must be met to start quick zooming - quickly zooming in and out with moving the pointer or mouse forward and backward.

To specify which pointer or mouse button is used for quick zooming set QuickZoomConditions 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 QuickZoomConditions: ShiftKey, AltKey or ControlKey.

To disable the quick zooming set QuickZoomConditions to Disabled.

Default value of QuickZoomConditions is PointerAndKeyboardConditions.Disabled.

To specify conditions to rotate the camera use RotateCameraConditions property. To specify conditions to move the camera use MoveCameraConditions property.

Example

The following code sets the camera controller to start quick zooming when both left and right pointer or mouse buttons are pressed.

C#
PointerCameraController1.QuickZoomConditions = PointerAndKeyboardConditions.LeftPointerButtonPressed | PointerAndKeyboardConditions.RightPointerButtonPressed;
See Also