I have the following line in my project:
ProjectSettings.set_setting("input_devices/pointing/emulate_mouse_from_touch",
OS.get_name() == "Windows")
We are targeting Linux as the primary platform, so this setting is off in the editor. However, we found that it needs to be on to work correctly on Windows, so we're adding this line to automatically change the setting as needed.
Testing on Windows, however, this has no effect. Using ProjectSettings.get_setting() reveals that the value is changing, but it seems it's not applying for whatever reason. I did see that there's also a ProjectSettings.save() method, but this seems to have no effect either, and the docs don't actually make it clear what it's needed for.
How do I make the setting apply?