mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fix changing the tablet driver on Windows
Plus, it should also no longer require a restart
This commit is contained in:
parent
429d3469fd
commit
fecb9b5803
|
@ -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.
|
||||
|
|
|
@ -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([])
|
||||
|
|
Loading…
Reference in a new issue