mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-17 19:20:13 +00:00
d/survive: Switch to new get_hand_tracking signature
This commit is contained in:
parent
bec03a09bc
commit
193dcc8776
|
@ -392,7 +392,8 @@ static void
|
||||||
survive_controller_get_hand_tracking(struct xrt_device *xdev,
|
survive_controller_get_hand_tracking(struct xrt_device *xdev,
|
||||||
enum xrt_input_name name,
|
enum xrt_input_name name,
|
||||||
uint64_t at_timestamp_ns,
|
uint64_t at_timestamp_ns,
|
||||||
struct xrt_hand_joint_set *out_value)
|
struct xrt_hand_joint_set *out_value,
|
||||||
|
uint64_t *out_timestamp_ns)
|
||||||
{
|
{
|
||||||
struct survive_device *survive = (struct survive_device *)xdev;
|
struct survive_device *survive = (struct survive_device *)xdev;
|
||||||
|
|
||||||
|
@ -436,6 +437,9 @@ survive_controller_get_hand_tracking(struct xrt_device *xdev,
|
||||||
|
|
||||||
u_hand_joints_set_out_data(&survive->ctrl.hand_tracking, hand, &hand_relation, &hand_on_handle_pose, out_value);
|
u_hand_joints_set_out_data(&survive->ctrl.hand_tracking, hand, &hand_relation, &hand_on_handle_pose, out_value);
|
||||||
|
|
||||||
|
// This is the truth - we pose-predicted or interpolated all the way up to `at_timestamp_ns`.
|
||||||
|
*out_timestamp_ns = at_timestamp_ns;
|
||||||
|
|
||||||
// This is a lie - apparently libsurvive doesn't report controller tracked/untracked state, so just say that the
|
// This is a lie - apparently libsurvive doesn't report controller tracked/untracked state, so just say that the
|
||||||
// hand is being tracked
|
// hand is being tracked
|
||||||
out_value->is_active = true;
|
out_value->is_active = true;
|
||||||
|
|
Loading…
Reference in a new issue