Click or drag to resize
Ab4d.SharpEngine logo

InputEventsManager Class

InputEventsManager is a WinUI specific implementation of a generic ManualInputEventsManager. This class simplifies working with pointer and mouse events on 3D objects for WinUI.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesManualInputEventsManager
    Ab4d.SharpEngine.WinUIInputEventsManager

Namespace: Ab4d.SharpEngine.WinUI
Assembly: Ab4d.SharpEngine.WinUI (in Ab4d.SharpEngine.WinUI.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class InputEventsManager : ManualInputEventsManager, 
	IDisposable

The InputEventsManager type exposes the following members.

Constructors
 NameDescription
Public methodInputEventsManager(ISharpEngineSceneView, Control) Constructor that takes SharpEngineSceneView and an optional Control as events source. If later is not specified, then SharpEngineSceneView is used as events source.
Public methodInputEventsManager(SceneView, Control) Constructor that takes SceneView and eventsSourceElement
Top
Properties
 NameDescription
Public propertyEventsSourceElement Gets the Control that is used to subscribe the mouse events (for example a Border that is a parent of a SharpEngineSceneView). If the property is not set in the constructor, SharpEngineSceneView element is used as event source (if not null).
Public propertySharpEngineSceneView Gets the SharpEngineSceneView that is used by this InputEventsManager. This can be null when InputEventsManager is created by SceneView and not SharpEngineSceneView.
Top
Methods
 NameDescription
Public methodCapturePointer CaptureMouse method captures the pointer or mouse events so that even if mouse is moved out of the active window, the mouse events are passed to the active window. This method must be overriden by a derived class to provide any functionality. To end the capture, call the EndPointerCapture method.
(Overrides ManualInputEventsManagerCapturePointer)
Public methodDispose Dispose method unsubscribed this InputEventsManager from all events on the EventsSourceElement.
Public methodEndPointerCapture EndPointerCapture end the pointer or mouse capture that was started by calling the CapturePointer method. This method must be overriden by a derived class to provide any functionality.
(Overrides ManualInputEventsManagerEndPointerCapture)
Top
See Also