Table of Contents

Class RealScreenPointerSurface

Namespace
LansMap.Interaction
public sealed class RealScreenPointerSurface : IMapPointerSurface
Inheritance
object
RealScreenPointerSurface
Implements

Constructors

RealScreenPointerSurface(IMapInputSource)

Reads the real screen through one input source.

public RealScreenPointerSurface(IMapInputSource inputSource)

Parameters

inputSource IMapInputSource

Device to read the pointer from; null reads Unity's own.

Fields

Instance

The real screen read through Unity's own mouse and touch. Used when a consumer has no map to take an input source from.

public static readonly RealScreenPointerSurface Instance

Field Value

RealScreenPointerSurface

Properties

Source

The device this surface reads its pointer from.

public IMapInputSource Source { get; }

Property Value

IMapInputSource

Methods

TryGetPointerPosition(out ScreenPoint)

public bool TryGetPointerPosition(out ScreenPoint position)

Parameters

position ScreenPoint

Returns

bool