InputBinding Class
Definition
Namespace: Brine2D.Input
Base type for all input bindings. Maps a physical input to a queryable state.
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\). |