-
Notifications
You must be signed in to change notification settings - Fork 330
CHANGE: Add automated testing setup for InputForUI #1680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lyndon-unity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a sensible addition.
Obviously wait for the main provider to land (or merge into that branch)
|
That said this is failing tests which are related so it looks like it needs a fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are failing ATM
error CS0122: 'EventProvider' is inaccessible due to its protection level
|
@lyndon-unity Yeah, this PR requires some |
890bc6d to
7063aa7
Compare
lyndon-unity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable, happy to see test coverage expanding
| // Start touch and move mouse to the same position to replicate the issue of duplicated Mouse events for | ||
| // Touch events on Windows. | ||
| BeginTouch(1, new Vector2(100f, 0.5f)); | ||
| Move(mouse.position, new Vector2(100f, 0.5f)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be testing a mouse click too here ?
884f0b6 to
4dca8fe
Compare
|
Holding this for after the 1.6.0 release since the |
4dca8fe to
bb96940
Compare
Description
Adds the test setup for the InputSystemProvider that is used on the 2023.2+ InputForUI module.
Changes made
Sets up the Unity project to test the InputForUI module with the InputSystemProvider implementation.
Adds a basic test with a mouse to validate that the test setup is working and that events are being dispatched.
Notes
This depends on #1679 and should not be merged before
Checklist
Before review:
Changed,Fixed,Addedsections.([case %number%](https://issuetracker.unity3d.com/issues/...)).During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.