1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Fix changing the tablet driver on Windows

Plus, it should also no longer require a restart
This commit is contained in:
Emmanouil Papadeas 2024-06-01 23:13:50 +03:00
parent 429d3469fd
commit fecb9b5803
2 changed files with 3 additions and 4 deletions

View file

@ -506,9 +506,8 @@ var tablet_driver := 0:
if value == tablet_driver:
return
tablet_driver = value
var tablet_driver_name := DisplayServer.tablet_get_current_driver()
ProjectSettings.set_setting("display/window/tablet_driver", tablet_driver_name)
ProjectSettings.save_custom(root_directory.path_join(OVERRIDE_FILE))
var tablet_driver_name := DisplayServer.tablet_get_driver_name(tablet_driver)
DisplayServer.tablet_set_current_driver(tablet_driver_name)
# Tools & options
## Found in Preferences. If [code]true[/code], the cursor's left tool icon is visible.

View file

@ -185,7 +185,7 @@ var preferences: Array[Preference] = [
# Preference.new(
# "renderer", "Drivers/DriversContainer/Renderer", "selected", OS.VIDEO_DRIVER_GLES2, true
# ),
Preference.new("tablet_driver", "Drivers/DriversContainer/TabletDriver", "selected", 0, true)
Preference.new("tablet_driver", "Drivers/DriversContainer/TabletDriver", "selected", 0)
]
var content_list := PackedStringArray([])