mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +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:
|
if value == tablet_driver:
|
||||||
return
|
return
|
||||||
tablet_driver = value
|
tablet_driver = value
|
||||||
var tablet_driver_name := DisplayServer.tablet_get_current_driver()
|
var tablet_driver_name := DisplayServer.tablet_get_driver_name(tablet_driver)
|
||||||
ProjectSettings.set_setting("display/window/tablet_driver", tablet_driver_name)
|
DisplayServer.tablet_set_current_driver(tablet_driver_name)
|
||||||
ProjectSettings.save_custom(root_directory.path_join(OVERRIDE_FILE))
|
|
||||||
|
|
||||||
# Tools & options
|
# Tools & options
|
||||||
## Found in Preferences. If [code]true[/code], the cursor's left tool icon is visible.
|
## 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(
|
# Preference.new(
|
||||||
# "renderer", "Drivers/DriversContainer/Renderer", "selected", OS.VIDEO_DRIVER_GLES2, true
|
# "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([])
|
var content_list := PackedStringArray([])
|
||||||
|
|
Loading…
Reference in a new issue