Skip to content

GamepadTriggerBinding Class

Definition

Namespace: Brine2D.Input

Binds a gamepad trigger \(0 to 1\) using GetGamepadTrigger\(GamepadAxis, int\). Unlike GamepadAxisBinding, this clamps to the 0–1 range and uses the trigger-specific pressed/released detection.

C#
public sealed record GamepadTriggerBinding : Brine2D.Input.InputBinding, System.IEquatable<Brine2D.Input.GamepadTriggerBinding>

Inheritance System.ObjectInputBinding → GamepadTriggerBinding

Implements System.IEquatable<GamepadTriggerBinding>

Constructors
GamepadTriggerBinding\(GamepadAxis, int\) Binds a gamepad trigger \(0 to 1\) using GetGamepadTrigger\(GamepadAxis, int\). Unlike GamepadAxisBinding, this clamps to the 0–1 range and uses the trigger-specific pressed/released detection.