summaryrefslogtreecommitdiffstats
path: root/modules/openxr/action_map/openxr_interaction_profile_metadata.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openxr/action_map/openxr_interaction_profile_metadata.h')
-rw-r--r--modules/openxr/action_map/openxr_interaction_profile_metadata.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/openxr/action_map/openxr_interaction_profile_metadata.h b/modules/openxr/action_map/openxr_interaction_profile_metadata.h
index 91f97c73a6..252e36f0f6 100644
--- a/modules/openxr/action_map/openxr_interaction_profile_metadata.h
+++ b/modules/openxr/action_map/openxr_interaction_profile_metadata.h
@@ -54,6 +54,7 @@
#include "openxr_action.h"
#include "core/object/object.h"
+#include "core/templates/hash_map.h"
#define XR_PATH_UNSUPPORTED_NAME "unsupported"
@@ -88,6 +89,7 @@ public:
private:
static OpenXRInteractionProfileMetadata *singleton;
+ HashMap<String, String> profile_renames;
Vector<TopLevelPath> top_level_paths;
Vector<InteractionProfile> interaction_profiles;
@@ -102,6 +104,9 @@ public:
OpenXRInteractionProfileMetadata();
~OpenXRInteractionProfileMetadata();
+ void register_profile_rename(const String &p_old_name, const String &p_new_name);
+ String check_profile_name(const String &p_name) const;
+
void register_top_level_path(const String &p_display_name, const String &p_openxr_path, const String &p_openxr_extension_name);
bool has_top_level_path(const String p_openxr_path) const;
String get_top_level_name(const String p_openxr_path) const;