-
Notifications
You must be signed in to change notification settings - Fork 328
CHANGE: ISX-2377: Rebinding sample improvements (Mouse sensitivity + Swap sticks) (Validation week) #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
base: develop
Are you sure you want to change the base?
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
/// <summary> | ||
/// Common binding UI helper to allow editor composition. | ||
/// </summary> | ||
internal class BindingUI |
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.
This isn't constantly named with file and should be renamed.
I just tried the sample and I think the improvements are nice, I only have one point to critisize: |
I'm not sure if the sensitivity option is working, I can still rotate the character the same amount of times from the same amount of mouse distance regardless whether I'm on low or high sensitivity. (Maybe the differences between low and high are just very low? Since I didn't feel a difference at first what I did was go to the left edge of the screen and drag my mouse to the right counting full rotations of the character with both low and high sensitivity. Both totaling to around 2 full rotations exactly) Also, like Rita mentioned the swap button is tiny. Maybe spelling it out alongside the arrow icon would work. A crude example: ![]() Otherwise looking good to me |
I have a look if the slider is working, might be that I broke something while cleaning this up. Regarding the swap button I can change it but vote to keep its current design but make it larger and to the right of the Reset buttons spanning the same height as the top of left stick button and bottom of right stick button. |
I can confirm sensitivity slider is broken, will fix and rerequest review when done. |
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
.Testing status & QA
Functionality has been tested during development by running the associated sample.
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: