1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Fix tablet driver not reflecting the currently chosen driver

If winink was chosen, the preferences still showed wintab.
This commit is contained in:
Manolis Papadeas 2022-11-30 02:09:06 +02:00
parent e115aa284b
commit fc5497861a
2 changed files with 4 additions and 2 deletions

View file

@ -214,6 +214,8 @@ onready var current_version: String = ProjectSettings.get_setting("application/c
func _init() -> void: func _init() -> void:
if ProjectSettings.get_setting("display/window/tablet_driver") == "winink":
tablet_driver = 1
if OS.has_feature("editor"): if OS.has_feature("editor"):
return return

View file

@ -82,7 +82,7 @@ var preferences := [
Preference.new( Preference.new(
"renderer", "Drivers/DriversContainer/Renderer", "selected", true, OS.VIDEO_DRIVER_GLES2 "renderer", "Drivers/DriversContainer/Renderer", "selected", true, OS.VIDEO_DRIVER_GLES2
), ),
Preference.new("tablet_driver", "Drivers/DriversContainer/TabletDriver", "selected", true) Preference.new("tablet_driver", "Drivers/DriversContainer/TabletDriver", "selected", true, 0)
] ]
var content_list := [] var content_list := []
@ -120,7 +120,7 @@ class Preference:
node_path = _node_path node_path = _node_path
value_type = _value_type value_type = _value_type
require_restart = _require_restart require_restart = _require_restart
if _default_value: if _default_value != null:
default_value = _default_value default_value = _default_value
else: else:
default_value = Global.get(prop_name) default_value = Global.get(prop_name)