summaryrefslogtreecommitdiffstats
path: root/modules/webxr/webxr_interface.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-23 22:57:46 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-23 22:57:46 +0100
commitcf9de66389df1ffd8ae91fb128cf6fa7ae74c8f5 (patch)
treec72302449c44695fbeed619e37b69051012fb0a0 /modules/webxr/webxr_interface.cpp
parent36008be8d9c651f95995f7fffd459ca9dd80f2ed (diff)
parent7fa8ccd1ed6d9c0b8e979d30e9af1d12dbf9ed48 (diff)
downloadredot-engine-cf9de66389df1ffd8ae91fb128cf6fa7ae74c8f5.tar.gz
Merge pull request #88411 from dsnopek/webxr-hand-tracking
WebXR: Add support for hand tracking
Diffstat (limited to 'modules/webxr/webxr_interface.cpp')
-rw-r--r--modules/webxr/webxr_interface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/webxr/webxr_interface.cpp b/modules/webxr/webxr_interface.cpp
index 85ed9f472e..c3efebef0f 100644
--- a/modules/webxr/webxr_interface.cpp
+++ b/modules/webxr/webxr_interface.cpp
@@ -41,6 +41,7 @@ void WebXRInterface::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_optional_features", "optional_features"), &WebXRInterface::set_optional_features);
ClassDB::bind_method(D_METHOD("get_optional_features"), &WebXRInterface::get_optional_features);
ClassDB::bind_method(D_METHOD("get_reference_space_type"), &WebXRInterface::get_reference_space_type);
+ ClassDB::bind_method(D_METHOD("get_enabled_features"), &WebXRInterface::get_enabled_features);
ClassDB::bind_method(D_METHOD("set_requested_reference_space_types", "requested_reference_space_types"), &WebXRInterface::set_requested_reference_space_types);
ClassDB::bind_method(D_METHOD("get_requested_reference_space_types"), &WebXRInterface::get_requested_reference_space_types);
ClassDB::bind_method(D_METHOD("is_input_source_active", "input_source_id"), &WebXRInterface::is_input_source_active);
@@ -56,6 +57,7 @@ void WebXRInterface::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::STRING, "optional_features", PROPERTY_HINT_NONE), "set_optional_features", "get_optional_features");
ADD_PROPERTY(PropertyInfo(Variant::STRING, "requested_reference_space_types", PROPERTY_HINT_NONE), "set_requested_reference_space_types", "get_requested_reference_space_types");
ADD_PROPERTY(PropertyInfo(Variant::STRING, "reference_space_type", PROPERTY_HINT_NONE), "", "get_reference_space_type");
+ ADD_PROPERTY(PropertyInfo(Variant::STRING, "enabled_features", PROPERTY_HINT_NONE), "", "get_enabled_features");
ADD_PROPERTY(PropertyInfo(Variant::STRING, "visibility_state", PROPERTY_HINT_NONE), "", "get_visibility_state");
ADD_SIGNAL(MethodInfo("session_supported", PropertyInfo(Variant::STRING, "session_mode"), PropertyInfo(Variant::BOOL, "supported")));