Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IPointerDevice Interface

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

    Provides an interface for interacting with pointer devices, this can be a mouse, pen, touch screen, etc.

    public interface IPointerDevice : IInputDevice
    Name Description
    Properties
    DownPointers

    The index of the pointers that are down

    PressedPointers

    The index of the pointers that have been pressed since the last frame

    ReleasedPointers

    The index of the pointers that have been released since the last frame

    SurfaceAspectRatio

    The aspect ratio of the touch surface area

    SurfaceSize

    The size of the surface used by the pointer, for a mouse this is the size of the window, for a touch device, the size of the touch area, etc.

    Events
    SurfaceSizeChanged

    Raised when the surface size of this pointer changed

    | Improve this Doc View Source

    Properties


    DownPointers

    The index of the pointers that are down

    IReadOnlySet<PointerPoint> DownPointers { get; }
    Property Value
    Type Description
    IReadOnlySet<PointerPoint>

    PressedPointers

    The index of the pointers that have been pressed since the last frame

    IReadOnlySet<PointerPoint> PressedPointers { get; }
    Property Value
    Type Description
    IReadOnlySet<PointerPoint>

    ReleasedPointers

    The index of the pointers that have been released since the last frame

    IReadOnlySet<PointerPoint> ReleasedPointers { get; }
    Property Value
    Type Description
    IReadOnlySet<PointerPoint>

    SurfaceAspectRatio

    The aspect ratio of the touch surface area

    float SurfaceAspectRatio { get; }
    Property Value
    Type Description
    System.Single

    SurfaceSize

    The size of the surface used by the pointer, for a mouse this is the size of the window, for a touch device, the size of the touch area, etc.

    Vector2 SurfaceSize { get; }
    Property Value
    Type Description
    Vector2
    | Improve this Doc View Source

    Events


    SurfaceSizeChanged

    Raised when the surface size of this pointer changed

    event EventHandler<SurfaceSizeChangedEventArgs> SurfaceSizeChanged
    Event Type
    Type Description
    System.EventHandler<SurfaceSizeChangedEventArgs>

    Inherited Members

    IInputDevice.Name
    IInputDevice.Id
    IInputDevice.Priority
    IInputDevice.Source
    IInputDevice.Update(List<InputEvent>)

    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