-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Finalise names for joypad buttons and document them #43520
Comments
cc @madmiraal |
The change was deliberate, and the intention was to not only make the names consistent, but to actually provide names for all the buttons and axes. The word "Button" was dropped from the "Face x" names, because, first, they were the only buttons with the word "Button" in the name, and, second, the The previous names were:
The new names are:
There was a question about whether "Face" was the right name for these buttons, but for lack of an alternative, I kept the name "Face". Is there a better alternative? Looking at the new names, it would also be better if the Joystick 3 and 4 names were changed to just "Joystick 3 X", "Joystick 3 Y", "Joystick 4 X" and "Joystick 4 Y". That all been said, what is a good point is that these names should be documented. |
Thanks for the clarification! I'm in favour of making the names consistent, and I've personally been grappling with how I should use these strings in my own way of storing bindings. I do think that "Face" is a bit weird, and maybe it might be better to label the D-Pad as "Direction Button (Dir)" and the face buttons as "Action Button (Dir)". Additionally, the distinction between face buttons using "top" and "bottom" while the D-pad uses "up" and "down" is a bit weird, and it might be better to just say "up" and "down" everywhere. |
In summary, I think we should use the following strings:
|
(Originally: naming differences from PR #38151)
Basic summary:
Input.get_joy_button_string
andInput.get_joy_button_index_from_string
serialize the face buttons for controllers as "Face Button (Dir)" on 3.2 whereas on master they serialize them as "Face (Dir)". I traced this change down to PR #38151.I found this because the actual strings weren't in the docs, and I was looking through the source code to see what they were. I then noticed that master is different from the stable 3.2 that I'm using.
Even though Godot 4 can have breaking changes from Godot 3, I think that this change was probably just an honest mistake, seeing how it will affect the primary way people store and load button mappings in config files. I also personally think the name "Face Button" is clearer, as "Face" doesn't make as much sense to me.
If this is properly documented somewhere as an intended change, this can be closed -- I'm mostly saying that it seems like it wasn't intended, and that it probably should be reverted if that's the case.
The text was updated successfully, but these errors were encountered: