xrt: Add tracking system type for Hydra

This commit is contained in:
Christoph Haag 2020-08-18 01:53:45 +02:00 committed by Jakob Bornecrantz
parent 23bd6a4377
commit 7fb0af90de
2 changed files with 4 additions and 1 deletions
src/xrt
drivers/hydra
include/xrt

View file

@ -659,7 +659,7 @@ hydra_found(struct xrt_prober *xp,
// Create the system
struct hydra_system *hs = U_TYPED_CALLOC(struct hydra_system);
hs->base.type = XRT_TRACKING_TYPE_NONE; // ??
hs->base.type = XRT_TRACKING_TYPE_HYDRA;
snprintf(hs->base.name, XRT_TRACKING_NAME_LEN, "%s",
"Razer Hydra magnetic tracking");
// Dummy transform from local space to base.

View file

@ -48,6 +48,9 @@ enum xrt_tracking_type
// The device(s) are tracked by Ligthhouse
XRT_TRACKING_TYPE_LIGHTHOUSE,
// The device(s) are tracked by Hydra
XRT_TRACKING_TYPE_HYDRA
};
/*!