Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2025-07-04 21:59:16 +00:00
34 changed files with 210 additions and 164 deletions
+13
View File
@@ -315,6 +315,7 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptr<wivrn_connecti
&self->hmd,
&self->left_hand,
&self->right_hand,
nullptr,
self->xdevs,
self->xdev_count,
false,
@@ -577,6 +578,18 @@ void wivrn_session::operator()(from_headset::visibility_mask_changed && mask)
auto result = xrt_session_event_sink_push(&xrt_system.broadcast, &event);
}
void wivrn_session::operator()(from_headset::user_presence_changed && event)
{
hmd.update_presence(event.present);
push_event(
{
.presence_change = {
.type = XRT_SESSION_EVENT_USER_PRESENCE_CHANGE,
.is_user_present = event.present,
},
});
}
void wivrn_session::operator()(from_headset::refresh_rate_changed && event)
{
{