Class PointerDispatcher
Inheritance
PointerDispatcher
Namespace: Evergine.Common.Input.Pointer
Assembly: Evergine.Common.dll
Syntax
public abstract class PointerDispatcher
Constructors
PointerDispatcher()
Initializes a new instance of the PointerDispatcher class.
Declaration
public PointerDispatcher()
Properties
Points
Declaration
public IList<PointerPoint> Points { get; }
Property Value
Type | Description |
---|---|
IList<PointerPoint> |
Methods
DispatchEvents()
Dispatches accumulated events.
Declaration
public virtual void DispatchEvents()
HandlePointerDown(long, Point)
Handles the pointer-down event.
Declaration
protected void HandlePointerDown(long pointId, Point position)
Parameters
Type | Name | Description |
---|---|---|
long | pointId | The point ID. |
Point | position | The point's position. |
HandlePointerMove(long, Point)
Handles the pointer move event.
Declaration
protected void HandlePointerMove(long pointId, Point position)
Parameters
Type | Name | Description |
---|---|---|
long | pointId | The point ID. |
Point | position | The pointer position. |
HandlePointerUp(long, Point)
Handles the pointer-up event.
Declaration
protected void HandlePointerUp(long pointId, Point position)
Parameters
Type | Name | Description |
---|---|---|
long | pointId | The point ID. |
Point | position | The pointer's position. |
ResetPointersStatus()
Resets the current button status for the dispatcher.
Declaration
protected virtual void ResetPointersStatus()
Events
PointerDown
Declaration
public event EventHandler<PointerEventArgs> PointerDown
Event Type
Type | Description |
---|---|
EventHandler<PointerEventArgs> |
PointerMove
Occurs when an existing point changes its position.
Declaration
public event EventHandler<PointerEventArgs> PointerMove
Event Type
Type | Description |
---|---|
EventHandler<PointerEventArgs> |
PointerUp
Declaration
public event EventHandler<PointerEventArgs> PointerUp
Event Type
Type | Description |
---|---|
EventHandler<PointerEventArgs> |