- Notifications
You must be signed in to change notification settings - Fork 328
CHANGE: ISX-2377: Rebinding sample improvements (Mouse sensitivity + Swap sticks) (Validation week), FIX: ISXB-1721 ApplyParameterOverride doesn't work if binding name is empty string. #2241
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
…ft and right sticks.
…Parameter to enable mouse sensitivity setting.
…ameter override utility script.
…ameters to override.
…n portrait mode. Game manager now enforces landscape as part of running. Added menu button and reenabled UI actions during gameplay.
…ogies/InputSystem into rebinding-sample-extension
I can confirm sensitivity slider is broken, will fix and rerequest review when done. |
…ot apply override if the binding name was the empty string.
@Pauliusd01 Had to extend this PR with a bug fix for ISXB-1721 (and test case to prove it failed before and passes after fix) which was needed to support mouse sensitivity properly so should be good now. |
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.
Two issues I see, one is that the UI map is active during gameplay:
And the other is that I can't navigate the rebinding menus via gamepad anymore when I previously could. At first I thought it was the slider's fault but I can't jump to the right side of the menus even without having selected it so something else is going on there.
…ls later), disabled setting that UI actions should be enabled in game mode.
|
Will look into UI navigation now. |
Seems UGUIs automatic navigation mode will not be sufficient to get it right given current UI which seems to be indicated when visualising the automatic navigation links. I will set it up explicitly to work around it unless I find some culprit soon. Culprit seems to be the slider, as long as it is included the buttons no longer get decent navigation links, so I guess we need to set it up. |
I have now added explicit navigation links to make sure UI navigates correctly when Automatic is not sufficient. Ready to re-evaluate @Pauliusd01 |
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.
Mainly nitpicks, the code looks good to me.
There are two comments, which needs to be addressed and one outstanding file rename.
… shadowing warnings.
…also has tooltip so hopefully clear enough for someone modifying the sample.
Description
This PR improves the "rebinding sample" in the following ways:
RebindSaveLoad
by documenting it and extracting Load/Save to API surface of the class and only calling them from OnEnable/OnDisable. Also made the actualPlayerPrefs
key a string property of the component. This allows this file to be a reusable component as-is is nice there is nothing hard-coded and it may be used on OnEnable/OnDisable or just programatically.RebindActionParameterUI
which is a slider UI integration example of configuring action processor parameters directly by adding the monobehavior, configuring it and run. Supports overriding action or binding processors.RebindActionParameterUIEditor
which is a custom editor for the aboveMonoBehaviour
.It also fixes bug ISXB-1721 which was required to make mouse sensitivity work properly. Looking through the logic close to the the fix/diff in
InputActionParameters.cs
suggests there are more empty-string bugs for the other match conditions that might need to be looked into and be properly tested since all but ID check seems to suffer from similar problems.Testing status & QA
Functionality has been tested during development by running the associated sample.
Automated test have been added to prove failure of ISXB-1721 and its fix and prevent future regressions.
Overall Product Risks
Small, no changes to source, only to sample scripts.
Comments to reviewers
I am not 100% sure the scene save doesn't contain any accidental changes but I believe it should be fine.
Checklist
Before review:
Changed
,Fixed
,Added
sections.Area_CanDoX
,Area_CanDoX_EvenIfYIsTheCase
,Area_WhenIDoX_AndYHappens_ThisIsTheResult
.During merge:
NEW: ___
.FIX: ___
.DOCS: ___
.CHANGE: ___
.RELEASE: 1.1.0-preview.3
.After merge: