summaryrefslogtreecommitdiff
path: root/servers/display_server.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-18 20:36:46 +0100
committerGitHub <noreply@github.com>2021-02-18 20:36:46 +0100
commit247b7e24483931e978f0c203030b5135109655cc (patch)
tree930c25b13032f8d75425ec06b165099c0c8c0f4b /servers/display_server.cpp
parent310496a89f583b49217915b9add165d51aea575e (diff)
parent3e0262509f394ad174d8abe0742a6a6b66b0b16a (diff)
Merge pull request #46131 from bruvzg/move_tablet_to_ds
Move tablet driver API from OS to DisplayServer
Diffstat (limited to 'servers/display_server.cpp')
-rw-r--r--servers/display_server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/servers/display_server.cpp b/servers/display_server.cpp
index 29c1c9fc60..833bae7447 100644
--- a/servers/display_server.cpp
+++ b/servers/display_server.cpp
@@ -504,6 +504,11 @@ void DisplayServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_native_icon", "filename"), &DisplayServer::set_native_icon);
ClassDB::bind_method(D_METHOD("set_icon", "image"), &DisplayServer::set_icon);
+ ClassDB::bind_method(D_METHOD("tablet_get_driver_count"), &DisplayServer::tablet_get_driver_count);
+ ClassDB::bind_method(D_METHOD("tablet_get_driver_name", "idx"), &DisplayServer::tablet_get_driver_name);
+ ClassDB::bind_method(D_METHOD("tablet_get_current_driver"), &DisplayServer::tablet_get_current_driver);
+ ClassDB::bind_method(D_METHOD("tablet_set_current_driver", "name"), &DisplayServer::tablet_set_current_driver);
+
BIND_ENUM_CONSTANT(FEATURE_GLOBAL_MENU);
BIND_ENUM_CONSTANT(FEATURE_SUBWINDOWS);
BIND_ENUM_CONSTANT(FEATURE_TOUCHSCREEN);