Table of Contents

Interface IPointerDevice

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
Inherited Members

Properties

DownPointers

The index of the pointers that are down

IReadOnlySet<PointerPoint> DownPointers { get; }

Property Value

IReadOnlySet<PointerPoint>

PressedPointers

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

IReadOnlySet<PointerPoint> PressedPointers { get; }

Property Value

IReadOnlySet<PointerPoint>

ReleasedPointers

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

IReadOnlySet<PointerPoint> ReleasedPointers { get; }

Property Value

IReadOnlySet<PointerPoint>

SurfaceAspectRatio

The aspect ratio of the touch surface area

float SurfaceAspectRatio { get; }

Property Value

float

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

Vector2

Events

SurfaceSizeChanged

Raised when the surface size of this pointer changed

event EventHandler<SurfaceSizeChangedEventArgs> SurfaceSizeChanged

Event Type

EventHandler<SurfaceSizeChangedEventArgs>