Interface IInputSource
- Namespace
- MoonBark.GridPlacement.Core.Services.Targeting
- Assembly
- MoonBark.GridPlacement.Core.dll
Represents an input source that drives target position updates. Different implementations handle different input devices (mouse, gamepad, touch, AI agents).
public interface IInputSource
Properties
IsActive
Gets a value indicating whether this input source is currently active.
bool IsActive { get; }
Property Value
SourceType
Gets the type of input source.
InputSourceType SourceType { get; }
Property Value
Methods
GetCurrentTargetPosition()
Gets the current target position from this input source.
CoreVector2I GetCurrentTargetPosition()
Returns
- CoreVector2I
Events
TargetPositionChanged
Raised when the target position changes from this input source.
event Action<CoreVector2I>? TargetPositionChanged
Event Type
- Action<CoreVector2I>