Skip to content

Conversation

Rene-Damm
Copy link
Contributor

Fixes 1195498 (internal).

Assert.That(performedControl, Is.SameAs(gamepad.buttonSouth));
Assert.That(action.phase, Is.EqualTo(InputActionPhase.Waiting));
Assert.That(trace, Canceled<HoldInteraction>(action, gamepad.buttonSouth, time: 11.5, duration: 1, value: 0.0));
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one looks bad but basically I just rewrote the previous test with the now available InputActionTrace+ActionConstraint method which makes writing this kind of stuff just a ton easier. Also added a few extra checks.

@Rene-Damm Rene-Damm requested a review from jechter February 13, 2020 14:17
@Rene-Damm Rene-Damm merged commit ae8103d into develop Feb 13, 2020
@Rene-Damm Rene-Damm deleted the fix-hold-interaction branch February 13, 2020 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants