The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

xrt: Add reference space change pending event

+22
+22
src/xrt/include/xrt/xrt_session.h
··· 11 11 12 12 #include "xrt/xrt_compiler.h" 13 13 #include "xrt/xrt_defines.h" 14 + #include "xrt/xrt_space.h" 14 15 15 16 16 17 #ifdef __cplusplus ··· 51 52 52 53 //! The referesh rate of session (compositor) has changed. 53 54 XRT_SESSION_EVENT_DISPLAY_REFRESH_RATE_CHANGE = 5, 55 + 56 + //! A reference space for this session has a pending change. 57 + XRT_SESSION_EVENT_REFERENCE_SPACE_CHANGE_PENDING = 6, 54 58 }; 55 59 56 60 /*! ··· 117 121 }; 118 122 119 123 /*! 124 + * Event that tells the application that the reference space has a pending 125 + * change to it, maps to @p XrEventDataReferenceSpaceChangePending, 126 + * type @ref XRT_SESSION_EVENT_REFERENCE_SPACE_CHANGE_PENDING. 127 + * 128 + * @see xrt_session_event 129 + * @ingroup xrt_iface 130 + */ 131 + struct xrt_session_event_reference_space_change_pending 132 + { 133 + enum xrt_session_event_type event_type; 134 + enum xrt_reference_space_type ref_type; 135 + uint64_t timestamp_ns; 136 + struct xrt_pose pose_in_previous_space; 137 + bool pose_valid; 138 + }; 139 + 140 + /*! 120 141 * Union of all session events, used to return multiple events through one call. 121 142 * Each event struct must start with a @ref xrt_session_event_type field. 122 143 * ··· 130 151 struct xrt_session_event_loss_pending loss_pending; 131 152 struct xrt_session_event_lost lost; 132 153 struct xrt_session_event_display_refresh_rate_change display; 154 + struct xrt_session_event_reference_space_change_pending ref_change; 133 155 }; 134 156 135 157 /*!