OpenXR: Implement play_area_changed signal

This implements the missing logic for the 'play_area_changed' in OpenXRInterface.

It modifies the existing 'on_reference_space_change_pending' method by receiving the XrReferenceSpaceType enum from the event and selects the appropriate PlayAreaMode, it finally emits the 'play_area_changed' signal.
This commit is contained in:
mattia.zirpoli 2025-11-22 18:28:26 +01:00
parent 235a32ad11
commit 8af1a134b4
3 changed files with 27 additions and 3 deletions

View file

@ -2099,7 +2099,7 @@ bool OpenXRAPI::poll_events() {
}
if (xr_interface) {
xr_interface->on_reference_space_change_pending();
xr_interface->on_reference_space_change_pending(event->referenceSpaceType);
}
} break;
case XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED: {