We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a32fbdb commit 1ff7385Copy full SHA for 1ff7385
Packages/com.unity.inputsystem/InputSystem/Controls/InputControlExtensions.cs
@@ -1114,6 +1114,8 @@ public static InputControl GetFirstButtonPressOrNull(this InputEventPtr eventPtr
1114
1115
foreach (var control in eventPtr.EnumerateControls(Enumerate.IgnoreControlsInDefaultState, magnitudeThreshold: magnitude))
1116
{
1117
+ if (!control.HasValueChangeInEvent(eventPtr))
1118
+ continue;
1119
if (buttonControlsOnly && !control.isButton)
1120
continue;
1121
return control;
0 commit comments