mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
st/prober: Name the tracking origin and make offset editable
This commit is contained in:
parent
3928c5041a
commit
694d978e25
|
@ -302,10 +302,11 @@ p_tracking_init(struct prober *p)
|
|||
fact->origin.offset.position.y = 1.0f;
|
||||
fact->p = p;
|
||||
|
||||
snprintf(fact->origin.name, sizeof(fact->origin.name),
|
||||
"PSVR & PSMV tracking");
|
||||
|
||||
u_var_add_root(fact, "Tracking Factory", false);
|
||||
u_var_add_vec3_f32(fact, &fact->origin.offset.position, "offset.pos");
|
||||
// u_var_add_vec4_f32(fact, &fact->origin.offset.orientation,
|
||||
// "offset.rot");
|
||||
u_var_add_pose(fact, &fact->origin.offset, "offset");
|
||||
|
||||
// Finally set us as the tracking factory.
|
||||
p->base.tracking = &fact->base;
|
||||
|
|
Loading…
Reference in a new issue