diff --git a/Packages/com.unity.inputsystem/InputSystem/Runtime/Actions/InputBinding.cs b/Packages/com.unity.inputsystem/InputSystem/Runtime/Actions/InputBinding.cs index 45b4c3806c..360ad1a646 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Runtime/Actions/InputBinding.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Runtime/Actions/InputBinding.cs @@ -779,6 +779,12 @@ internal bool TriggersAction(InputAction action) /// /// Note that all comparisons are case-insensitive. /// + /// This method doesn't test bindings for equality. A binding may not match itself if one of + /// its mask properties contains a value that doesn't match as a filter. For example, a binding + /// with set to an empty string has a group filter but no non-empty group + /// to match against. To compare bindings for equivalence, use + /// or . + /// /// /// /// // Create a couple bindings which we can test against. @@ -837,6 +843,7 @@ internal bool TriggersAction(InputAction action) /// /// /// + /// public bool Matches(InputBinding binding) { return Matches(ref binding);