Class FeedbackBackendDispatcher
The "try each registered IGamepadOutputBackend in order, first one that claims the pad wins" loop shared by VibrationChannel and LedChannel. Generic over the per-backend apply delegate so this dispatcher carries no knowledge of vibration vs. LED payloads.
Inherited Members
Namespace: Serenity.Feedback.Infrastructure.Channels
Assembly: Serenity.UnityFeedback.Infrastructure.dll
Syntax
public static class FeedbackBackendDispatcher
Methods
TryDispatch(IReadOnlyList<IGamepadOutputBackend>, Func<IGamepadOutputBackend, bool>)
Tries tryApply against each backend in backends, in order;
returns true as soon as one claims the pad, false if none do.
Declaration
public static bool TryDispatch(IReadOnlyList<IGamepadOutputBackend> backends, Func<IGamepadOutputBackend, bool> tryApply)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<IGamepadOutputBackend> | backends | |
| Func<IGamepadOutputBackend, bool> | tryApply |
Returns
| Type | Description |
|---|---|
| bool |