Interface IAdaptiveTriggerBackend
Seam for DualSense adaptive-trigger output. The default registered backend is NullAdaptiveTriggerBackend (no-op) until a real PS5-SDK or PC-HID backend is available.
Namespace: Serenity.Feedback.Infrastructure.AdaptiveTrigger
Assembly: Serenity.UnityFeedback.Infrastructure.dll
Syntax
public interface IAdaptiveTriggerBackend
Remarks
Intentionally Unity/HID-local: implementations talk directly to a platform SDK (PS5) or a raw USB
HID report (PC), which are hardware-protocol strategies rewritten per engine regardless of any
Business abstraction. Only the Apply/Reset effect shape (FeedbackTarget,
AdaptiveTriggerEffect) is Business-facing, via IFeedbackChannel; this backend
seam itself has no Business port.
Properties
IsSupported
Declaration
bool IsSupported { get; }
Property Value
| Type | Description |
|---|---|
| bool | True when this backend can actually actuate adaptive triggers on the current platform. |
Methods
Apply(FeedbackTarget, AdaptiveTriggerEffect)
Applies the adaptive-trigger effect to the resolved target device.
Declaration
void Apply(FeedbackTarget target, AdaptiveTriggerEffect effect)
Parameters
| Type | Name | Description |
|---|---|---|
| FeedbackTarget | target | The feedback target to actuate. |
| AdaptiveTriggerEffect | effect | The scaled adaptive-trigger effect to apply. |
Reset(FeedbackTarget)
Resets the adaptive trigger state on the resolved target device.
Declaration
void Reset(FeedbackTarget target)
Parameters
| Type | Name | Description |
|---|---|---|
| FeedbackTarget | target | The feedback target to reset. |
ResetAll()
Resets adaptive trigger state on every reachable device.
Declaration
void ResetAll()