update monado
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
# Keep in sync with CMakeLists.txt monado rev
|
# Keep in sync with CMakeLists.txt monado rev
|
||||||
rev = builtins.readFile ./monado-rev;
|
rev = builtins.readFile ./monado-rev;
|
||||||
# Nix will output the correct hash when it doesn't match
|
# Nix will output the correct hash when it doesn't match
|
||||||
hash = "sha256-A6TEtT/yrrlNjBSbVaY+WEsBWsnkAPqfW8muHJwN+iE=";
|
hash = "sha256-oyHPOwL05H9rjJJIW7ku5RIQ8I3ucJcSxTWNYvqU89c=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
40fcca9baf7b0379b03ce68b474c9dd2569e9cf2
|
aa5b75cd3e4e1c1f8f93b53797f44d8c9e748204
|
||||||
|
|||||||
@@ -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);
|
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;
|
device_id id;
|
||||||
const bool left = device_type == XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER;
|
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;
|
id = left ? device_id::LEFT_THUMB_HAPTIC : device_id::RIGHT_THUMB_HAPTIC;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return XRT_ERROR_OUTPUT_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -869,7 +869,8 @@ void wivrn_controller::set_output(xrt_output_name name, const xrt_output_value *
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
// Ignore errors
|
return XRT_ERROR_OUTPUT_REQUEST_FAILURE;
|
||||||
}
|
}
|
||||||
|
return XRT_SUCCESS;
|
||||||
}
|
}
|
||||||
} // namespace wivrn
|
} // namespace wivrn
|
||||||
|
|||||||
@@ -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_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);
|
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 &);
|
void set_inputs(const from_headset::inputs &, const clock_offset &);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user