Search Results for

    Show / Hide Table of Contents

    Class PointerDispatcher

    Dispatches pointer events associated with a Surface or a Window.

    Inheritance
    object
    PointerDispatcher
    AndroidTouchDispatcher
    MouseDispatcher
    FormsTouchDispatcher
    SDLTouchDispatcher
    WPFTouchDispatcher
    WebTouchDispatcher
    WinUICoreWindowTouchDispatcher
    IOSPointerDispatcher
    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

    Gets the points detected inside the Surface or Window.

    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

    Occurs when a new point is detected on the Surface or Window.

    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

    Occurs when an existing point leaves the Surface or Window.

    Declaration
    public event EventHandler<PointerEventArgs> PointerUp
    Event Type
    Type Description
    EventHandler<PointerEventArgs>

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX