InputBinding Class

Base type for all input bindings. Maps a physical input to a queryable state.

public abstract record InputBinding : System.IEquatable<Brine2D.Input.InputBinding>

Inheritance System.Object → InputBinding

Derived
CompositeKeyBinding
GamepadAxisBinding
GamepadButtonBinding
GamepadStickBinding
GamepadTriggerBinding
KeyAxisBinding
KeyBinding
MouseButtonBinding
MouseDeltaBinding
MouseScrollBinding
MouseScrollXBinding

Implements System.IEquatable<InputBinding>

Methods
IsDown(IInputContext) Returns true if the bound input is currently held.
IsPressed(IInputContext) Returns true if the bound input was pressed this frame.
IsReleased(IInputContext) Returns true if the bound input was released this frame.
ReadValue(IInputContext) Returns the analog value of the binding (0 or 1 for digital inputs).