Make virtual tracker xdevs toggleable

Co-authored-by: Guillaume Meunier <guillaume.meunier@centraliens.net>
This commit is contained in:
Sapphire
2026-07-10 14:52:50 -05:00
co-authored by Guillaume Meunier
parent 727445520e
commit 1cc61fd07a
18 changed files with 268 additions and 67 deletions
+3
View File
@@ -44,6 +44,7 @@ class wivrn_generic_tracker : public xrt_device
xrt_input pose_input;
wivrn_session & cnx;
bool enabled = true;
public:
using base_t = xrt_device;
@@ -53,5 +54,7 @@ public:
xrt_result_t get_tracked_pose(xrt_input_name name, int64_t at_timestamp_ns, xrt_space_relation * out_relation);
void update_tracking(XrTime produced_timestamp, XrTime timestamp, const xrt_space_relation & pose, const clock_offset & offset);
void set_enabled(bool enabled);
};
} // namespace wivrn