Update Monado

This commit is contained in:
Patrick Nicolas committed 2024-12-03 19:38:53 +01:00
1 parent 6555fa4181
commit c8dee48f0e
4 files changed
+25 -36

No files matched your search

+1 -1
View File
@@ -253,7 +253,7 @@ file(GLOB MONADO_PATCHES CONFIGURE_DEPENDS patches/monado/*)
FetchContent_Declare(monado
GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado
# The flatpak manifest is updated automatically
GIT_TAG 8aea7b8691061bbc01c37808e3f3d55b47797fa6
GIT_TAG 6a26019aba14b52832ea6ae1766392a3b620f4ff
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${MONADO_PATCHES}
EXCLUDE_FROM_ALL
)
+8 -12
View File
@@ -132,10 +132,14 @@ static xrt_binding_profile wivrn_binding_profiles[] = {
static void wivrn_controller_destroy(xrt_device * xdev);
static void wivrn_controller_get_tracked_pose(xrt_device * xdev,
xrt_input_name name,
int64_t at_timestamp_ns,
xrt_space_relation * out_relation);
static xrt_result_t wivrn_controller_get_tracked_pose(xrt_device * xdev,
xrt_input_name name,
int64_t at_timestamp_ns,
xrt_space_relation * out_relation)
{
*out_relation = static_cast<wivrn_controller *>(xdev)->get_tracked_pose(name, at_timestamp_ns);
return XRT_SUCCESS;
}
static void wivrn_controller_get_hand_tracking(xrt_device * xdev,
xrt_input_name name,
@@ -404,14 +408,6 @@ static void wivrn_controller_destroy(xrt_device * xdev)
static_cast<wivrn_controller *>(xdev)->unregister();
}
static void wivrn_controller_get_tracked_pose(xrt_device * xdev,
xrt_input_name name,
int64_t at_timestamp_ns,
xrt_space_relation * out_relation)
{
*out_relation = static_cast<wivrn_controller *>(xdev)->get_tracked_pose(name, at_timestamp_ns);
}
static void wivrn_controller_get_hand_tracking(xrt_device * xdev,
xrt_input_name name,
int64_t desired_timestamp_ns,
+8 -11
View File
@@ -42,10 +42,14 @@ static xrt_result_t wivrn_eye_tracker_update_inputs(xrt_device * xdev)
return XRT_SUCCESS;
}
static void wivrn_eye_tracker_get_tracked_pose(xrt_device * xdev,
xrt_input_name name,
int64_t at_timestamp_ns,
xrt_space_relation * out_relation);
static xrt_result_t wivrn_eye_tracker_get_tracked_pose(xrt_device * xdev,
xrt_input_name name,
int64_t at_timestamp_ns,
xrt_space_relation * out_relation)
{
*out_relation = static_cast<wivrn_eye_tracker *>(xdev)->get_tracked_pose(name, at_timestamp_ns);
return XRT_SUCCESS;
}
wivrn_eye_tracker::wivrn_eye_tracker(xrt_device * hmd) :
xrt_device{}, gaze(device_id::EYE_GAZE)
@@ -104,11 +108,4 @@ static void wivrn_eye_tracker_destroy(xrt_device * xdev)
{
}
static void wivrn_eye_tracker_get_tracked_pose(xrt_device * xdev,
xrt_input_name name,
int64_t at_timestamp_ns,
xrt_space_relation * out_relation)
{
*out_relation = static_cast<wivrn_eye_tracker *>(xdev)->get_tracked_pose(name, at_timestamp_ns);
}
} // namespace wivrn
+8 -12
View File
@@ -46,10 +46,14 @@ static xrt_result_t wivrn_hmd_update_inputs(xrt_device * xdev)
return XRT_SUCCESS;
}
static void wivrn_hmd_get_tracked_pose(xrt_device * xdev,
xrt_input_name name,
int64_t at_timestamp_ns,
xrt_space_relation * out_relation);
static xrt_result_t wivrn_hmd_get_tracked_pose(xrt_device * xdev,
xrt_input_name name,
int64_t at_timestamp_ns,
xrt_space_relation * out_relation)
{
*out_relation = static_cast<wivrn_hmd *>(xdev)->get_tracked_pose(name, at_timestamp_ns);
return XRT_SUCCESS;
}
static void wivrn_hmd_get_view_poses(xrt_device * xdev,
const xrt_vec3 * default_eye_relation,
@@ -416,14 +420,6 @@ static void wivrn_hmd_destroy(xrt_device * xdev)
static_cast<wivrn_hmd *>(xdev)->unregister();
}
static void wivrn_hmd_get_tracked_pose(xrt_device * xdev,
xrt_input_name name,
int64_t at_timestamp_ns,
xrt_space_relation * out_relation)
{
*out_relation = static_cast<wivrn_hmd *>(xdev)->get_tracked_pose(name, at_timestamp_ns);
}
static void wivrn_hmd_get_view_poses(xrt_device * xdev,
const xrt_vec3 * default_eye_relation,
int64_t at_timestamp_ns,