logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    FeedbackBackendDispatcher
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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
    In this article
    © 2026 Serenity. All Rights Reserved