Skip to content

Commit

Permalink
Fix failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Dec 15, 2024
1 parent 1589bcd commit 515ffbf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ private void addTestInputManagerStep()
public void UseParentInputChange()
{
addTestInputManagerStep();
AddStep("Move mouse", () => InputManager.MoveMouseTo(Content));
AddStep("Press buttons", () =>
{
InputManager.PressButton(MouseButton.Left);
Expand Down Expand Up @@ -268,6 +269,7 @@ public void TestMouseTouchProductionOnPassThrough()

AddStep("end touch", () => InputManager.EndTouch(new Touch(TouchSource.Touch1, testInputManager.ScreenSpaceDrawQuad.Centre)));

AddStep("bring back mouse", () => InputManager.MoveMouseTo(testInputManager));
AddStep("press mouse", () => InputManager.PressButton(MouseButton.Left));
AddAssert("pass-through handled mouse", () => testInputManager.CurrentState.Mouse.Buttons.Single() == MouseButton.Left);
}
Expand Down

0 comments on commit 515ffbf

Please sign in to comment.