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 b6e48dc commit ea856c3Copy full SHA for ea856c3
Assets/Tests/Samples/RebindingUITests.cs
@@ -142,6 +142,10 @@ public void Samples_RebindingUI_SuppressingEventsDoesNotInterfereWithUIInput()
142
Assert.That(bindingLabel.text, Is.EqualTo("<Waiting...>"));
143
Assert.That(inputActions["submit"].inProgress, Is.False);
144
145
+ // This is an ugly workaround because the Time.frameCount is not updated in the test environment.
146
+ // The accurate frameCount is needed for InputSystemUIInputModule and InputAction.WasPerformedThisFrame() to identify when the submit key was pressed.
147
+ inputActions["submit"].Reset();
148
+
149
Press(keyboard.bKey);
150
eventSystem.InvokeUpdate();
151
0 commit comments