-
Notifications
You must be signed in to change notification settings - Fork 329
FIX: fixed gamepad navigation in UI Toolkit TextField #2103
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
benoitalain
merged 14 commits into
develop
from
uitech/bugfix/uum-77364-inputsysteminputmodulenonkeyboardnavigation
Feb 10, 2025
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
170c471
Fixed UUM-77364. Requires trunk PR (same branch name).
benoitalain 426157a
Updated changelog
benoitalain ffd26de
Modified UITests.UI_CanDriveUIFromGamepad with IsKeyboardNavigationEv…
benoitalain cdda2bd
Updated changes with recent GetNavigationEventDeviceType method.
benoitalain 853962e
Fixed Unity.InputSystem.asmdef Unity version after trunk PR landed.
benoitalain ecf41d5
Making sure uGUI is the latest version.
benoitalain ef4310b
Merge branch 'develop' of github.com:Unity-Technologies/InputSystem i…
benoitalain 227dda9
Added compile flags for GetNavigationEventDeviceType in UITests.
benoitalain 463504a
Ran format.pl
benoitalain f2c8019
Merge branch 'develop' of github.com:Unity-Technologies/InputSystem i…
benoitalain 37f5341
Updated CHANGELOG after merge from develop
benoitalain c733ec1
Merge branch 'develop' into uitech/bugfix/uum-77364-inputsysteminputm…
benoitalain a00fbbb
Merge branch 'develop' into uitech/bugfix/uum-77364-inputsysteminputm…
benoitalain 9daeca8
Added public issue tracker to fix in Changelog
benoitalain 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
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
20 changes: 20 additions & 0 deletions
20
Packages/com.unity.inputsystem/InputSystem/Plugins/UI/ExtendedSubmitCancelEventData.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #if PACKAGE_DOCS_GENERATION || UNITY_INPUT_SYSTEM_ENABLE_UI | ||
| using UnityEngine.EventSystems; | ||
|
|
||
| namespace UnityEngine.InputSystem.UI | ||
| { | ||
| // A BaseEventData with added device info. | ||
| internal class ExtendedSubmitCancelEventData : BaseEventData, INavigationEventData | ||
| { | ||
| /// <summary> | ||
| /// The <see cref="InputDevice"/> that generated the axis input. | ||
| /// </summary> | ||
| public InputDevice device { get; set; } | ||
|
|
||
| public ExtendedSubmitCancelEventData(EventSystem eventSystem) | ||
| : base(eventSystem) | ||
| { | ||
| } | ||
| } | ||
| } | ||
| #endif |
2 changes: 2 additions & 0 deletions
2
Packages/com.unity.inputsystem/InputSystem/Plugins/UI/ExtendedSubmitCancelEventData.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
Packages/com.unity.inputsystem/InputSystem/Plugins/UI/INavigationEventData.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #if PACKAGE_DOCS_GENERATION || UNITY_INPUT_SYSTEM_ENABLE_UI | ||
|
|
||
| namespace UnityEngine.InputSystem.UI | ||
| { | ||
| internal interface INavigationEventData | ||
| { | ||
| /// <summary> | ||
| /// The <see cref="InputDevice"/> that generated the axis input. | ||
| /// </summary> | ||
| public InputDevice device { get; } | ||
| } | ||
| } | ||
| #endif |
2 changes: 2 additions & 0 deletions
2
Packages/com.unity.inputsystem/InputSystem/Plugins/UI/INavigationEventData.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.
There wasn't any public issue tracker on this?
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.
Ah, sorry I hadn't looked correctly, yes, let me quickly fix this!
This should be it: https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-77364