Skip to content

Commit 52279d1

Browse files
Update documentation RespondingToActions.md
1 parent b9a2edf commit 52279d1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Packages/com.unity.inputsystem/Documentation~/RespondingToActions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ Finally, there are three methods you can use to poll for button presses and rele
9191
The applicable press point is chosen from, in order:
9292

9393
1. If the binding lists one or more [Press](xref:UnityEngine.InputSystem.Interactions.PressInteraction) interactions, the `pressPoint` from the first `Press` interaction in list order whose `pressPoint` is greater than zero (any interactions before this that are either not `Press`, or `Press` with the default `pressPoint` of zero, are skipped) so action-level press APIs stay aligned with the interaction.
94-
2. Otherwise, the driving [ButtonControl](xref:UnityEngine.InputSystem.Controls.ButtonControl), [Vector2Control](xref:UnityEngine.InputSystem.Controls.Vector2Control), or [StickControl](xref:UnityEngine.InputSystem.Controls.StickControl) [`pressPointOrDefault`](xref:UnityEngine.InputSystem.Controls.ButtonControl.pressPointOrDefault).
95-
3. [defaultButtonPressPoint](xref:UnityEngine.InputSystem.InputSettings.defaultButtonPressPoint).
94+
2. Otherwise, if the driving control is a [ButtonControl](xref:UnityEngine.InputSystem.Controls.ButtonControl), [`pressPointOrDefault`](xref:UnityEngine.InputSystem.Controls.ButtonControl.pressPointOrDefault) on that control.
95+
3. Otherwise (for example the action is driven by a [Vector2Control](xref:UnityEngine.InputSystem.Controls.Vector2Control) or [StickControl](xref:UnityEngine.InputSystem.Controls.StickControl) magnitude), [defaultButtonPressPoint](xref:UnityEngine.InputSystem.InputSettings.defaultButtonPressPoint).
9696

9797
On [composites](xref:input-system-action-bindings#composite-bindings), interaction parameters are taken from the composite binding.
9898

99-
[`InputControl.IsPressed`](xref:UnityEngine.InputSystem.InputControlExtensions.IsPressed) on a control always uses that control's threshold and does not consider binding interactions.
99+
[`InputControl.IsPressed`](xref:UnityEngine.InputSystem.InputControlExtensions.IsPressed) does not consider binding interactions. If you do not pass a custom threshold, it uses [`pressPointOrDefault`](xref:UnityEngine.InputSystem.Controls.ButtonControl.pressPointOrDefault) when the control is a [`ButtonControl`](xref:UnityEngine.InputSystem.Controls.ButtonControl), and otherwise compares actuation magnitude to [defaultButtonPressPoint](xref:UnityEngine.InputSystem.InputSettings.defaultButtonPressPoint) (including for [`Vector2Control`](xref:UnityEngine.InputSystem.Controls.Vector2Control) and [`StickControl`](xref:UnityEngine.InputSystem.Controls.StickControl)).
100100

101101
This example uses three actions called Shield, Teleport and Submit (which are not included in the [default actions](xref:project-wide-actions#the-default-actions)):
102102

0 commit comments

Comments
 (0)