Class MapInputSourceComponent
- Namespace
- LansMap.Map.Views.Components
Attach a subclass to a map to feed it mouse, keyboard and touch from your own input stack instead of Unity's.
public abstract class MapInputSourceComponent : MapComponentBase
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourMapInputSourceComponent
- Derived
- Inherited Members
Remarks
Source is read once per map, on the first frame anything asks the map for its input, and the map holds that instance for its lifetime.
Properties
Source
The device this component answers with. Polled every frame once the map has taken it, so it must not allocate.
public abstract IMapInputSource Source { get; }