-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
LMB in ui_accept no longer working with OptionButton #64578
Comments
@esap120 Can you reproduce this in any of the 3.5 betas and RCs to determine when the regression started? |
I was able to build from source and after trying out a bunch of builds it looks like this is the PR that caused the regression: #57643 specifically this section of code: https://github.com/godotengine/godot/pull/57643/files#diff-f53516902cc0ae0bcdff8847d815c5644836b1fc138517b47b6cb5f0b807ae38R114-R119 I think the assumption that lines like |
cc @YeldhamDev |
@YeldhamDev I don't write much c++ or do any godot engine development but would something like this make sense?: 3.x...esap120:godot:mouse-button-fix Basically just inspecting if the ui_accept action is an InputEventMouseButton in _gui_input. Testing the change locally that seemed to fix the issue Also I might need to update my sample project, I noticed when testing with the visual studio debugger and running the test scene directly it would use the default InputMap actions and not the ones defined in the project. I added a script to the scene that manually adds the lmb press and that made it easier to test:
|
@esap120 I'm already planning a fix that should hopefully be less hacky than that. I just need a little more time. |
Fixed by #64636. |
Godot version
3.5 stable
System information
Windows 10, GLES3
Issue description
Possible regression where having left mouse button under the "ui_accept" input action breaks the OptionButton since the popup menu no longer displays. It works fine in 3.4.5 but in 3.5 it now seems to swallow the mouse input. If I remove LMB from ui_accept it works again.
This could be happening with other controls, but this is the one I have noticed. Clicking still focuses the button but the popup does not appear.
Setting
Input.set_use_accumulated_input(false)
does not change the result, LMB will still not workSteps to reproduce
Create a scene with an OptionButton and add Left Mouse Button to "ui_accept" under InputMap in project settings. Try to mouse click on OptionButton to get an popup menu to appear
Minimal reproduction project
test_project.zip
The text was updated successfully, but these errors were encountered: