-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Change the default deadzone value for new actions from 0.5 to 0.2 #80299
Conversation
You will probably need to add a compatibility note, but the CI will instruct for that |
Needs a compatibility addition, follow the instructions here Like so:
Unsure what the comment should be here, if any further instructions are needed |
9ebf120
to
b92ab80
Compare
Have you made sure this doesn't change input bindings from before this applied? I.e. make a binding with the default deadzone, and then open it with these changes |
Yes, I have tested for that, old actions are not changed. |
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.
Tested locally, it works as expected:
This implies a small run-time behavior change, as actions created from a script in InputMap
will now have a lower deadzone by default. I think this is acceptable (especially since creating new actions from code is uncommon), but it needs to be clearly documented in the release notes.
Note that godotengine/godot-demo-projects#1024 changes the deadzone for all non-built-in inputs in demo projects to |
I consider these changes beneficial and think, that they should be included. The following two places in the code base should also be investigated, if changes are necessary: godot/core/config/project_settings.cpp Line 506 in 7d151c8
godot/tests/core/input/test_input_event.h Line 93 in 7d151c8
|
@reptofrog Could you look into rebasing to resolve merge conflicts? See PR workflow for instructions 🙂
The first instance is 3.x conversion code, so I'd keep it as-is. The second instance is a unit test where the deadzone is already set to 0.5 above, so it probably doesn't need to be changed. |
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.
Needs to be moved to the 4.3 file when rebasing
b92ab80
to
e4e024a
Compare
This changes the default deadzone value for new actions from 0.5 to 0.2 as discussed in godotengine/godot-proposals#7069.
This does not change the built-in actions.
This is my first pull request, so there is chance I have done something wrong - please check.