Forward XR_EXT_user_presence

Closes #258
This commit is contained in:
Sapphire
2025-07-04 23:43:06 +02:00
committed by xytovl
parent f43ee229f1
commit 3ac31fe5cc
10 changed files with 67 additions and 1 deletions
+12
View File
@@ -576,6 +576,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)
{
{