-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Fix emulate_mouse_from_touch
setting affecting editor
#97649
Fix emulate_mouse_from_touch
setting affecting editor
#97649
Conversation
emulate_mouse_from_touch
setting affecting editor
Make "emulate mouse from touch" always true in the editor
47cb88a
to
4ef07cb
Compare
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 looks fishy to me, the code on lines 3185 to 3190 does nothing as it's always overridden by line 3193. I think this requires a bit more research into why the code is this way and how to fix it.
Also, thanks for your first contribution and welcome 🎉
I think 3185 to 3190 is for |
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.
Looks good to me!
Did you validate that the setting still apply to the running project in the Play window?
@@ -3191,6 +3191,10 @@ Error Main::setup2(bool p_show_boot_logo) { | |||
} | |||
|
|||
id->set_emulate_mouse_from_touch(bool(GLOBAL_DEF_BASIC("input_devices/pointing/emulate_mouse_from_touch", true))); | |||
|
|||
if (editor) { |
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.
Should this also include the project_manager
?
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.
Project manager seems to be unaffected by the setting but i can include it if necessary
Yep, everything works fine for me |
Thanks! Congratulations on your first contribution! |
Fixes #96784, #84207
Make
emulate_mouse_from_touch
always true in the editor.