1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

OpenXR: Add access to session state and change interaction profile update.

This commit is contained in:
Bastiaan Olij
2025-06-17 17:36:38 +10:00
parent 46c495ca21
commit df06aa8392
5 changed files with 104 additions and 13 deletions

View File

@@ -272,6 +272,7 @@ private:
};
RID_Owner<Tracker, true> tracker_owner;
RID get_tracker_rid(XrPath p_path);
bool interaction_profile_changed = true; // If true we need to check for updates to our active_profile_rid.
struct ActionSet { // Action sets define a set of actions that can be enabled together
String name; // Name for this action set (i.e. "godot_action_set")
@@ -420,6 +421,7 @@ public:
XrInstance get_instance() const { return instance; }
XrSystemId get_system_id() const { return system_id; }
XrSession get_session() const { return session; }
XrSessionState get_session_state() const { return session_state; }
OpenXRGraphicsExtensionWrapper *get_graphics_extension() const { return graphics_extension; }
String get_runtime_name() const { return runtime_name; }
String get_runtime_version() const { return runtime_version; }