-
Notifications
You must be signed in to change notification settings - Fork 330
Add API additions to assist with polling workflow #1795
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
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
9f411e7
Reverted explicit value initialization to avoid false positive failur…
chris-massie 9d4f808
Added valueType property to InputAction, allowing access to it outsid…
chris-massie b8042e3
Renamed to make it clear it functions like activeControl where it can…
chris-massie 13cd9ad
Added test using dynamic composite type to verify activeValueType is …
chris-massie acbaf8b
Added ignore rule of file generated in Editor_LeavingPlayMode_Discard…
chris-massie 0aa780c
Added WasUnperformedThisFrame for the counterpart to WasPerformedThis…
chris-massie 11b6e30
Updated methods to pass along the phase after canceled so it can know…
chris-massie 10cc4b7
Added tests for WasPerformedThisFrame/WasUnperformedThisFrame along w…
chris-massie 4c61a30
fix for neutron CI warning (#1787)
ritamerkl a9a4fbc
Readded old test to make the diff of this branch easier to understand
chris-massie fa5f304
FIX: UITK Listen button not working with Any control types (#1788)
jamesmcgill bdf35ae
Fixed missing ) in code example
chris-massie 7114672
Added GetMagnitude method for getting the magnitude of the active com…
chris-massie fbee9b1
CHANGE: Restructured main Input System Package settings nodes when Pr…
ekcoh 70d769a
CHANGE: Make Project-wide Actions the default for Player Input (#1790)
jfreire-unity 23e4fe7
Added test using a hold action where it demonstrates the difference b…
chris-massie 5e03d52
Modified test to test against Value, Button, and PassThrough and addi…
chris-massie d03fd6a
Fixed xml-docs
chris-massie 3e6eb30
Added method for finding an InputAction by Guid ID
chris-massie 4c9f7fd
FIX: Ensure UITK Editor restores selection after domain reload (#1794)
jamesmcgill 7ae7114
FIX: Temporary fix to avoid exceptions being thrown by `InputControlP…
Secticide 4becc1a
NEW: Add option to reset project-wide actions to original state (ISX-…
ritamerkl e19cce1
Merge branch 'develop' into add-unperformed
chris-massie 75a967a
Fixed error in docs where it incorrectly said Pass-Through actions wi…
chris-massie 723d912
Added manual docs for WasUnperformedThisFrame
chris-massie a7fae0b
Merge branch 'develop' into add-unperformed
chris-massie 8484bba
Readded docs for WasUnperformedThisFrame to new documentation file af…
chris-massie ad54061
Fixed case of MonoBehaviour and made it code style
chris-massie 1dd0f27
Updated examples for polling and fixed pressed example wording to be …
chris-massie bc95814
Added changelog entries
chris-massie 64b9336
Fixed doc links to InputActionPhase
chris-massie f26684e
Merge branch 'develop' into add-unperformed
chris-massie bb8f009
Moved changelog entries to new Unreleased section after release of 1.…
chris-massie 8e97bc9
Fixed code formatting
chris-massie d3416ae
Merge branch 'develop' into add-unperformed
chris-massie efecae3
Merge branch 'develop' into add-unperformed
chris-massie 3d58615
Apply suggestions from code review
chris-massie 51f3b04
Removed new FindAction method based on PR feedback that it exposes to…
chris-massie bdbf2e5
Replaced blank with F for false
chris-massie 8dc8034
Updated xml-docs for clarity based on PR feedback
chris-massie 6c71b9c
Added legend for T and F in the test comments
chris-massie ddd562c
Renamed test to make it more apparent that it's testing edge cases wi…
chris-massie c2f8e1f
Added a new short test to verify unperformed with a hold interaction …
chris-massie b671d27
Added link to Sector interaction in XRI docs
chris-massie 221fa47
Renamed Unperformed to Completed
chris-massie dfd8bc2
Merge branch 'develop' into add-unperformed
chris-massie c982a6d
Fixed extra whitespace
chris-massie 628044d
Renamed method from WasUnperformedThisFrame to WasCompletedThisFrame …
chris-massie 954692b
Merge branch 'develop' into add-unperformed
ekcoh 680b2e6
Merge branch 'develop' into add-unperformed
chris-massie 06e8bd8
Merge branch 'develop' into add-unperformed
lyndon-unity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not completely related to this PR, but maybe we should provide some additional guidance here that polling may be used when the order of actions performed is irrelevant, while event-driven callback approach is appropriate when order of actions during a frame is relevant or what do you think?
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.
I thought it was still frame based? Does Input System actually know if A was pressed before B if they were both pressed in the same frame?
I don't think I know enough about the details to update the documentation about that in this PR.
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.
When observing events yes, but not when using polling APIs. I will take a separate. note on addressing this.