Click or drag to resize
Ab4d.SharpEngine logo

ManualPointerCameraController Class

ManualPointerCameraController is a camera controller that can control the camera by pointer or mouse events. Because ManualPointerCameraController is cross-platform it does not provide any actual pointer or mouse binding. Therefore, user must manually call ProcessPointerPressed(Vector2, PointerButtons, KeyboardModifiers), ProcessPointerReleased(PointerButtons, KeyboardModifiers), ProcessPointerMoved(Vector2, PointerButtons, KeyboardModifiers) and ProcessPointerWheelChanged(Vector2, Single) methods.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class ManualPointerCameraController : CameraController

The ManualPointerCameraController type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyCode exampleMoveCameraConditions Gets or sets conditions from PointerAndKeyboardConditions enum that must be met to move the camera. Default value is PointerAndKeyboardConditions.LeftPointerButtonPressed and PointerAndKeyboardConditions.ControlKey.
Public propertyCode exampleQuickZoomConditions 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.
Public propertyCode exampleRotateCameraConditions Gets or sets conditions from PointerAndKeyboardConditions enum that must be met to rotate the camera. Default value is PointerAndKeyboardConditions.LeftPointerButtonPressed.
Top
Methods
 NameDescription
Protected methodIsKeyboardConditionTrue IsKeyboardConditionTrue returns true when the correct keyboard modifier is pressed according to the specified conditions (only keyboard part of the conditions are checked).
Protected methodIsPointerButtonsConditionTrue IsPointerButtonsConditionTrue returns true when the correct pointer or mouse button is pressed according to the specified conditions (only pointer part of the conditions are checked; keyboard part is checked in IsKeyboardConditionTrue).
Public methodProcessPointerMoved ProcessPointerMoved method processes the pointer or mouse moved event and returns true if the event is handled by this method.
Protected methodProcessPointerMovedInt Protected ProcessPointerMovedInt
Public methodProcessPointerPressed ProcessPointerPressed method processes pointer or mouse pressed event and returns true if the event is handled by this method.
Public methodProcessPointerReleased ProcessPointerReleased method processes pointer or mouse down event and returns true if the event is handled by this method.
Public methodProcessPointerWheelChanged ProcessPointerWheelChanged method processes the pointer or mouse wheel changed event and returns true if the event is handled by this method.
Protected methodStartPointerProcessing StartPointerProcessing is called when the correct pointer button and keyboard is pressed to start rotating or moving the camera.
Top
See Also