You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[Windows] Read Wacom config to check if Windows Ink is disabled and auto switch to WinTab.
This commit is contained in:
committed by
Pāvels Nadtočajevs
parent
c2732ae4b6
commit
3f2a29cd9d
@@ -3121,7 +3121,7 @@ Error Main::setup2(bool p_show_boot_logo) {
|
||||
OS::get_singleton()->benchmark_begin_measure("Servers", "Tablet Driver");
|
||||
|
||||
GLOBAL_DEF_RST_NOVAL("input_devices/pen_tablet/driver", "");
|
||||
GLOBAL_DEF_RST_NOVAL(PropertyInfo(Variant::STRING, "input_devices/pen_tablet/driver.windows", PROPERTY_HINT_ENUM, "winink,wintab,dummy"), "");
|
||||
GLOBAL_DEF_RST_NOVAL(PropertyInfo(Variant::STRING, "input_devices/pen_tablet/driver.windows", PROPERTY_HINT_ENUM, "auto,winink,wintab,dummy"), "");
|
||||
|
||||
if (tablet_driver.is_empty()) { // specified in project.godot
|
||||
tablet_driver = GLOBAL_GET("input_devices/pen_tablet/driver");
|
||||
@@ -3141,7 +3141,7 @@ Error Main::setup2(bool p_show_boot_logo) {
|
||||
DisplayServer::get_singleton()->tablet_set_current_driver(DisplayServer::get_singleton()->tablet_get_driver_name(0));
|
||||
}
|
||||
|
||||
print_verbose("Using \"" + tablet_driver + "\" pen tablet driver...");
|
||||
print_verbose("Using \"" + DisplayServer::get_singleton()->tablet_get_current_driver() + "\" pen tablet driver...");
|
||||
|
||||
OS::get_singleton()->benchmark_end_measure("Servers", "Tablet Driver");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user