Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    PointerSimulated Class

    Namespace: Stride.Input
    Assembly: Stride.Input.dll

    Simulation of PointerEvents

    System.Object → PointerDeviceBase → PointerSimulated
    Derived from PointerSimulated:

    public class PointerSimulated : PointerDeviceBase, IPointerDevice, IInputDevice
    Name Description
    Constructors
    PointerSimulated(InputSourceSimulated)
    Properties
    Id
    Name
    PointerState
    Source
    Methods
    CancelPointer(Vector2, Int32)
    MovePointer(Vector2, Int32)
    PressPointer(Vector2, Int32)
    ReleasePointer(Vector2, Int32)
    SimulatePointer(PointerEventType, Vector2, Int32)
    Update(List<InputEvent>)
    | Improve this Doc View Source

    Constructors


    PointerSimulated(InputSourceSimulated)

    public PointerSimulated(InputSourceSimulated source)
    Parameters
    Type Name Description
    InputSourceSimulated source
    | Improve this Doc View Source

    Properties


    Id

    public override Guid Id { get; }
    Property Value
    Type Description
    System.Guid
    Overrides
    PointerDeviceBase.Id

    Name

    public override string Name { get; }
    Property Value
    Type Description
    System.String
    Overrides
    PointerDeviceBase.Name

    PointerState

    public PointerDeviceState PointerState { get; }
    Property Value
    Type Description
    PointerDeviceState

    Source

    public override IInputSource Source { get; }
    Property Value
    Type Description
    IInputSource
    Overrides
    PointerDeviceBase.Source
    | Improve this Doc View Source

    Methods


    CancelPointer(Vector2, Int32)

    public void CancelPointer(Vector2 position, int id = 0)
    Parameters
    Type Name Description
    Vector2 position
    System.Int32 id

    MovePointer(Vector2, Int32)

    public void MovePointer(Vector2 position, int id = 0)
    Parameters
    Type Name Description
    Vector2 position
    System.Int32 id

    PressPointer(Vector2, Int32)

    public void PressPointer(Vector2 position, int id = 0)
    Parameters
    Type Name Description
    Vector2 position
    System.Int32 id

    ReleasePointer(Vector2, Int32)

    public void ReleasePointer(Vector2 position, int id = 0)
    Parameters
    Type Name Description
    Vector2 position
    System.Int32 id

    SimulatePointer(PointerEventType, Vector2, Int32)

    public void SimulatePointer(PointerEventType pointerEventType, Vector2 position, int id = 0)
    Parameters
    Type Name Description
    PointerEventType pointerEventType
    Vector2 position
    System.Int32 id

    Update(List<InputEvent>)

    public override void Update(List<InputEvent> inputEvents)
    Parameters
    Type Name Description
    System.Collections.Generic.List<InputEvent> inputEvents
    Overrides
    PointerDeviceBase.Update(List<InputEvent>)

    Inherited Members

    PointerDeviceBase.SurfaceSize
    PointerDeviceBase.SurfaceAspectRatio
    PointerDeviceBase.PressedPointers
    PointerDeviceBase.ReleasedPointers
    PointerDeviceBase.DownPointers
    PointerDeviceBase.SurfaceSizeChanged
    PointerDeviceBase.Priority
    PointerDeviceBase.SetSurfaceSize(Vector2)
    PointerDeviceBase.Normalize(Vector2)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation