update monado

This commit is contained in:
Patrick Nicolas
2025-07-04 23:43:06 +02:00
committed by xytovl
parent 90f49e579b
commit 1698f4aba6
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
# Keep in sync with CMakeLists.txt monado rev
rev = builtins.readFile ./monado-rev;
# Nix will output the correct hash when it doesn't match
hash = "sha256-A6TEtT/yrrlNjBSbVaY+WEsBWsnkAPqfW8muHJwN+iE=";
hash = "sha256-oyHPOwL05H9rjJJIW7ku5RIQ8I3ucJcSxTWNYvqU89c=";
};
};
+1 -1
View File
@@ -1 +1 @@
40fcca9baf7b0379b03ce68b474c9dd2569e9cf2
aa5b75cd3e4e1c1f8f93b53797f44d8c9e748204
+4 -3
View File
@@ -840,7 +840,7 @@ void wivrn_controller::update_hand_tracking(const from_headset::hand_tracking &
cnx->set_enabled(joints.hand_id == 0 ? to_headset::tracking_control::id::left_hand : to_headset::tracking_control::id::right_hand, false);
}
void wivrn_controller::set_output(xrt_output_name name, const xrt_output_value * value)
xrt_result_t wivrn_controller::set_output(xrt_output_name name, const xrt_output_value * value)
{
device_id id;
const bool left = device_type == XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER;
@@ -856,7 +856,7 @@ void wivrn_controller::set_output(xrt_output_name name, const xrt_output_value *
id = left ? device_id::LEFT_THUMB_HAPTIC : device_id::RIGHT_THUMB_HAPTIC;
break;
default:
return;
return XRT_ERROR_OUTPUT_UNSUPPORTED;
}
try
@@ -869,7 +869,8 @@ void wivrn_controller::set_output(xrt_output_name name, const xrt_output_value *
}
catch (...)
{
// Ignore errors
return XRT_ERROR_OUTPUT_REQUEST_FAILURE;
}
return XRT_SUCCESS;
}
} // namespace wivrn
+1 -1
View File
@@ -55,7 +55,7 @@ public:
xrt_result_t get_tracked_pose(xrt_input_name name, int64_t at_timestamp_ns, xrt_space_relation * out_relation);
xrt_result_t get_hand_tracking(xrt_input_name name, int64_t desired_timestamp_ns, xrt_hand_joint_set * out_value, int64_t * out_timestamp_ns);
void set_output(xrt_output_name name, const xrt_output_value * value);
xrt_result_t set_output(xrt_output_name name, const xrt_output_value * value);
void set_inputs(const from_headset::inputs &, const clock_offset &);