Update monado (add xrt_session_event_sink)
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ FetchContent_Declare(tinygltf URL https://github.com/syoyo/tinygltf/archive
|
|||||||
# Server dependencies
|
# Server dependencies
|
||||||
FetchContent_Declare(monado
|
FetchContent_Declare(monado
|
||||||
GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado
|
GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado
|
||||||
GIT_TAG 7806993e1f97f7c849e29ccc8b49d4e6adcb0f78
|
GIT_TAG 9a22d029a43fbd4af0fed8c72b58ee52853c15b6
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ xrt::drivers::wivrn::wivrn_session::wivrn_session(xrt::drivers::wivrn::TCP && tc
|
|||||||
}
|
}
|
||||||
|
|
||||||
xrt_result_t xrt::drivers::wivrn::wivrn_session::create_session(xrt::drivers::wivrn::TCP && tcp,
|
xrt_result_t xrt::drivers::wivrn::wivrn_session::create_session(xrt::drivers::wivrn::TCP && tcp,
|
||||||
|
xrt_session_event_sink & event_sink,
|
||||||
xrt_system_devices ** out_xsysd,
|
xrt_system_devices ** out_xsysd,
|
||||||
xrt_space_overseer ** out_xspovrs,
|
xrt_space_overseer ** out_xspovrs,
|
||||||
xrt_system_compositor ** out_xsysc)
|
xrt_system_compositor ** out_xsysc)
|
||||||
@@ -136,6 +137,7 @@ xrt_result_t xrt::drivers::wivrn::wivrn_session::create_session(xrt::drivers::wi
|
|||||||
}
|
}
|
||||||
|
|
||||||
u_builder_create_space_overseer_legacy(
|
u_builder_create_space_overseer_legacy(
|
||||||
|
&event_sink,
|
||||||
self->hmd.get(),
|
self->hmd.get(),
|
||||||
self->left_hand.get(),
|
self->left_hand.get(),
|
||||||
self->right_hand.get(),
|
self->right_hand.get(),
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ class wivrn_hmd;
|
|||||||
class wivrn_controller;
|
class wivrn_controller;
|
||||||
struct audio_device;
|
struct audio_device;
|
||||||
|
|
||||||
|
struct xrt_session_event_sink;
|
||||||
struct xrt_system_devices;
|
struct xrt_system_devices;
|
||||||
struct xrt_space_overseer;
|
struct xrt_space_overseer;
|
||||||
struct xrt_system_compositor;
|
struct xrt_system_compositor;
|
||||||
@@ -70,6 +71,7 @@ class wivrn_session : public std::enable_shared_from_this<wivrn_session>
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
static xrt_result_t create_session(TCP && tcp,
|
static xrt_result_t create_session(TCP && tcp,
|
||||||
|
xrt_session_event_sink & event_synk,
|
||||||
xrt_system_devices ** out_xsysd,
|
xrt_system_devices ** out_xsysd,
|
||||||
xrt_space_overseer ** out_xspovrs,
|
xrt_space_overseer ** out_xspovrs,
|
||||||
xrt_system_compositor ** out_xsysc);
|
xrt_system_compositor ** out_xsysc);
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
* @author Jakob Bornecrantz <jakob@collabora.com>
|
* @author Jakob Bornecrantz <jakob@collabora.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "xrt/xrt_config_build.h"
|
|
||||||
#include "xrt/xrt_instance.h"
|
#include "xrt/xrt_instance.h"
|
||||||
#include "xrt/xrt_system.h"
|
#include "xrt/xrt_system.h"
|
||||||
|
|
||||||
@@ -42,7 +41,12 @@ wivrn_instance_create_system(struct xrt_instance * xinst,
|
|||||||
*out_xsys = &u_sys->base;
|
*out_xsys = &u_sys->base;
|
||||||
|
|
||||||
struct xrt_system_compositor * xsysc = NULL;
|
struct xrt_system_compositor * xsysc = NULL;
|
||||||
auto res = xrt::drivers::wivrn::wivrn_session::create_session(std::move(*tcp), out_xsysd, out_xspovrs, out_xsysc);
|
auto res = xrt::drivers::wivrn::wivrn_session::create_session(
|
||||||
|
std::move(*tcp),
|
||||||
|
u_sys->broadcast,
|
||||||
|
out_xsysd,
|
||||||
|
out_xspovrs,
|
||||||
|
out_xsysc);
|
||||||
u_system_set_system_compositor(u_sys, *out_xsysc);
|
u_system_set_system_compositor(u_sys, *out_xsysc);
|
||||||
tcp.reset();
|
tcp.reset();
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Reference in New Issue
Block a user