From 2ac8587675cb8c70df425474b74d658fa74dcb49 Mon Sep 17 00:00:00 2001 From: plyshka Date: Sun, 31 Dec 2023 00:38:18 +0500 Subject: [PATCH] st/steamvr_drv: Fill HMD properties for games and apps to recognize it correctly --- src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp b/src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp index c8d43f2ed..be3308613 100644 --- a/src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp +++ b/src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp @@ -1178,6 +1178,10 @@ CDeviceDriver_Monado::Activate(vr::TrackedDeviceIndex_t unObjectId) m_ulPropertyContainer = vr::VRProperties()->TrackedDeviceToPropertyContainer(unObjectId); //! @todo: proper serial and model number + + vr::VRProperties()->SetInt32Property(m_ulPropertyContainer, vr::Prop_DeviceClass_Int32, vr::TrackedDeviceClass_HMD); + vr::VRProperties()->SetStringProperty(m_ulPropertyContainer, vr::Prop_TrackingSystemName_String, "monado"); + vr::VRProperties()->SetStringProperty(m_ulPropertyContainer, vr::Prop_ManufacturerName_String, "Monado"); vr::VRProperties()->SetStringProperty(m_ulPropertyContainer, vr::Prop_ModelNumber_String, m_xdev->str); vr::VRProperties()->SetFloatProperty(m_ulPropertyContainer, vr::Prop_UserIpdMeters_Float, m_flIPD); vr::VRProperties()->SetFloatProperty(m_ulPropertyContainer, vr::Prop_UserHeadToEyeDepthMeters_Float, 0.f);