logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AdaptiveTriggerEffect

    DualSense adaptive-trigger effect. Routed through the channel seam to a backend (PcHidAdaptiveTriggerBackend over USB HID on desktop; a PS5-SDK backend on console).

    Inheritance
    object
    AdaptiveTriggerEffect
    Implements
    IFeedbackEffect
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Feedback.Application.Effects
    Assembly: Serenity.Feedback.Application.dll
    Syntax
    public sealed class AdaptiveTriggerEffect : IFeedbackEffect

    Constructors

    AdaptiveTriggerEffect(AdaptiveTriggerSide, AdaptiveTriggerMode, float, float, float, float, bool)

    Initializes a new instance.

    Declaration
    public AdaptiveTriggerEffect(AdaptiveTriggerSide side, AdaptiveTriggerMode mode, float startPosition01, float endPosition01, float strength01, float durationSeconds, bool haveExitTime = true)
    Parameters
    Type Name Description
    AdaptiveTriggerSide side
    AdaptiveTriggerMode mode
    float startPosition01
    float endPosition01
    float strength01
    float durationSeconds
    bool haveExitTime

    Fields

    DurationSeconds

    Declaration
    public readonly float DurationSeconds
    Field Value
    Type Description
    float

    EndPosition01

    Declaration
    public readonly float EndPosition01
    Field Value
    Type Description
    float

    Trigger travel where the effect ends (0..1).

    HaveExitTime

    Declaration
    public readonly bool HaveExitTime
    Field Value
    Type Description
    bool

    When true the channel resets the trigger after its duration; when false the effect persists until another effect overwrites it (e.g. an Off-mode effect).

    Kind

    Declaration
    public const string Kind = "adaptive_trigger"
    Field Value
    Type Description
    string

    Stable kind id for this effect.

    Mode

    Declaration
    public readonly AdaptiveTriggerMode Mode
    Field Value
    Type Description
    AdaptiveTriggerMode

    Side

    Declaration
    public readonly AdaptiveTriggerSide Side
    Field Value
    Type Description
    AdaptiveTriggerSide

    StartPosition01

    Declaration
    public readonly float StartPosition01
    Field Value
    Type Description
    float

    Trigger travel where the effect begins (0..1).

    Strength01

    Declaration
    public readonly float Strength01
    Field Value
    Type Description
    float

    Effect strength (0..1). Scaled by global intensity.

    Properties

    BypassesGlobalGate

    Declaration
    public bool BypassesGlobalGate { get; }
    Property Value
    Type Description
    bool

    When true, this effect ignores the global vibration enable/intensity settings — it is dispatched even when feedback is disabled and is never passed through Scaled(float). Reserved for non-haptic effects (e.g. audio) that must not be silenced or attenuated by the controller-vibration toggle. Haptic effects return false.

    EffectKind

    Declaration
    public string EffectKind { get; }
    Property Value
    Type Description
    string

    Stable identifier of the effect type (e.g. "vibration"). Used for logging/diagnostics.

    Methods

    Scaled(float)

    Returns a copy of this effect scaled by the global intensity multiplier (0..1).

    Declaration
    public IFeedbackEffect Scaled(float globalIntensity)
    Parameters
    Type Name Description
    float globalIntensity

    Global multiplier; values outside 0..1 are clamped by the effect.

    Returns
    Type Description
    IFeedbackEffect

    A new, scaled effect of the same type.

    Implements

    IFeedbackEffect
    In this article
    © 2026 Serenity. All Rights Reserved