Class RealScreenPointerSurface
- Namespace
- LansMap.Interaction
public sealed class RealScreenPointerSurface : IMapPointerSurface
- Inheritance
-
objectRealScreenPointerSurface
- Implements
Constructors
RealScreenPointerSurface(IMapInputSource)
Reads the real screen through one input source.
public RealScreenPointerSurface(IMapInputSource inputSource)
Parameters
inputSourceIMapInputSourceDevice 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
Properties
Source
The device this surface reads its pointer from.
public IMapInputSource Source { get; }
Property Value
Methods
TryGetPointerPosition(out ScreenPoint)
public bool TryGetPointerPosition(out ScreenPoint position)
Parameters
positionScreenPoint