From d787f4e0fe01addeb8f22788f5699d7ed0e23db2 Mon Sep 17 00:00:00 2001 From: r57zone Date: Sat, 4 Dec 2021 15:49:26 +0400 Subject: [PATCH] Update readme's --- OpenVR/samples/driver_arduinohmd/driver_arduinohmd.cpp | 8 +++++--- README.RU.md | 2 +- README.md | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/OpenVR/samples/driver_arduinohmd/driver_arduinohmd.cpp b/OpenVR/samples/driver_arduinohmd/driver_arduinohmd.cpp index 5929501..289aefb 100644 --- a/OpenVR/samples/driver_arduinohmd/driver_arduinohmd.cpp +++ b/OpenVR/samples/driver_arduinohmd/driver_arduinohmd.cpp @@ -374,10 +374,12 @@ class CDeviceDriver : public vr::ITrackedDeviceServerDriver, public vr::IVRDispl return true; } - virtual bool IsDisplayRealDisplay() + virtual bool IsDisplayRealDisplay() { - return true; - //return false; + if (m_nWindowX == 0 && m_nWindowY == 0) + return false; + else + return true; //Support working on extended display } virtual void GetRecommendedRenderTargetSize( uint32_t *pnWidth, uint32_t *pnHeight ) diff --git a/README.RU.md b/README.RU.md index e0d3981..3f86786 100644 --- a/README.RU.md +++ b/README.RU.md @@ -1,7 +1,7 @@ [![EN](https://user-images.githubusercontent.com/9499881/33184537-7be87e86-d096-11e7-89bb-f3286f752bc6.png)](https://github.com/r57zone/OpenVR-ArduinoHMD/blob/master/README.md) [![RU](https://user-images.githubusercontent.com/9499881/27683795-5b0fbac6-5cd8-11e7-929c-057833e01fb1.png)](https://github.com/r57zone/OpenVR-ArduinoHMD/blob/master/README.RU.md) # OpenVR Arduino HMD -Драйвер для OpenVR / SteamVR, позволяющий отслеживать голову, с помощью любого Arduino трекера вращения, для самодельного VR шлема из [HDMI дисплея](http://ali.pub/1llt51).
+Драйвер для OpenVR / SteamVR, позволяющий отслеживать голову, с помощью любого Arduino трекера вращения, для самодельного VR шлема из [HDMI дисплея](http://alii.pub/65dbii) и [гарнитуры](http://alii.pub/65dct6).

![](https://user-images.githubusercontent.com/9499881/126820737-5a8f3c5b-f723-4184-94d8-5031f52f2270.gif) ## Настройка diff --git a/README.md b/README.md index ba22f5b..692d53c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![EN](https://user-images.githubusercontent.com/9499881/33184537-7be87e86-d096-11e7-89bb-f3286f752bc6.png)](https://github.com/r57zone/OpenVR-ArduinoHMD/blob/master/README.md) [![RU](https://user-images.githubusercontent.com/9499881/27683795-5b0fbac6-5cd8-11e7-929c-057833e01fb1.png)](https://github.com/r57zone/OpenVR-ArduinoHMD/blob/master/README.RU.md) # OpenVR Arduino HMD -Driver for OpenVR / SteamVR, which allows to track the head, using any Arduino rotation tracker, for a DIY VR HMD from [HDMI display](http://ali.pub/1llt51).
+Driver for OpenVR / SteamVR, which allows to track the head, using any Arduino rotation tracker, for a DIY VR HMD from [HDMI display](http://alii.pub/65dbii) and [headset](http://alii.pub/65dct6).

![](https://user-images.githubusercontent.com/9499881/126820737-5a8f3c5b-f723-4184-94d8-5031f52f2270.gif) ## Setup