mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +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->origin.offset.position.y = 1.0f;
|
||||||
fact->p = p;
|
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_root(fact, "Tracking Factory", false);
|
||||||
u_var_add_vec3_f32(fact, &fact->origin.offset.position, "offset.pos");
|
u_var_add_pose(fact, &fact->origin.offset, "offset");
|
||||||
// u_var_add_vec4_f32(fact, &fact->origin.offset.orientation,
|
|
||||||
// "offset.rot");
|
|
||||||
|
|
||||||
// Finally set us as the tracking factory.
|
// Finally set us as the tracking factory.
|
||||||
p->base.tracking = &fact->base;
|
p->base.tracking = &fact->base;
|
||||||
|
|
Loading…
Reference in a new issue