mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-19 13:18:32 +00:00
steamvr: Request hmd pose at current time instead of 1
This commit is contained in:
parent
8f3816a5fc
commit
729f726135
|
@ -1036,8 +1036,9 @@ vr::DriverPose_t
|
||||||
CDeviceDriver_Monado::GetPose()
|
CDeviceDriver_Monado::GetPose()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
timepoint_ns now_ns = os_monotonic_get_ns();
|
||||||
struct xrt_space_relation rel;
|
struct xrt_space_relation rel;
|
||||||
xrt_device_get_tracked_pose(m_xdev, XRT_INPUT_GENERIC_HEAD_POSE, 1,
|
xrt_device_get_tracked_pose(m_xdev, XRT_INPUT_GENERIC_HEAD_POSE, now_ns,
|
||||||
&rel);
|
&rel);
|
||||||
|
|
||||||
struct xrt_pose *offset = &m_xdev->tracking_origin->offset;
|
struct xrt_pose *offset = &m_xdev->tracking_origin->offset;
|
||||||
|
|
Loading…
Reference in a new issue