[{"ts":1741001236949,"type":"say","say":"text","text":"this is a fork of the latest openvr library repo. please follow the instructions in OpenVR_Modifications.md. i have performed step 1 already. step 2, 3, and 4 seem to be referencing a file that doesn't exist. please find an equivalent file that will be suited for the target code, and perform the steps there.","images":[]},{"ts":1741001236997,"type":"say","say":"api_req_started","text":"{\"request\":\"<task>\\nthis is a fork of the latest openvr library repo. please follow the instructions in OpenVR_Modifications.md. i have performed step 1 already. step 2, 3, and 4 seem to be referencing a file that doesn't exist. please find an equivalent file that will be suited for the target code, and perform the steps there.\\n</task>\\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:27:17 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n(Not available)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n\\n\\n# Current Working Directory (c:/Users/decid/Documents/projects/openvr-resilient) Files\\n.gitattributes\\nCMakeLists.txt\\nLICENSE\\nOpenVR_Modifications.md\\nREADME.md\\nToolchain-clang.cmake\\nbin/\\nbin/androidarm64/\\nbin/androidarm64/libopenvr_api.so\\nbin/linux32/\\nbin/linux32/empty.dir\\nbin/linux32/libopenvr_api.so\\nbin/linux32/libopenvr_api.so.dbg\\nbin/linux64/\\nbin/linux64/empty.dir\\nbin/linux64/libopenvr_api.so\\nbin/linux64/libopenvr_api.so.dbg\\nbin/linuxarm64/\\nbin/linuxarm64/libopenvr_api_unity.so\\nbin/linuxarm64/libopenvr_api_unity.so.dbg\\nbin/linuxarm64/libopenvr_api.so\\nbin/linuxarm64/libopenvr_api.so.dbg\\nbin/osx32/\\nbin/osx32/libopenvr_api.dylib\\nbin/osx32/libopenvr_api.dylib.dSYM/\\nbin/osx32/libopenvr_api.dylib.dSYM/Contents/\\nbin/win32/\\nbin/win32/openvr_api.dll\\nbin/win32/openvr_api.dll.sig\\nbin/win32/openvr_api.pdb\\nbin/win64/\\nbin/win64/openvr_api.dll\\nbin/win64/openvr_api.dll.sig\\nbin/win64/openvr_api.pdb\\ncodegen/\\ncodegen/api_shared.py\\ncodegen/openvr_capi.cpp.py\\ncodegen/openvr_capi.h.py\\ncodegen/openvr_interop.cs.py\\ncodegen/README.md\\ncontroller_callouts/\\ncontroller_callouts/Callouts.eps\\ncontroller_callouts/Callouts.pdf\\ndocs/\\ndocs/Driver_API_Documentation.md\\nheaders/\\nheaders/openvr_api.cs\\nheaders/openvr_api.json\\nheaders/openvr_capi.h\\nheaders/openvr_driver.h\\nheaders/openvr.h\\nlib/\\nlib/androidarm64/\\nlib/androidarm64/libopenvr_api.so\\nlib/linux32/\\nlib/linux32/libopenvr_api.so\\nlib/linux64/\\nlib/linux64/libopenvr_api.so\\nlib/linuxarm64/\\nlib/linuxarm64/libopenvr_api_unity.so\\nlib/linuxarm64/libopenvr_api.so\\nlib/osx32/\\nlib/osx32/libopenvr_api.dylib\\nlib/win32/\\nlib/win32/openvr_api.lib\\nlib/win64/\\nlib/win64/openvr_api.lib\\nsamples/\\nsamples/CMakeLists.txt\\nsamples/README.md\\nsamples/samples_vs2017.sln\\nsamples/bin/\\nsamples/bin/cube_texture.png\\nsamples/bin/hellovr_actions.json\\nsamples/bin/hellovr_bindings_generic.json\\nsamples/bin/hellovr_bindings_vive_controller.json\\nsamples/bin/androidarm64/\\nsamples/bin/androidarm64/libopenvr_api.so\\nsamples/bin/drivers/\\nsamples/bin/drivers/sample/\\nsamples/bin/hmd_opencv_sandbox_resources/\\nsamples/bin/hmd_opencv_sandbox_resources/charlesfloor.frag\\nsamples/bin/hmd_opencv_sandbox_resources/charlesfloor.vert\\nsamples/bin/hmd_opencv_sandbox_resources/codepage437.pgm\\nsamples/bin/hmd_opencv_sandbox_resources/codepage437.png\\nsamples/bin/hmd_opencv_sandbox_resources/companion.frag\\nsamples/bin/hmd_opencv_sandbox_resources/companion.vert\\nsamples/bin/hmd_opencv_sandbox_resources/dumb.frag\\nsamples/bin/hmd_opencv_sandbox_resources/dumb.vert\\nsamples/bin/hmd_opencv_sandbox_resources/hmd_opencv_sandbox_actions.json\\nsamples/bin/linux32/\\nsamples/bin/linux64/\\nsamples/bin/linuxarm64/\\nsamples/bin/shaders/\\nsamples/bin/win32/\\nsamples/bin/win64/\\nsamples/drivers/\\nsamples/drivers/CMakeLists.txt\\nsamples/drivers/README.md\\nsamples/drivers/vs-openvr_samples.sln\\nsamples/drivers/drivers/\\nsamples/drivers/utils/\\nsamples/hellovr_dx12/\\nsamples/hellovr_dx12/d3dx12.h\\nsamples/hellovr_dx12/hellovr_dx12_main.cpp\\nsamples/hellovr_dx12/hellovr_dx12.vcxproj\\nsamples/hellovr_dx12/hellovr_dx12.vcxproj.filters\\nsamples/hellovr_opengl/\\nsamples/hellovr_opengl/CMakeLists.txt\\nsamples/hellovr_opengl/hellovr_opengl_main.cpp\\nsamples/hellovr_opengl/hellovr_opengl.vcxproj\\nsamples/hellovr_opengl/hellovr_opengl.vcxproj.filters\\nsamples/hellovr_vulkan/\\nsamples/hellovr_vulkan/CMakeLists.txt\\nsamples/hellovr_vulkan/hellovr_vulkan_main.cpp\\nsamples/helloworldoverlay/\\nsamples/helloworldoverlay/CMakeLists.txt\\nsamples/helloworldoverlay/helloworldoverlay.pro\\nsamples/helloworldoverlay/main.cpp\\nsamples/helloworldoverlay/openvroverlaycontroller.cpp\\nsamples/helloworldoverlay/openvroverlaycontroller.h\\nsamples/helloworldoverlay/overlaywidget.cpp\\nsamples/helloworldoverlay/overlaywidget.h\\nsamples/helloworldoverlay/overlaywidget.ui\\nsamples/hmd_opencv_sandbox/\\nsamples/hmd_opencv_sandbox/camera_app.cpp\\nsamples/hmd_opencv_sandbox/camera_app.h\\nsamples/hmd_opencv_sandbox/chew.c\\nsamples/hmd_opencv_sandbox/chew.h\\nsamples/hmd_opencv_sandbox/chewtypes.h\\nsamples/hmd_opencv_sandbox/common_hello.cpp\\nsamples/hmd_opencv_sandbox/common_hello.h\\nsamples/hmd_opencv_sandbox/geometry_object.cpp\\nsamples/hmd_opencv_sandbox/geometry_object.h\\nsamples/hmd_opencv_sandbox/hmd_opencv_sandbox.cpp\\nsamples/hmd_opencv_sandbox/hmd_opencv_sandbox.h\\nsamples/hmd_opencv_sandbox/opencv_process.cpp\\nsamples/hmd_opencv_sandbox/opencv_process.h\\nsamples/hmd_opencv_sandbox/os_generic.h\\nsamples/hmd_opencv_sandbox/shader_file.cpp\\nsamples/hmd_opencv_sandbox/shader_file.h\\nsamples/hmd_opencv_sandbox/stb_image_write.h\\nsamples/hmd_opencv_sandbox/stb_image.h\\nsamples/hmd_opencv_sandbox/vlinterm.c\\nsamples/hmd_opencv_sandbox/vlinterm.h\\nsamples/hmd_opencv_sandbox/vrterminal.cpp\\nsamples/hmd_opencv_sandbox/vrterminal.h\\nsamples/shared/\\nsamples/shared/compat.h\\nsamples/shared/lodepng.cpp\\nsamples/shared/lodepng.h\\nsamples/shared/Matrices.cpp\\nsamples/shared/Matrices.h\\nsamples/shared/pathtools.cpp\\nsamples/shared/pathtools.h\\nsamples/shared/strtools.cpp\\nsamples/shared/strtools.h\\nsamples/shared/Vectors.h\\nsamples/thirdparty/\\nsamples/thirdparty/glew/\\nsamples/thirdparty/sdl2-2.0.3/\\nsamples/thirdparty/vulkan-1.0.49.0/\\nsamples/tracked_camera_openvr_sample/\\nsamples/tracked_camera_openvr_sample/CMakeLists.txt\\nsamples/tracked_camera_openvr_sample/main.cpp\\nsamples/tracked_camera_openvr_sample/tracked_camera_openvr_sample.cpp\\nsamples/tracked_camera_openvr_sample/tracked_camera_openvr_sample.h\\nsamples/tracked_camera_openvr_sample/tracked_camera_openvr_sample.pro\\nsamples/unity_keyboard_sample/\\nsamples/unity_keyboard_sample/Assets/\\nsamples/unity_keyboard_sample/ProjectSettings/\\nsamples/unity_teleport_sample/\\nsamples/unity_teleport_sample/Assets/\\nsamples/unity_teleport_sample/ProjectSettings/\\nsrc/\\nsrc/CMakeLists.txt\\nsrc/Info.plist\\nsrc/ivrclientcore.h\\nsrc/jsoncpp.cpp\\nsrc/openvr_api_public.cpp\\nsrc/openvr.pc.in\\nsrc/README\\nsrc/json/\\nsrc/json/json-forwards.h\\nsrc/json/json.h\\nsrc/vrcore/\\nsrc/vrcore/dirtools_public.cpp\\nsrc/vrcore/dirtools_public.h\\nsrc/vrcore/envvartools_public.cpp\\nsrc/vrcore/envvartools_public.h\\nsrc/vrcore/hmderrors_public.cpp\\nsrc/vrcore/hmderrors_public.h\\nsrc/vrcore/pathtools_public.cpp\\nsrc/vrcore/pathtools_public.h\\nsrc/vrcore/sharedlibtools_public.cpp\\nsrc/vrcore/sharedlibtools_public.h\\nsrc/vrcore/strtools_public.cpp\\nsrc/vrcore/strtools_public.h\\nsrc/vrcore/vrpathregistry_public.cpp\\nsrc/vrcore/vrpathregistry_public.h\\n\\n(File list truncated. Use list_files on specific subdirectories if you need to explore further.)\\n</environment_details>\",\"tokensIn\":3,\"tokensOut\":179,\"cacheWrites\":16248,\"cacheReads\":0,\"cost\":0.06362400000000001}"},{"ts":1741001239373,"type":"ask","ask":"api_req_failed","text":"429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (c798c237-8869-4d4f-a50e-54a864da0eac) of 20,000 input tokens per minute. For details, refer to: https://docs.anthropic.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"}}"},{"ts":1741001300022,"type":"say","say":"api_req_retried"},{"ts":1741001302103,"type":"ask","ask":"api_req_failed","text":"429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (c798c237-8869-4d4f-a50e-54a864da0eac) of 20,000 input tokens per minute. For details, refer to: https://docs.anthropic.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"}}"},{"ts":1741001575336,"type":"say","say":"api_req_retried"},{"ts":1741001578258,"type":"say","say":"text","text":"Let me first understand what the task is by reading the OpenVR_Modifications.md file to see what steps I need to follow.\n\nI need to:\n1. Read OpenVR_Modifications.md to understand the modifications needed\n2. Find the equivalent file for steps 2, 3, and 4 since the user mentioned the referenced file doesn't exist\n3. Implement the required modifications in the appropriate file\n\nI'll start by reading the OpenVR_Modifications.md file to understand what modifications are needed.","partial":false},{"ts":1741001580576,"type":"ask","ask":"tool","text":"{\"tool\":\"readFile\",\"path\":\"OpenVR_Modifications.md\",\"content\":\"c:\\\\Users\\\\decid\\\\Documents\\\\projects\\\\openvr-resilient\\\\OpenVR_Modifications.md\"}","partial":false},{"ts":1741001600826,"type":"say","say":"api_req_started","text":"{\"request\":\"[read_file for 'OpenVR_Modifications.md'] Result:\\n\\n  1 | # OpenVR Library Modifications for Raw IMU Data Access\\r\\n  2 | \\r\\n  3 | This document outlines the necessary modifications to the OpenVR library to enable continuous access to raw IMU data, even when optical tracking is lost.\\r\\n  4 | \\r\\n  5 | ## Problem Statement\\r\\n  6 | \\r\\n  7 | The current OpenVR API only provides IMU data through the `TrackedDevicePose_t` structure, which becomes invalid when optical tracking is lost. This means applications cannot access raw IMU data during tracking loss, which is problematic for applications that need continuous IMU data.\\r\\n  8 | \\r\\n  9 | ## Solution Overview\\r\\n 10 | \\r\\n 11 | After examining the OpenVR codebase at \\\"C:\\\\Users\\\\decid\\\\Documents\\\\projects\\\\openvr-resilient\\\", we've identified that OpenVR already has structures for IMU data (`ImuSample_t`) but doesn't expose a direct API for accessing this data continuously. We need to modify the OpenVR library to:\\r\\n 12 | \\r\\n 13 | 1. Expose a new interface for accessing raw IMU data\\r\\n 14 | 2. Implement this interface to provide access to the IMU data regardless of tracking state\\r\\n 15 | \\r\\n 16 | ## Detailed Modifications\\r\\n 17 | \\r\\n 18 | ### 1. Add a New Interface for IMU Data Access\\r\\n 19 | \\r\\n 20 | In `headers/openvr.h`, add a new interface definition and version string:\\r\\n 21 | \\r\\n 22 | ```cpp\\r\\n 23 | static const char* const IVRRawIMUData_Version = \\\"IVRRawIMUData_001\\\";\\r\\n 24 | \\r\\n 25 | /** Interface for accessing raw IMU data */\\r\\n 26 | class IVRRawIMUData\\r\\n 27 | {\\r\\n 28 | public:\\r\\n 29 |     /** Get raw gyroscope data in radians per second */\\r\\n 30 |     virtual bool GetRawGyroscopeData(float* x, float* y, float* z) = 0;\\r\\n 31 |     \\r\\n 32 |     /** Get raw accelerometer data in meters per second squared */\\r\\n 33 |     virtual bool GetRawAccelerometerData(float* x, float* y, float* z) = 0;\\r\\n 34 |     \\r\\n 35 |     /** Get the timestamp of the last IMU sample in seconds */\\r\\n 36 |     virtual bool GetIMUSampleTimestamp(double* timestamp) = 0;\\r\\n 37 |     \\r\\n 38 |     /** Get a full IMU sample containing both gyroscope and accelerometer data */\\r\\n 39 |     virtual bool GetIMUSample(vr::ImuSample_t* pSample) = 0;\\r\\n 40 | };\\r\\n 41 | ```\\r\\n 42 | \\r\\n 43 | ### 2. Implement the Interface in the OpenVR Runtime\\r\\n 44 | \\r\\n 45 | In `src/vrcore/vrcore_impl.cpp` (or an appropriate implementation file), add the implementation of the new interface:\\r\\n 46 | \\r\\n 47 | ```cpp\\r\\n 48 | class CVRRawIMUData : public IVRRawIMUData\\r\\n 49 | {\\r\\n 50 | public:\\r\\n 51 |     CVRRawIMUData()\\r\\n 52 |     {\\r\\n 53 |         // Initialize any necessary resources\\r\\n 54 |     }\\r\\n 55 |     \\r\\n 56 |     virtual ~CVRRawIMUData()\\r\\n 57 |     {\\r\\n 58 |         // Clean up resources\\r\\n 59 |     }\\r\\n 60 |     \\r\\n 61 |     virtual bool GetRawGyroscopeData(float* x, float* y, float* z) override\\r\\n 62 |     {\\r\\n 63 |         // Get the HMD device\\r\\n 64 |         vr::TrackedDeviceIndex_t hmdIndex = vr::k_unTrackedDeviceIndex_Hmd;\\r\\n 65 |         \\r\\n 66 |         // Check if the HMD is connected\\r\\n 67 |         if (!vr::VRSystem()->IsTrackedDeviceConnected(hmdIndex))\\r\\n 68 |             return false;\\r\\n 69 |         \\r\\n 70 |         // Try to get the latest IMU sample\\r\\n 71 |         vr::ImuSample_t sample;\\r\\n 72 |         if (GetIMUSample(&sample))\\r\\n 73 |         {\\r\\n 74 |             // Convert from double to float\\r\\n 75 |             *x = (float)sample.vGyro.v[0];\\r\\n 76 |             *y = (float)sample.vGyro.v[1];\\r\\n 77 |             *z = (float)sample.vGyro.v[2];\\r\\n 78 |             return true;\\r\\n 79 |         }\\r\\n 80 |         \\r\\n 81 |         return false;\\r\\n 82 |     }\\r\\n 83 |     \\r\\n 84 |     virtual bool GetRawAccelerometerData(float* x, float* y, float* z) override\\r\\n 85 |     {\\r\\n 86 |         // Get the HMD device\\r\\n 87 |         vr::TrackedDeviceIndex_t hmdIndex = vr::k_unTrackedDeviceIndex_Hmd;\\r\\n 88 |         \\r\\n 89 |         // Check if the HMD is connected\\r\\n 90 |         if (!vr::VRSystem()->IsTrackedDeviceConnected(hmdIndex))\\r\\n 91 |             return false;\\r\\n 92 |         \\r\\n 93 |         // Try to get the latest IMU sample\\r\\n 94 |         vr::ImuSample_t sample;\\r\\n 95 |         if (GetIMUSample(&sample))\\r\\n 96 |         {\\r\\n 97 |             // Convert from double to float\\r\\n 98 |             *x = (float)sample.vAccel.v[0];\\r\\n 99 |             *y = (float)sample.vAccel.v[1];\\r\\n100 |             *z = (float)sample.vAccel.v[2];\\r\\n101 |             return true;\\r\\n102 |         }\\r\\n103 |         \\r\\n104 |         return false;\\r\\n105 |     }\\r\\n106 |     \\r\\n107 |     virtual bool GetIMUSampleTimestamp(double* timestamp) override\\r\\n108 |     {\\r\\n109 |         // Get the HMD device\\r\\n110 |         vr::TrackedDeviceIndex_t hmdIndex = vr::k_unTrackedDeviceIndex_Hmd;\\r\\n111 |         \\r\\n112 |         // Check if the HMD is connected\\r\\n113 |         if (!vr::VRSystem()->IsTrackedDeviceConnected(hmdIndex))\\r\\n114 |             return false;\\r\\n115 |         \\r\\n116 |         // Try to get the latest IMU sample\\r\\n117 |         vr::ImuSample_t sample;\\r\\n118 |         if (GetIMUSample(&sample))\\r\\n119 |         {\\r\\n120 |             *timestamp = sample.fSampleTime;\\r\\n121 |             return true;\\r\\n122 |         }\\r\\n123 |         \\r\\n124 |         return false;\\r\\n125 |     }\\r\\n126 |     \\r\\n127 |     virtual bool GetIMUSample(vr::ImuSample_t* pSample) override\\r\\n128 |     {\\r\\n129 |         // This is the key method that needs to be implemented to access the raw IMU data\\r\\n130 |         // The implementation will depend on the specific driver and hardware\\r\\n131 |         \\r\\n132 |         // Get the HMD device\\r\\n133 |         vr::TrackedDeviceIndex_t hmdIndex = vr::k_unTrackedDeviceIndex_Hmd;\\r\\n134 |         \\r\\n135 |         // Check if the HMD is connected\\r\\n136 |         if (!vr::VRSystem()->IsTrackedDeviceConnected(hmdIndex))\\r\\n137 |             return false;\\r\\n138 |         \\r\\n139 |         // Access the IMU data buffer\\r\\n140 |         // This is where we need to access the driver's internal IMU data buffer\\r\\n141 |         // The exact implementation will depend on the specific driver\\r\\n142 |         \\r\\n143 |         // For example, we might use the IVRIOBuffer interface to access the IMU data buffer:\\r\\n144 |         vr::IOBufferHandle_t imuBuffer = vr::k_ulInvalidIOBufferHandle;\\r\\n145 |         vr::EIOBufferError error = vr::VRIOBuffer()->Open(\\r\\n146 |             \\\"/dev/imu/hmd\\\", \\r\\n147 |             vr::IOBufferMode_Read, \\r\\n148 |             sizeof(vr::ImuSample_t), \\r\\n149 |             1, \\r\\n150 |             &imuBuffer);\\r\\n151 |         \\r\\n152 |         if (error != vr::IOBufferError_None || imuBuffer == vr::k_ulInvalidIOBufferHandle)\\r\\n153 |             return false;\\r\\n154 |         \\r\\n155 |         uint32_t bytesRead = 0;\\r\\n156 |         error = vr::VRIOBuffer()->Read(imuBuffer, pSample, sizeof(vr::ImuSample_t), &bytesRead);\\r\\n157 |         \\r\\n158 |         vr::VRIOBuffer()->Close(imuBuffer);\\r\\n159 |         \\r\\n160 |         return (error == vr::IOBufferError_None && bytesRead == sizeof(vr::ImuSample_t));\\r\\n161 |     }\\r\\n162 | };\\r\\n163 | ```\\r\\n164 | \\r\\n165 | ### 3. Expose the Interface through the OpenVR API\\r\\n166 | \\r\\n167 | In the appropriate factory method in the OpenVR implementation (likely in `src/vrcore/vrcore_impl.cpp`), add code to create and return the new interface:\\r\\n168 | \\r\\n169 | ```cpp\\r\\n170 | void* CVRSystem::GetGenericInterface(const char* pchInterfaceVersion, vr::EVRInitError* peError)\\r\\n171 | {\\r\\n172 |     // Existing code...\\r\\n173 |     \\r\\n174 |     // Check for our new interface\\r\\n175 |     if (strcmp(pchInterfaceVersion, vr::IVRRawIMUData_Version) == 0)\\r\\n176 |     {\\r\\n177 |         if (!m_pRawIMUData)\\r\\n178 |         {\\r\\n179 |             m_pRawIMUData = new CVRRawIMUData();\\r\\n180 |         }\\r\\n181 |         \\r\\n182 |         if (peError)\\r\\n183 |             *peError = vr::VRInitError_None;\\r\\n184 |             \\r\\n185 |         return m_pRawIMUData;\\r\\n186 |     }\\r\\n187 |     \\r\\n188 |     // Existing code...\\r\\n189 | }\\r\\n190 | ```\\r\\n191 | \\r\\n192 | ### 4. Add the Interface Member to the CVRSystem Class\\r\\n193 | \\r\\n194 | In the appropriate header file (likely `src/vrcore/vrcore_impl.h`), add a member for the new interface:\\r\\n195 | \\r\\n196 | ```cpp\\r\\n197 | class CVRSystem : public vr::IVRSystem\\r\\n198 | {\\r\\n199 |     // Existing code...\\r\\n200 |     \\r\\n201 | private:\\r\\n202 |     // Existing members...\\r\\n203 |     CVRRawIMUData* m_pRawIMUData;\\r\\n204 | };\\r\\n205 | ```\\r\\n206 | \\r\\n207 | ## Building the Modified OpenVR Library\\r\\n208 | \\r\\n209 | 1. Clone the OpenVR repository: `git clone https://github.com/ValveSoftware/openvr.git`\\r\\n210 | 2. Make the modifications described above\\r\\n211 | 3. Build the library following the standard build instructions\\r\\n212 | 4. Replace the existing OpenVR library with your modified version\\r\\n213 | \\r\\n214 | ## Using the Modified Library\\r\\n215 | \\r\\n216 | Once the modified library is in place, you can access the raw IMU data using the following code:\\r\\n217 | \\r\\n218 | ```cpp\\r\\n219 | #include <openvr.h>\\r\\n220 | \\r\\n221 | // Get the raw IMU data interface\\r\\n222 | vr::IVRRawIMUData* pRawIMUData = nullptr;\\r\\n223 | vr::EVRInitError error = vr::VRInitError_None;\\r\\n224 | pRawIMUData = (vr::IVRRawIMUData*)vr::VR_GetGenericInterface(vr::IVRRawIMUData_Version, &error);\\r\\n225 | \\r\\n226 | if (error != vr::VRInitError_None || !pRawIMUData)\\r\\n227 | {\\r\\n228 |     // Handle error\\r\\n229 |     return false;\\r\\n230 | }\\r\\n231 | \\r\\n232 | // Get the raw gyroscope data\\r\\n233 | float gyroX, gyroY, gyroZ;\\r\\n234 | if (pRawIMUData->GetRawGyroscopeData(&gyroX, &gyroY, &gyroZ))\\r\\n235 | {\\r\\n236 |     // Use the gyroscope data\\r\\n237 |     printf(\\\"Gyro: %f, %f, %f\\\\n\\\", gyroX, gyroY, gyroZ);\\r\\n238 | }\\r\\n239 | \\r\\n240 | // Get the raw accelerometer data\\r\\n241 | float accelX, accelY, accelZ;\\r\\n242 | if (pRawIMUData->GetRawAccelerometerData(&accelX, &accelY, &accelZ))\\r\\n243 | {\\r\\n244 |     // Use the accelerometer data\\r\\n245 |     printf(\\\"Accel: %f, %f, %f\\\\n\\\", accelX, accelY, accelZ);\\r\\n246 | }\\r\\n247 | \\r\\n248 | // Get a full IMU sample\\r\\n249 | vr::ImuSample_t sample;\\r\\n250 | if (pRawIMUData->GetIMUSample(&sample))\\r\\n251 | {\\r\\n252 |     // Use the IMU sample\\r\\n253 |     printf(\\\"IMU Sample: Time=%f, Gyro=(%f, %f, %f), Accel=(%f, %f, %f)\\\\n\\\",\\r\\n254 |         sample.fSampleTime,\\r\\n255 |         sample.vGyro.v[0], sample.vGyro.v[1], sample.vGyro.v[2],\\r\\n256 |         sample.vAccel.v[0], sample.vAccel.v[1], sample.vAccel.v[2]);\\r\\n257 | }\\r\\n258 | ```\\r\\n259 | \\r\\n260 | ## Alternative Approaches\\r\\n261 | \\r\\n262 | If modifying the OpenVR library is not feasible, consider these alternatives:\\r\\n263 | \\r\\n264 | ### 1. Use the IVRIOBuffer Interface\\r\\n265 | \\r\\n266 | The OpenVR API already includes an `IVRIOBuffer` interface that might be used to access raw IMU data. This would require knowledge of the specific buffer paths used by the driver to store IMU data.\\r\\n267 | \\r\\n268 | ```cpp\\r\\n269 | vr::IVRIOBuffer* pIOBuffer = vr::VRIOBuffer();\\r\\n270 | vr::IOBufferHandle_t imuBuffer = vr::k_ulInvalidIOBufferHandle;\\r\\n271 | vr::EIOBufferError error = pIOBuffer->Open(\\\"/dev/imu/hmd\\\", vr::IOBufferMode_Read, sizeof(vr::ImuSample_t), 1, &imuBuffer);\\r\\n272 | \\r\\n273 | if (error == vr::IOBufferError_None && imuBuffer != vr::k_ulInvalidIOBufferHandle)\\r\\n274 | {\\r\\n275 |     vr::ImuSample_t sample;\\r\\n276 |     uint32_t bytesRead = 0;\\r\\n277 |     error = pIOBuffer->Read(imuBuffer, &sample, sizeof(vr::ImuSample_t), &bytesRead);\\r\\n278 |     \\r\\n279 |     if (error == vr::IOBufferError_None && bytesRead == sizeof(vr::ImuSample_t))\\r\\n280 |     {\\r\\n281 |         // Use the IMU sample\\r\\n282 |         printf(\\\"IMU Sample: Time=%f, Gyro=(%f, %f, %f), Accel=(%f, %f, %f)\\\\n\\\",\\r\\n283 |             sample.fSampleTime,\\r\\n284 |             sample.vGyro.v[0], sample.vGyro.v[1], sample.vGyro.v[2],\\r\\n285 |             sample.vAccel.v[0], sample.vAccel.v[1], sample.vAccel.v[2]);\\r\\n286 |     }\\r\\n287 |     \\r\\n288 |     pIOBuffer->Close(imuBuffer);\\r\\n289 | }\\r\\n290 | ```\\r\\n291 | \\r\\n292 | ### 2. Create a Custom Driver\\r\\n293 | \\r\\n294 | Create a custom OpenVR driver that wraps the existing driver and exposes the IMU data through a custom interface.\\r\\n295 | \\r\\n296 | ### 3. Use a Different VR SDK\\r\\n297 | \\r\\n298 | Consider using a different VR SDK that provides direct access to IMU data, such as the Oculus SDK or the SteamVR Unity Plugin.\\r\\n299 | \\r\\n300 | ## Notes\\r\\n301 | \\r\\n302 | - The exact implementation details may vary depending on the specific driver you're using (HTC Vive, Oculus, etc.)\\r\\n303 | - You may need to study the driver code to understand how to access the raw IMU data\\r\\n304 | - Some drivers may already have internal access to raw IMU data, but don't expose it through the public API\\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:33:20 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n16,430 (8%)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n</environment_details>\",\"tokensIn\":3,\"tokensOut\":281,\"cacheWrites\":4734,\"cacheReads\":16248,\"cost\":0.0268509}"},{"ts":1741001603702,"type":"say","say":"text","text":"Now I understand the task. The OpenVR_Modifications.md file outlines modifications needed to enable continuous access to raw IMU data in OpenVR, even when optical tracking is lost. The user has already completed step 1, which is adding a new interface for IMU data access in headers/openvr.h.\n\nSteps 2, 3, and 4 involve:\n2. Implementing the interface in \"src/vrcore/vrcore_impl.cpp\"\n3. Exposing the interface through the OpenVR API in the same file\n4. Adding the interface member to the CVRSystem class in \"src/vrcore/vrcore_impl.h\"\n\nHowever, the user mentioned that these files don't exist. I need to find equivalent files where these modifications should be made.\n\nLet me first check if there's a similar implementation file structure in the src directory.\n\nI'll look at the structure of the src directory to find the appropriate files for implementing the interface.","partial":false},{"ts":1741001608352,"type":"ask","ask":"tool","text":"{\"tool\":\"listFilesTopLevel\",\"path\":\"src\",\"content\":\"CMakeLists.txt\\nInfo.plist\\nivrclientcore.h\\njsoncpp.cpp\\nopenvr_api_public.cpp\\nopenvr.pc.in\\nREADME\\njson/\\nvrcore/\"}","partial":false},{"ts":1741001628817,"type":"say","say":"api_req_started","text":"{\"request\":\"[list_files for 'src'] Result:\\n\\nCMakeLists.txt\\nInfo.plist\\nivrclientcore.h\\njsoncpp.cpp\\nopenvr_api_public.cpp\\nopenvr.pc.in\\nREADME\\njson/\\nvrcore/\\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:33:48 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n21,266 (11%)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n</environment_details>\",\"tokensIn\":2,\"tokensOut\":106,\"cacheWrites\":479,\"cacheReads\":20982,\"cost\":0.00968685}"},{"ts":1741001630262,"type":"say","say":"text","text":"I see that there is a vrcore directory in src, which is likely where the implementation files would be. Let me check what's in that directory.\n\nLet me check the contents of the vrcore directory:","partial":false},{"ts":1741001631075,"type":"ask","ask":"tool","text":"{\"tool\":\"listFilesTopLevel\",\"path\":\"src/vrcore\",\"content\":\"dirtools_public.cpp\\ndirtools_public.h\\nenvvartools_public.cpp\\nenvvartools_public.h\\nhmderrors_public.cpp\\nhmderrors_public.h\\npathtools_public.cpp\\npathtools_public.h\\nsharedlibtools_public.cpp\\nsharedlibtools_public.h\\nstrtools_public.cpp\\nstrtools_public.h\\nvrpathregistry_public.cpp\\nvrpathregistry_public.h\"}","partial":false},{"ts":1741001637271,"type":"say","say":"api_req_started","text":"{\"request\":\"[list_files for 'src/vrcore'] Result:\\n\\ndirtools_public.cpp\\ndirtools_public.h\\nenvvartools_public.cpp\\nenvvartools_public.h\\nhmderrors_public.cpp\\nhmderrors_public.h\\npathtools_public.cpp\\npathtools_public.h\\nsharedlibtools_public.cpp\\nsharedlibtools_public.h\\nstrtools_public.cpp\\nstrtools_public.h\\nvrpathregistry_public.cpp\\nvrpathregistry_public.h\\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:33:57 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n21,569 (11%)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n</environment_details>\",\"tokensIn\":2,\"tokensOut\":167,\"cacheWrites\":366,\"cacheReads\":21461,\"cost\":0.0103218}"},{"ts":1741001638809,"type":"say","say":"text","text":"I don't see the vrcore_impl.cpp or vrcore_impl.h files mentioned in the OpenVR_Modifications.md. Let me look at the main implementation file openvr_api_public.cpp to see if that's where the implementation should go.\n\nLet me examine the openvr_api_public.cpp file to see if it contains the implementation of the OpenVR API:","partial":false},{"ts":1741001640340,"type":"ask","ask":"tool","text":"{\"tool\":\"readFile\",\"path\":\"src/openvr_api_public.cpp\",\"content\":\"c:\\\\Users\\\\decid\\\\Documents\\\\projects\\\\openvr-resilient\\\\src\\\\openvr_api_public.cpp\"}","partial":false},{"ts":1741001652636,"type":"say","say":"api_req_started","text":"{\"request\":\"[read_file for 'src/openvr_api_public.cpp'] Result:\\n\\n  1 | //========= Copyright Valve Corporation ============//\\r\\n  2 | #define VR_API_EXPORT 1\\r\\n  3 | #include \\\"openvr.h\\\"\\r\\n  4 | #include \\\"ivrclientcore.h\\\"\\r\\n  5 | #include <vrcore/pathtools_public.h>\\r\\n  6 | #include <vrcore/sharedlibtools_public.h>\\r\\n  7 | #include <vrcore/envvartools_public.h>\\r\\n  8 | #include \\\"hmderrors_public.h\\\"\\r\\n  9 | #include <vrcore/strtools_public.h>\\r\\n 10 | #include <vrcore/vrpathregistry_public.h>\\r\\n 11 | #include <mutex>\\r\\n 12 | \\r\\n 13 | using vr::EVRInitError;\\r\\n 14 | using vr::IVRSystem;\\r\\n 15 | using vr::IVRClientCore;\\r\\n 16 | using vr::VRInitError_None;\\r\\n 17 | \\r\\n 18 | // figure out how to import from the VR API dll\\r\\n 19 | #if defined(_WIN32)\\r\\n 20 | \\r\\n 21 | #if !defined(OPENVR_BUILD_STATIC)\\r\\n 22 | #define VR_EXPORT_INTERFACE extern \\\"C\\\" __declspec( dllexport )\\r\\n 23 | #else\\r\\n 24 | #define VR_EXPORT_INTERFACE extern \\\"C\\\"\\r\\n 25 | #endif\\r\\n 26 | \\r\\n 27 | #elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__)\\r\\n 28 | \\r\\n 29 | #define VR_EXPORT_INTERFACE extern \\\"C\\\" __attribute__((visibility(\\\"default\\\")))\\r\\n 30 | \\r\\n 31 | #else\\r\\n 32 | #error \\\"Unsupported Platform.\\\"\\r\\n 33 | #endif\\r\\n 34 | \\r\\n 35 | namespace vr\\r\\n 36 | {\\r\\n 37 | \\r\\n 38 | static void *g_pVRModule = NULL;\\r\\n 39 | static IVRClientCore *g_pHmdSystem = NULL;\\r\\n 40 | static std::recursive_mutex g_mutexSystem;\\r\\n 41 | \\r\\n 42 | \\r\\n 43 | typedef void* (*VRClientCoreFactoryFn)(const char *pInterfaceName, int *pReturnCode);\\r\\n 44 | \\r\\n 45 | static uint32_t g_nVRToken = 0;\\r\\n 46 | \\r\\n 47 | uint32_t VR_GetInitToken()\\r\\n 48 | {\\r\\n 49 | \\treturn g_nVRToken;\\r\\n 50 | }\\r\\n 51 | \\r\\n 52 | EVRInitError VR_LoadHmdSystemInternal();\\r\\n 53 | void CleanupInternalInterfaces();\\r\\n 54 | \\r\\n 55 | \\r\\n 56 | uint32_t VR_InitInternal2( EVRInitError *peError, vr::EVRApplicationType eApplicationType, const char *pStartupInfo )\\r\\n 57 | {\\r\\n 58 | \\tstd::lock_guard<std::recursive_mutex> lock( g_mutexSystem );\\r\\n 59 | \\r\\n 60 | \\tEVRInitError err = VR_LoadHmdSystemInternal();\\r\\n 61 | \\tif ( err == vr::VRInitError_None )\\r\\n 62 | \\t{\\r\\n 63 | \\t\\terr = g_pHmdSystem->Init( eApplicationType, pStartupInfo );\\r\\n 64 | \\t}\\r\\n 65 | \\r\\n 66 | \\tif ( peError )\\r\\n 67 | \\t\\t*peError = err;\\r\\n 68 | \\r\\n 69 | \\tif ( err != VRInitError_None )\\r\\n 70 | \\t{\\r\\n 71 | \\t\\tSharedLib_Unload( g_pVRModule );\\r\\n 72 | \\t\\tg_pHmdSystem = NULL;\\r\\n 73 | \\t\\tg_pVRModule = NULL;\\r\\n 74 | \\r\\n 75 | \\t\\treturn 0;\\r\\n 76 | \\t}\\r\\n 77 | \\r\\n 78 | \\treturn ++g_nVRToken;\\r\\n 79 | }\\r\\n 80 | \\r\\n 81 | VR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal( EVRInitError *peError, EVRApplicationType eApplicationType );\\r\\n 82 | \\r\\n 83 | uint32_t VR_InitInternal( EVRInitError *peError, vr::EVRApplicationType eApplicationType )\\r\\n 84 | {\\r\\n 85 | \\treturn VR_InitInternal2( peError, eApplicationType, nullptr );\\r\\n 86 | }\\r\\n 87 | \\r\\n 88 | void VR_ShutdownInternal()\\r\\n 89 | {\\r\\n 90 | \\tstd::lock_guard<std::recursive_mutex> lock( g_mutexSystem );\\r\\n 91 | \\r\\n 92 | #if !defined( VR_API_PUBLIC )\\r\\n 93 | \\tCleanupInternalInterfaces();\\r\\n 94 | #endif\\r\\n 95 | \\r\\n 96 | \\tif ( g_pHmdSystem )\\r\\n 97 | \\t{\\r\\n 98 | \\t\\tg_pHmdSystem->Cleanup();\\r\\n 99 | \\t\\tg_pHmdSystem = NULL;\\r\\n100 | \\t}\\r\\n101 | \\r\\n102 | \\tif ( g_pVRModule )\\r\\n103 | \\t{\\r\\n104 | \\t\\tSharedLib_Unload( g_pVRModule );\\r\\n105 | \\t\\tg_pVRModule = NULL;\\r\\n106 | \\t}\\r\\n107 | \\r\\n108 | \\t++g_nVRToken;\\r\\n109 | }\\r\\n110 | \\r\\n111 | EVRInitError VR_LoadHmdSystemInternal()\\r\\n112 | {\\r\\n113 | \\tstd::string sRuntimePath, sConfigPath, sLogPath;\\r\\n114 | \\r\\n115 | \\tbool bReadPathRegistry = CVRPathRegistry_Public::GetPaths( &sRuntimePath, &sConfigPath, &sLogPath, NULL, NULL );\\r\\n116 | \\tif( !bReadPathRegistry )\\r\\n117 | \\t{\\r\\n118 | \\t\\treturn vr::VRInitError_Init_PathRegistryNotFound;\\r\\n119 | \\t}\\r\\n120 | \\r\\n121 | \\t// figure out where we're going to look for vrclient.dll\\r\\n122 | \\t// see if the specified path actually exists.\\r\\n123 | \\tif( !Path_IsDirectory( sRuntimePath ) )\\r\\n124 | \\t{\\r\\n125 | \\t\\treturn vr::VRInitError_Init_InstallationNotFound;\\r\\n126 | \\t}\\r\\n127 | \\r\\n128 | \\t// Because we don't have a way to select debug vs. release yet we'll just\\r\\n129 | \\t// use debug if it's there\\r\\n130 | #if defined( WIN32 ) || defined( LINUX32 )\\r\\n131 | \\tstd::string sTestPath = Path_Join( sRuntimePath, \\\"bin\\\" );\\r\\n132 | #else\\r\\n133 | \\tstd::string sTestPath = Path_Join( sRuntimePath, \\\"bin\\\", PLATSUBDIR );\\r\\n134 | #endif\\r\\n135 | \\tif( !Path_IsDirectory( sTestPath ) )\\r\\n136 | \\t{\\r\\n137 | \\t\\treturn vr::VRInitError_Init_InstallationCorrupt;\\r\\n138 | \\t}\\r\\n139 | \\r\\n140 | #if defined( WIN64 )\\r\\n141 | \\tstd::string sDLLPath = Path_Join( sTestPath, \\\"vrclient_x64\\\" DYNAMIC_LIB_EXT );\\r\\n142 | #else\\r\\n143 | \\tstd::string sDLLPath = Path_Join( sTestPath, \\\"vrclient\\\" DYNAMIC_LIB_EXT );\\r\\n144 | #endif\\r\\n145 | \\r\\n146 | \\t// only look in the override\\r\\n147 | \\tvoid *pMod = SharedLib_Load( sDLLPath.c_str() );\\r\\n148 | \\t// nothing more to do if we can't load the DLL\\r\\n149 | \\tif( !pMod )\\r\\n150 | \\t{\\r\\n151 | \\t\\treturn vr::VRInitError_Init_VRClientDLLNotFound;\\r\\n152 | \\t}\\r\\n153 | \\r\\n154 | \\tVRClientCoreFactoryFn fnFactory = ( VRClientCoreFactoryFn )( SharedLib_GetFunction( pMod, \\\"VRClientCoreFactory\\\" ) );\\r\\n155 | \\tif( !fnFactory )\\r\\n156 | \\t{\\r\\n157 | \\t\\tSharedLib_Unload( pMod );\\r\\n158 | \\t\\treturn vr::VRInitError_Init_FactoryNotFound;\\r\\n159 | \\t}\\r\\n160 | \\r\\n161 | \\tint nReturnCode = 0;\\r\\n162 | \\tg_pHmdSystem = static_cast< IVRClientCore * > ( fnFactory( vr::IVRClientCore_Version, &nReturnCode ) );\\r\\n163 | \\tif( !g_pHmdSystem )\\r\\n164 | \\t{\\r\\n165 | \\t\\tSharedLib_Unload( pMod );\\r\\n166 | \\t\\treturn vr::VRInitError_Init_InterfaceNotFound;\\r\\n167 | \\t}\\r\\n168 | \\r\\n169 | \\tg_pVRModule = pMod;\\r\\n170 | \\treturn VRInitError_None;\\r\\n171 | }\\r\\n172 | \\r\\n173 | \\r\\n174 | void *VR_GetGenericInterface(const char *pchInterfaceVersion, EVRInitError *peError)\\r\\n175 | {\\r\\n176 | \\tstd::lock_guard<std::recursive_mutex> lock( g_mutexSystem );\\r\\n177 | \\r\\n178 | \\tif (!g_pHmdSystem)\\r\\n179 | \\t{\\r\\n180 | \\t\\tif (peError)\\r\\n181 | \\t\\t\\t*peError = vr::VRInitError_Init_NotInitialized;\\r\\n182 | \\t\\treturn NULL;\\r\\n183 | \\t}\\r\\n184 | \\r\\n185 | \\treturn g_pHmdSystem->GetGenericInterface(pchInterfaceVersion, peError);\\r\\n186 | }\\r\\n187 | \\r\\n188 | bool VR_IsInterfaceVersionValid(const char *pchInterfaceVersion)\\r\\n189 | {\\r\\n190 | \\tstd::lock_guard<std::recursive_mutex> lock( g_mutexSystem );\\r\\n191 | \\r\\n192 | \\tif (!g_pHmdSystem)\\r\\n193 | \\t{\\r\\n194 | \\t\\treturn false;\\r\\n195 | \\t}\\r\\n196 | \\r\\n197 | \\treturn g_pHmdSystem->IsInterfaceVersionValid(pchInterfaceVersion) == VRInitError_None;\\r\\n198 | }\\r\\n199 | \\r\\n200 | bool VR_IsHmdPresent()\\r\\n201 | {\\r\\n202 | \\tstd::lock_guard<std::recursive_mutex> lock( g_mutexSystem );\\r\\n203 | \\r\\n204 | \\tif( g_pHmdSystem )\\r\\n205 | \\t{\\r\\n206 | \\t\\t// if we're already initialized, just call through\\r\\n207 | \\t\\treturn g_pHmdSystem->BIsHmdPresent();\\r\\n208 | \\t}\\r\\n209 | \\telse\\r\\n210 | \\t{\\r\\n211 | \\t\\t// otherwise we need to do a bit more work\\r\\n212 | \\t\\tEVRInitError err = VR_LoadHmdSystemInternal();\\r\\n213 | \\t\\tif( err != VRInitError_None )\\r\\n214 | \\t\\t\\treturn false;\\r\\n215 | \\r\\n216 | \\t\\tbool bHasHmd = g_pHmdSystem->BIsHmdPresent();\\r\\n217 | \\r\\n218 | \\t\\tg_pHmdSystem = NULL;\\r\\n219 | \\t\\tSharedLib_Unload( g_pVRModule );\\r\\n220 | \\t\\tg_pVRModule = NULL;\\r\\n221 | \\r\\n222 | \\t\\treturn bHasHmd;\\r\\n223 | \\t}\\r\\n224 | }\\r\\n225 | \\r\\n226 | /** Returns true if the OpenVR runtime is installed. */\\r\\n227 | bool VR_IsRuntimeInstalled()\\r\\n228 | {\\r\\n229 | \\tstd::lock_guard<std::recursive_mutex> lock( g_mutexSystem );\\r\\n230 | \\r\\n231 | \\tif( g_pHmdSystem )\\r\\n232 | \\t{\\r\\n233 | \\t\\t// if we're already initialized, OpenVR is obviously installed\\r\\n234 | \\t\\treturn true;\\r\\n235 | \\t}\\r\\n236 | \\telse\\r\\n237 | \\t{\\r\\n238 | \\t\\t// otherwise we need to do a bit more work\\r\\n239 | \\t\\tstd::string sRuntimePath, sConfigPath, sLogPath;\\r\\n240 | \\r\\n241 | \\t\\tbool bReadPathRegistry = CVRPathRegistry_Public::GetPaths( &sRuntimePath, &sConfigPath, &sLogPath, NULL, NULL );\\r\\n242 | \\t\\tif( !bReadPathRegistry )\\r\\n243 | \\t\\t{\\r\\n244 | \\t\\t\\treturn false;\\r\\n245 | \\t\\t}\\r\\n246 | \\r\\n247 | \\t\\t// figure out where we're going to look for vrclient.dll\\r\\n248 | \\t\\t// see if the specified path actually exists.\\r\\n249 | \\t\\tif( !Path_IsDirectory( sRuntimePath ) )\\r\\n250 | \\t\\t{\\r\\n251 | \\t\\t\\treturn false;\\r\\n252 | \\t\\t}\\r\\n253 | \\r\\n254 | \\t\\t// the installation may be corrupt in some way, but it certainly looks installed\\r\\n255 | \\t\\treturn true;\\r\\n256 | \\t}\\r\\n257 | }\\r\\n258 | \\r\\n259 | \\r\\n260 | // -------------------------------------------------------------------------------\\r\\n261 | // Purpose: This is the old Runtime Path interface that is no longer exported in the\\r\\n262 | //\\t\\t\\tlatest header. We still want to export it from the DLL, though, so updating\\r\\n263 | //\\t\\t\\tto a new DLL doesn't break old compiled code. This version was not thread \\r\\n264 | //\\t\\t\\tsafe and could change the buffer pointer to by a previous result on a \\r\\n265 | //\\t\\t\\tsubsequent call\\r\\n266 | // -------------------------------------------------------------------------------\\r\\n267 | VR_EXPORT_INTERFACE const char *VR_CALLTYPE VR_RuntimePath();\\r\\n268 | \\r\\n269 | /** Returns where OpenVR runtime is installed. */\\r\\n270 | const char *VR_RuntimePath()\\r\\n271 | {\\r\\n272 | \\tstatic char rchBuffer[1024];\\r\\n273 | \\tuint32_t unRequiredSize;\\r\\n274 | \\tif ( VR_GetRuntimePath( rchBuffer, sizeof( rchBuffer ), &unRequiredSize ) && unRequiredSize < sizeof( rchBuffer ) )\\r\\n275 | \\t{\\r\\n276 | \\t\\treturn rchBuffer;\\r\\n277 | \\t}\\r\\n278 | \\telse\\r\\n279 | \\t{\\r\\n280 | \\t\\treturn nullptr;\\r\\n281 | \\t}\\r\\n282 | }\\r\\n283 | \\r\\n284 | \\r\\n285 | /** Returns where OpenVR runtime is installed. */\\r\\n286 | bool VR_GetRuntimePath( char *pchPathBuffer, uint32_t unBufferSize, uint32_t *punRequiredBufferSize )\\r\\n287 | {\\r\\n288 | \\t// otherwise we need to do a bit more work\\r\\n289 | \\tstd::string sRuntimePath;\\r\\n290 | \\r\\n291 | \\t*punRequiredBufferSize = 0;\\r\\n292 | \\r\\n293 | \\tbool bReadPathRegistry = CVRPathRegistry_Public::GetPaths( &sRuntimePath, nullptr, nullptr, nullptr, nullptr );\\r\\n294 | \\tif ( !bReadPathRegistry )\\r\\n295 | \\t{\\r\\n296 | \\t\\treturn false;\\r\\n297 | \\t}\\r\\n298 | \\r\\n299 | \\t// figure out where we're going to look for vrclient.dll\\r\\n300 | \\t// see if the specified path actually exists.\\r\\n301 | \\tif ( !Path_IsDirectory( sRuntimePath ) )\\r\\n302 | \\t{\\r\\n303 | \\t\\treturn false;\\r\\n304 | \\t}\\r\\n305 | \\r\\n306 | \\t*punRequiredBufferSize = (uint32_t)sRuntimePath.size() + 1;\\r\\n307 | \\tif ( sRuntimePath.size() >= unBufferSize )\\r\\n308 | \\t{\\r\\n309 | \\t\\t*pchPathBuffer = '\\\\0';\\r\\n310 | \\t}\\r\\n311 | \\telse\\r\\n312 | \\t{\\r\\n313 | \\t\\tstrcpy_safe( pchPathBuffer, unBufferSize, sRuntimePath.c_str() );\\r\\n314 | \\t}\\r\\n315 | \\r\\n316 | \\treturn true;\\r\\n317 | }\\r\\n318 | \\r\\n319 | \\r\\n320 | /** Returns the symbol version of an HMD error. */\\r\\n321 | const char *VR_GetVRInitErrorAsSymbol( EVRInitError error )\\r\\n322 | {\\r\\n323 | \\tstd::lock_guard<std::recursive_mutex> lock( g_mutexSystem );\\r\\n324 | \\r\\n325 | \\tif( g_pHmdSystem )\\r\\n326 | \\t\\treturn g_pHmdSystem->GetIDForVRInitError( error );\\r\\n327 | \\telse\\r\\n328 | \\t\\treturn GetIDForVRInitError( error );\\r\\n329 | }\\r\\n330 | \\r\\n331 | \\r\\n332 | /** Returns the english string version of an HMD error. */\\r\\n333 | const char *VR_GetVRInitErrorAsEnglishDescription( EVRInitError error )\\r\\n334 | {\\r\\n335 | \\tstd::lock_guard<std::recursive_mutex> lock( g_mutexSystem );\\r\\n336 | \\r\\n337 | \\tif ( g_pHmdSystem )\\r\\n338 | \\t\\treturn g_pHmdSystem->GetEnglishStringForHmdError( error );\\r\\n339 | \\telse\\r\\n340 | \\t\\treturn GetEnglishStringForHmdError( error );\\r\\n341 | }\\r\\n342 | \\r\\n343 | \\r\\n344 | VR_INTERFACE const char *VR_CALLTYPE VR_GetStringForHmdError( vr::EVRInitError error );\\r\\n345 | \\r\\n346 | /** Returns the english string version of an HMD error. */\\r\\n347 | const char *VR_GetStringForHmdError( EVRInitError error )\\r\\n348 | {\\r\\n349 | \\treturn VR_GetVRInitErrorAsEnglishDescription( error );\\r\\n350 | }\\r\\n351 | \\r\\n352 | }\\r\\n353 | \\r\\n354 | \\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:34:12 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n21,996 (11%)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n</environment_details>\",\"tokensIn\":1,\"tokensOut\":93,\"cacheWrites\":5017,\"cacheReads\":21827,\"cost\":0.026759849999999998}"},{"ts":1741001654491,"type":"say","say":"text","text":"Now I need to look at the ivrclientcore.h file to understand the structure of the client core interface:\n\nLet me check the ivrclientcore.h file:","partial":false},{"ts":1741001655487,"type":"ask","ask":"tool","text":"{\"tool\":\"readFile\",\"path\":\"src/ivrclientcore.h\",\"content\":\"c:\\\\Users\\\\decid\\\\Documents\\\\projects\\\\openvr-resilient\\\\src\\\\ivrclientcore.h\"}","partial":false},{"ts":1741001662134,"type":"say","say":"api_req_started","text":"{\"request\":\"[read_file for 'src/ivrclientcore.h'] Result:\\n\\n 1 | //========= Copyright Valve Corporation ============//\\r\\n 2 | #pragma once\\r\\n 3 | \\r\\n 4 | namespace vr\\r\\n 5 | {\\r\\n 6 | \\r\\n 7 | class IVRClientCore\\r\\n 8 | {\\r\\n 9 | public:\\r\\n10 | \\t/** Initializes the system */\\r\\n11 | \\tvirtual EVRInitError Init( vr::EVRApplicationType eApplicationType, const char *pStartupInfo ) = 0;\\r\\n12 | \\r\\n13 | \\t/** cleans up everything in vrclient.dll and prepares the DLL to be unloaded */\\r\\n14 | \\tvirtual void Cleanup() = 0;\\r\\n15 | \\r\\n16 | \\t/** checks to see if the specified interface/version is supported in this vrclient.dll */\\r\\n17 | \\tvirtual EVRInitError IsInterfaceVersionValid( const char *pchInterfaceVersion ) = 0;\\r\\n18 | \\r\\n19 | \\t/** Retrieves any interface from vrclient.dll */\\r\\n20 | \\tvirtual void *GetGenericInterface( const char *pchNameAndVersion, EVRInitError *peError ) = 0;\\r\\n21 | \\r\\n22 | \\t/** Returns true if any driver has an HMD attached. Can be called outside of Init/Cleanup */\\r\\n23 | \\tvirtual bool BIsHmdPresent() = 0;\\r\\n24 | \\r\\n25 | \\t/** Returns an English error string from inside vrclient.dll which might be newer than the API DLL */\\r\\n26 | \\tvirtual const char *GetEnglishStringForHmdError( vr::EVRInitError eError ) = 0;\\r\\n27 | \\r\\n28 | \\t/** Returns an error symbol from inside vrclient.dll which might be newer than the API DLL */\\r\\n29 | \\tvirtual const char *GetIDForVRInitError( vr::EVRInitError eError ) = 0;\\r\\n30 | };\\r\\n31 | \\r\\n32 | static const char * const IVRClientCore_Version = \\\"IVRClientCore_003\\\";\\r\\n33 | \\r\\n34 | \\r\\n35 | }\\r\\n36 | \\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:34:22 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n26,938 (13%)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n</environment_details>\",\"tokensIn\":0,\"tokensOut\":248,\"cacheWrites\":782,\"cacheReads\":26844,\"cost\":0.014705700000000002}"},{"ts":1741001663780,"type":"say","say":"text","text":"Based on my analysis, I understand that:\n\n1. The OpenVR API is implemented in a client DLL (vrclient.dll on Windows) that is loaded dynamically.\n2. The IVRClientCore interface is the main interface for the client DLL.\n3. The GetGenericInterface method is used to get specific interfaces from the client DLL.\n\nSince the vrcore_impl.cpp and vrcore_impl.h files don't exist, I need to find where the actual implementation of the interfaces is located. The implementation is likely in the vrclient DLL, which is loaded dynamically.\n\nLet me check if there's a header file that defines the IVRSystem interface, which is one of the main interfaces in OpenVR:\n\nLet me check the openvr.h file to understand the structure of the interfaces:","partial":false},{"ts":1741001666818,"type":"ask","ask":"tool","text":"{\"tool\":\"readFile\",\"path\":\"headers/openvr.h\",\"content\":\"c:\\\\Users\\\\decid\\\\Documents\\\\projects\\\\openvr-resilient\\\\headers\\\\openvr.h\"}","partial":false},{"ts":1741001853406,"type":"say","say":"api_req_started","text":"{\"request\":\"[read_file for 'headers/openvr.h'] Result:\\n\\n   1 | #pragma once\\r\\n   2 | \\r\\n   3 | // openvr.h\\r\\n   4 | //========= Copyright Valve Corporation ============//\\r\\n   5 | // Dynamically generated file. Do not modify this file directly.\\r\\n   6 | \\r\\n   7 | #ifndef _OPENVR_API\\r\\n   8 | #define _OPENVR_API\\r\\n   9 | \\r\\n  10 | #include <stdint.h>\\r\\n  11 | \\r\\n  12 | \\r\\n  13 | \\r\\n  14 | // version.h\\r\\n  15 | \\r\\n  16 | namespace vr\\r\\n  17 | {\\r\\n  18 | \\tstatic const uint32_t k_nSteamVRVersionMajor = 2;\\r\\n  19 | \\tstatic const uint32_t k_nSteamVRVersionMinor = 5;\\r\\n  20 | \\tstatic const uint32_t k_nSteamVRVersionBuild = 1;\\r\\n  21 | } // namespace vr\\r\\n  22 | \\r\\n  23 | // public_vrtypes.h\\r\\n  24 | \\r\\n  25 | #ifndef _INCLUDE_CORE_VRTYPES_PUBLIC_H\\r\\n  26 | #define _INCLUDE_CORE_VRTYPES_PUBLIC_H\\r\\n  27 | \\r\\n  28 | namespace vr\\r\\n  29 | {\\r\\n  30 | #pragma pack( push, 8 )\\r\\n  31 | \\r\\n  32 | typedef uint32_t PropertyTypeTag_t;\\r\\n  33 | \\r\\n  34 | // right-handed system\\r\\n  35 | // +y is up\\r\\n  36 | // +x is to the right\\r\\n  37 | // -z is forward\\r\\n  38 | // Distance unit is  meters\\r\\n  39 | struct HmdMatrix34_t\\r\\n  40 | {\\r\\n  41 | \\tfloat m[3][4];\\r\\n  42 | };\\r\\n  43 | \\r\\n  44 | struct HmdMatrix33_t\\r\\n  45 | {\\r\\n  46 | \\tfloat m[3][3];\\r\\n  47 | };\\r\\n  48 | \\r\\n  49 | struct HmdMatrix44_t\\r\\n  50 | {\\r\\n  51 | \\tfloat m[4][4];\\r\\n  52 | };\\r\\n  53 | \\r\\n  54 | struct HmdVector3_t\\r\\n  55 | {\\r\\n  56 | \\tfloat v[3];\\r\\n  57 | };\\r\\n  58 | \\r\\n  59 | struct HmdVector4_t\\r\\n  60 | {\\r\\n  61 | \\tfloat v[4];\\r\\n  62 | };\\r\\n  63 | \\r\\n  64 | struct HmdVector3d_t\\r\\n  65 | {\\r\\n  66 | \\tdouble v[3];\\r\\n  67 | };\\r\\n  68 | \\r\\n  69 | struct HmdVector2_t\\r\\n  70 | {\\r\\n  71 | \\tfloat v[2];\\r\\n  72 | };\\r\\n  73 | \\r\\n  74 | struct HmdQuaternion_t\\r\\n  75 | {\\r\\n  76 | \\tdouble w, x, y, z;\\r\\n  77 | };\\r\\n  78 | \\r\\n  79 | struct HmdQuaternionf_t\\r\\n  80 | {\\r\\n  81 | \\tfloat w, x, y, z;\\r\\n  82 | };\\r\\n  83 | \\r\\n  84 | struct HmdColor_t\\r\\n  85 | {\\r\\n  86 | \\tfloat r, g, b, a;\\r\\n  87 | };\\r\\n  88 | \\r\\n  89 | struct HmdQuad_t\\r\\n  90 | {\\r\\n  91 | \\tHmdVector3_t vCorners[ 4 ];\\r\\n  92 | };\\r\\n  93 | \\r\\n  94 | struct HmdRect2_t\\r\\n  95 | {\\r\\n  96 | \\tHmdVector2_t vTopLeft;\\r\\n  97 | \\tHmdVector2_t vBottomRight;\\r\\n  98 | };\\r\\n  99 | \\r\\n 100 | /** Holds the transform for a single bone */\\r\\n 101 | struct VRBoneTransform_t\\r\\n 102 | {\\r\\n 103 | \\tHmdVector4_t position;\\r\\n 104 | \\tHmdQuaternionf_t orientation;\\r\\n 105 | };\\r\\n 106 | \\r\\n 107 | /** Used to return the post-distortion UVs for each color channel.\\r\\n 108 | * UVs range from 0 to 1 with 0,0 in the upper left corner of the\\r\\n 109 | * source render target. The 0,0 to 1,1 range covers a single eye. */\\r\\n 110 | struct DistortionCoordinates_t\\r\\n 111 | {\\r\\n 112 | \\tfloat rfRed[2];\\r\\n 113 | \\tfloat rfGreen[2];\\r\\n 114 | \\tfloat rfBlue[2];\\r\\n 115 | };\\r\\n 116 | \\r\\n 117 | enum EVREye\\r\\n 118 | {\\r\\n 119 | \\tEye_Left = 0,\\r\\n 120 | \\tEye_Right = 1\\r\\n 121 | };\\r\\n 122 | \\r\\n 123 | enum ETextureType\\r\\n 124 | {\\r\\n 125 | \\tTextureType_Invalid = -1, // Handle has been invalidated\\r\\n 126 | \\tTextureType_DirectX = 0, // Handle is an ID3D11Texture\\r\\n 127 | \\tTextureType_OpenGL = 1,  // Handle is an OpenGL texture name or an OpenGL render buffer name, depending on submit flags\\r\\n 128 | \\tTextureType_Vulkan = 2, // Handle is a pointer to a VRVulkanTextureData_t structure\\r\\n 129 | \\tTextureType_IOSurface = 3, // Handle is a macOS cross-process-sharable IOSurfaceRef, deprecated in favor of TextureType_Metal on supported platforms\\r\\n 130 | \\tTextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure\\r\\n 131 | \\tTextureType_DXGISharedHandle = 5, // Handle is a HANDLE DXGI share handle, only supported for Overlay render targets.\\r\\n 132 | \\t\\t\\t\\t\\t\\t\\t\\t\\t  // this texture is used directly by our renderer, so only perform atomic (copyresource or resolve) on it\\r\\n 133 | \\tTextureType_Metal = 6,\\t// Handle is a MTLTexture conforming to the MTLSharedTexture protocol. Textures submitted to IVRCompositor::Submit which\\r\\n 134 | \\t\\t\\t\\t\\t\\t\\t// are of type MTLTextureType2DArray assume layer 0 is the left eye texture (vr::EVREye::Eye_left), layer 1 is the right\\r\\n 135 | \\t\\t\\t\\t\\t\\t\\t// eye texture (vr::EVREye::Eye_Right)\\r\\n 136 | \\r\\n 137 | \\tTextureType_Reserved = 7,\\r\\n 138 | };\\r\\n 139 | \\r\\n 140 | enum EColorSpace\\r\\n 141 | {\\r\\n 142 | \\tColorSpace_Auto = 0,\\t// Assumes 'gamma' for 8-bit per component formats, otherwise 'linear'.  This mirrors the DXGI formats which have _SRGB variants.\\r\\n 143 | \\tColorSpace_Gamma = 1,\\t// Texture data can be displayed directly on the display without any conversion (a.k.a. display native format).\\r\\n 144 | \\tColorSpace_Linear = 2,\\t// Same as gamma but has been converted to a linear representation using DXGI's sRGB conversion algorithm.\\r\\n 145 | };\\r\\n 146 | \\r\\n 147 | struct Texture_t\\r\\n 148 | {\\r\\n 149 | \\tvoid* handle; // See ETextureType definition above\\r\\n 150 | \\tETextureType eType;\\r\\n 151 | \\tEColorSpace eColorSpace;\\r\\n 152 | };\\r\\n 153 | \\r\\n 154 | /** Allows the application to control what part of the provided texture will be used in the\\r\\n 155 | * frame buffer. */\\r\\n 156 | struct VRTextureBounds_t\\r\\n 157 | {\\r\\n 158 | \\tfloat uMin, vMin;\\r\\n 159 | \\tfloat uMax, vMax;\\r\\n 160 | };\\r\\n 161 | \\r\\n 162 | /** Allows specifying pose used to render provided scene texture (if different from value returned by WaitGetPoses). */\\r\\n 163 | struct VRTextureWithPose_t : public Texture_t\\r\\n 164 | {\\r\\n 165 | \\tHmdMatrix34_t mDeviceToAbsoluteTracking; // Actual pose used to render scene textures.\\r\\n 166 | };\\r\\n 167 | \\r\\n 168 | struct VRTextureDepthInfo_t\\r\\n 169 | {\\r\\n 170 | \\tvoid* handle; // See ETextureType definition above\\r\\n 171 | \\tHmdMatrix44_t mProjection;\\r\\n 172 | \\tHmdVector2_t vRange; // 0..1\\r\\n 173 | };\\r\\n 174 | \\r\\n 175 | struct VRTextureWithDepth_t : public Texture_t\\r\\n 176 | {\\r\\n 177 | \\tVRTextureDepthInfo_t depth;\\r\\n 178 | };\\r\\n 179 | \\r\\n 180 | struct VRTextureWithPoseAndDepth_t : public VRTextureWithPose_t\\r\\n 181 | {\\r\\n 182 | \\tVRTextureDepthInfo_t depth;\\r\\n 183 | };\\r\\n 184 | \\r\\n 185 | // 64-bit types that are part of public structures\\r\\n 186 | // that are replicated in shared memory.\\r\\n 187 | #if defined(__linux__) || defined(__APPLE__)\\r\\n 188 | typedef uint64_t vrshared_uint64_t __attribute__ ((aligned(8)));\\r\\n 189 | typedef double vrshared_double __attribute__ ((aligned(8)));\\r\\n 190 | #else\\r\\n 191 | typedef uint64_t vrshared_uint64_t;\\r\\n 192 | typedef double vrshared_double;\\r\\n 193 | #endif\\r\\n 194 | \\r\\n 195 | #pragma pack( pop )\\r\\n 196 | \\r\\n 197 | } // namespace vr\\r\\n 198 | \\r\\n 199 | #endif\\r\\n 200 | \\r\\n 201 | // vrtypes.h\\r\\n 202 | \\r\\n 203 | #ifndef _INCLUDE_VRTYPES_H\\r\\n 204 | #define _INCLUDE_VRTYPES_H\\r\\n 205 | \\r\\n 206 | // Forward declarations to avoid requiring vulkan.h\\r\\n 207 | struct VkDevice_T;\\r\\n 208 | struct VkPhysicalDevice_T;\\r\\n 209 | struct VkInstance_T;\\r\\n 210 | struct VkQueue_T;\\r\\n 211 | \\r\\n 212 | // Forward declarations to avoid requiring d3d12.h\\r\\n 213 | struct ID3D12Resource;\\r\\n 214 | struct ID3D12CommandQueue;\\r\\n 215 | \\r\\n 216 | namespace vr\\r\\n 217 | {\\r\\n 218 | #pragma pack( push, 8 )\\r\\n 219 | \\r\\n 220 | /** A handle for a spatial anchor.  This handle is only valid during the session it was created in.\\r\\n 221 | * Anchors that live beyond one session should be saved by their string descriptors. */\\r\\n 222 | typedef uint32_t SpatialAnchorHandle_t;\\r\\n 223 | \\r\\n 224 | typedef void* glSharedTextureHandle_t;\\r\\n 225 | typedef int32_t glInt_t;\\r\\n 226 | typedef uint32_t glUInt_t;\\r\\n 227 | \\r\\n 228 | \\r\\n 229 | // Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource).\\r\\n 230 | typedef uint64_t SharedTextureHandle_t;\\r\\n 231 | #define INVALID_SHARED_TEXTURE_HANDLE\\t((vr::SharedTextureHandle_t)0)\\r\\n 232 | \\r\\n 233 | enum ETrackingResult\\r\\n 234 | {\\r\\n 235 | \\tTrackingResult_Uninitialized\\t\\t\\t= 1,\\r\\n 236 | \\r\\n 237 | \\tTrackingResult_Calibrating_InProgress\\t= 100,\\r\\n 238 | \\tTrackingResult_Calibrating_OutOfRange\\t= 101,\\r\\n 239 | \\r\\n 240 | \\tTrackingResult_Running_OK\\t\\t\\t\\t= 200,\\r\\n 241 | \\tTrackingResult_Running_OutOfRange\\t\\t= 201,\\r\\n 242 | \\r\\n 243 | \\tTrackingResult_Fallback_RotationOnly\\t= 300,\\r\\n 244 | };\\r\\n 245 | \\r\\n 246 | typedef uint32_t DriverId_t;\\r\\n 247 | static const uint32_t k_nDriverNone = 0xFFFFFFFF;\\r\\n 248 | \\r\\n 249 | static const uint32_t k_unMaxDriverDebugResponseSize = 32768;\\r\\n 250 | \\r\\n 251 | /** Used to pass device IDs to API calls */\\r\\n 252 | typedef uint32_t TrackedDeviceIndex_t;\\r\\n 253 | static const uint32_t k_unTrackedDeviceIndex_Hmd = 0;\\r\\n 254 | static const uint32_t k_unMaxTrackedDeviceCount = 64;\\r\\n 255 | static const uint32_t k_unTrackedDeviceIndexOther = 0xFFFFFFFE;\\r\\n 256 | static const uint32_t k_unTrackedDeviceIndexInvalid = 0xFFFFFFFF;\\r\\n 257 | \\r\\n 258 | /** Describes what kind of object is being tracked at a given ID */\\r\\n 259 | enum ETrackedDeviceClass\\r\\n 260 | {\\r\\n 261 | \\tTrackedDeviceClass_Invalid = 0,\\t\\t\\t\\t// the ID was not valid.\\r\\n 262 | \\tTrackedDeviceClass_HMD = 1,\\t\\t\\t\\t\\t// Head-Mounted Displays\\r\\n 263 | \\tTrackedDeviceClass_Controller = 2,\\t\\t\\t// Tracked controllers\\r\\n 264 | \\tTrackedDeviceClass_GenericTracker = 3,\\t\\t// Generic trackers, similar to controllers\\r\\n 265 | \\tTrackedDeviceClass_TrackingReference = 4,\\t// Camera and base stations that serve as tracking reference points\\r\\n 266 | \\tTrackedDeviceClass_DisplayRedirect = 5,\\t\\t// Accessories that aren't necessarily tracked themselves, but may redirect video output from other tracked devices\\r\\n 267 | \\r\\n 268 | \\tTrackedDeviceClass_Max\\r\\n 269 | };\\r\\n 270 | \\r\\n 271 | \\r\\n 272 | /** Describes what specific role associated with a tracked device */\\r\\n 273 | enum ETrackedControllerRole\\r\\n 274 | {\\r\\n 275 | \\tTrackedControllerRole_Invalid = 0,\\t\\t\\t\\t\\t// Invalid value for controller type\\r\\n 276 | \\tTrackedControllerRole_LeftHand = 1,\\t\\t\\t\\t\\t// Tracked device associated with the left hand\\r\\n 277 | \\tTrackedControllerRole_RightHand = 2,\\t\\t\\t\\t// Tracked device associated with the right hand\\r\\n 278 | \\tTrackedControllerRole_OptOut = 3,\\t\\t\\t\\t\\t// Tracked device is opting out of left/right hand selection\\r\\n 279 | \\tTrackedControllerRole_Treadmill = 4,\\t\\t\\t\\t// Tracked device is a treadmill or other locomotion device\\r\\n 280 | \\tTrackedControllerRole_Stylus = 5,\\t\\t\\t\\t\\t// Tracked device is a stylus\\r\\n 281 | \\tTrackedControllerRole_Max = 5\\r\\n 282 | };\\r\\n 283 | \\r\\n 284 | \\r\\n 285 | /** Returns true if the tracked controller role is allowed to be a hand */\\r\\n 286 | inline bool IsRoleAllowedAsHand( ETrackedControllerRole eRole )\\r\\n 287 | {\\r\\n 288 | \\tswitch ( eRole )\\r\\n 289 | \\t{\\r\\n 290 | \\tcase TrackedControllerRole_Invalid:\\r\\n 291 | \\tcase TrackedControllerRole_LeftHand:\\r\\n 292 | \\tcase TrackedControllerRole_RightHand:\\r\\n 293 | \\t\\treturn true;\\r\\n 294 | \\tdefault:\\r\\n 295 | \\t\\treturn false;\\r\\n 296 | \\t}\\r\\n 297 | }\\r\\n 298 | \\r\\n 299 | \\r\\n 300 | /** describes a single pose for a tracked object */\\r\\n 301 | struct TrackedDevicePose_t\\r\\n 302 | {\\r\\n 303 | \\tHmdMatrix34_t mDeviceToAbsoluteTracking;\\r\\n 304 | \\tHmdVector3_t vVelocity;\\t\\t\\t\\t// velocity in tracker space in m/s\\r\\n 305 | \\tHmdVector3_t vAngularVelocity;\\t\\t// angular velocity in radians/s (?)\\r\\n 306 | \\tETrackingResult eTrackingResult;\\r\\n 307 | \\tbool bPoseIsValid;\\r\\n 308 | \\r\\n 309 | \\t// This indicates that there is a device connected for this spot in the pose array.\\r\\n 310 | \\t// It could go from true to false if the user unplugs the device.\\r\\n 311 | \\tbool bDeviceIsConnected;\\r\\n 312 | };\\r\\n 313 | \\r\\n 314 | /** Identifies which style of tracking origin the application wants to use\\r\\n 315 | * for the poses it is requesting */\\r\\n 316 | enum ETrackingUniverseOrigin\\r\\n 317 | {\\r\\n 318 | \\tTrackingUniverseSeated = 0,\\t\\t// Poses are provided relative to the seated zero pose\\r\\n 319 | \\tTrackingUniverseStanding = 1,\\t// Poses are provided relative to the safe bounds configured by the user\\r\\n 320 | \\tTrackingUniverseRawAndUncalibrated = 2,\\t// Poses are provided in the coordinate system defined by the driver.  It has Y up and is unified for devices of the same driver. You usually don't want this one.\\r\\n 321 | };\\r\\n 322 | \\r\\n 323 | enum EAdditionalRadioFeatures\\r\\n 324 | {\\r\\n 325 | \\tAdditionalRadioFeatures_None           = 0x00000000,\\r\\n 326 | \\tAdditionalRadioFeatures_HTCLinkBox     = 0x00000001,\\r\\n 327 | \\tAdditionalRadioFeatures_InternalDongle = 0x00000002,\\r\\n 328 | \\tAdditionalRadioFeatures_ExternalDongle = 0x00000004,\\r\\n 329 | };\\r\\n 330 | \\r\\n 331 | typedef uint64_t WebConsoleHandle_t;\\r\\n 332 | #define INVALID_WEB_CONSOLE_HANDLE\\t((vr::WebConsoleHandle_t)0)\\r\\n 333 | \\r\\n 334 | // Refers to a single container of properties\\r\\n 335 | typedef uint64_t PropertyContainerHandle_t;\\r\\n 336 | typedef uint32_t PropertyTypeTag_t;\\r\\n 337 | \\r\\n 338 | static const PropertyContainerHandle_t k_ulInvalidPropertyContainer = 0;\\r\\n 339 | static const PropertyTypeTag_t k_unInvalidPropertyTag = 0;\\r\\n 340 | \\r\\n 341 | typedef PropertyContainerHandle_t DriverHandle_t;\\r\\n 342 | static const PropertyContainerHandle_t k_ulInvalidDriverHandle = 0;\\r\\n 343 | \\r\\n 344 | // Use these tags to set/get common types as struct properties\\r\\n 345 | static const PropertyTypeTag_t k_unFloatPropertyTag = 1;\\r\\n 346 | static const PropertyTypeTag_t k_unInt32PropertyTag = 2;\\r\\n 347 | static const PropertyTypeTag_t k_unUint64PropertyTag = 3;\\r\\n 348 | static const PropertyTypeTag_t k_unBoolPropertyTag = 4;\\r\\n 349 | static const PropertyTypeTag_t k_unStringPropertyTag = 5;\\r\\n 350 | static const PropertyTypeTag_t k_unErrorPropertyTag = 6;\\r\\n 351 | static const PropertyTypeTag_t k_unDoublePropertyTag = 7;\\r\\n 352 | \\r\\n 353 | static const PropertyTypeTag_t k_unHmdMatrix34PropertyTag = 20;\\r\\n 354 | static const PropertyTypeTag_t k_unHmdMatrix44PropertyTag = 21;\\r\\n 355 | static const PropertyTypeTag_t k_unHmdVector3PropertyTag = 22;\\r\\n 356 | static const PropertyTypeTag_t k_unHmdVector4PropertyTag = 23;\\r\\n 357 | static const PropertyTypeTag_t k_unHmdVector2PropertyTag = 24;\\r\\n 358 | static const PropertyTypeTag_t k_unHmdQuadPropertyTag = 25;\\r\\n 359 | \\r\\n 360 | static const PropertyTypeTag_t k_unHiddenAreaPropertyTag = 30;\\r\\n 361 | static const PropertyTypeTag_t k_unPathHandleInfoTag = 31;\\r\\n 362 | static const PropertyTypeTag_t k_unActionPropertyTag = 32;\\r\\n 363 | static const PropertyTypeTag_t k_unInputValuePropertyTag = 33;\\r\\n 364 | static const PropertyTypeTag_t k_unWildcardPropertyTag = 34;\\r\\n 365 | static const PropertyTypeTag_t k_unHapticVibrationPropertyTag = 35;\\r\\n 366 | static const PropertyTypeTag_t k_unSkeletonPropertyTag = 36;\\r\\n 367 | \\r\\n 368 | static const PropertyTypeTag_t k_unSpatialAnchorPosePropertyTag = 40;\\r\\n 369 | static const PropertyTypeTag_t k_unJsonPropertyTag = 41;\\r\\n 370 | static const PropertyTypeTag_t k_unActiveActionSetPropertyTag = 42;\\r\\n 371 | \\r\\n 372 | static const PropertyTypeTag_t k_unOpenVRInternalReserved_Start = 1000;\\r\\n 373 | static const PropertyTypeTag_t k_unOpenVRInternalReserved_End = 10000;\\r\\n 374 | \\r\\n 375 | \\r\\n 376 | /** Each entry in this enum represents a property that can be retrieved about a\\r\\n 377 | * tracked device. Many fields are only valid for one ETrackedDeviceClass. */\\r\\n 378 | enum ETrackedDeviceProperty\\r\\n 379 | {\\r\\n 380 | \\tProp_Invalid\\t\\t\\t\\t\\t\\t\\t\\t= 0,\\r\\n 381 | \\r\\n 382 | \\t// general properties that apply to all device classes\\r\\n 383 | \\tProp_TrackingSystemName_String\\t\\t\\t\\t= 1000,\\r\\n 384 | \\tProp_ModelNumber_String\\t\\t\\t\\t\\t\\t= 1001,\\r\\n 385 | \\tProp_SerialNumber_String\\t\\t\\t\\t\\t= 1002,\\r\\n 386 | \\tProp_RenderModelName_String\\t\\t\\t\\t\\t= 1003,\\r\\n 387 | \\tProp_WillDriftInYaw_Bool\\t\\t\\t\\t\\t= 1004,\\r\\n 388 | \\tProp_ManufacturerName_String\\t\\t\\t\\t= 1005,\\r\\n 389 | \\tProp_TrackingFirmwareVersion_String\\t\\t\\t= 1006,\\r\\n 390 | \\tProp_HardwareRevision_String\\t\\t\\t\\t= 1007,\\r\\n 391 | \\tProp_AllWirelessDongleDescriptions_String\\t= 1008,\\r\\n 392 | \\tProp_ConnectedWirelessDongle_String\\t\\t\\t= 1009,\\r\\n 393 | \\tProp_DeviceIsWireless_Bool\\t\\t\\t\\t\\t= 1010,\\r\\n 394 | \\tProp_DeviceIsCharging_Bool\\t\\t\\t\\t\\t= 1011,\\r\\n 395 | \\tProp_DeviceBatteryPercentage_Float\\t\\t\\t= 1012, // 0 is empty, 1 is full\\r\\n 396 | \\tProp_StatusDisplayTransform_Matrix34\\t\\t= 1013,\\r\\n 397 | \\tProp_Firmware_UpdateAvailable_Bool\\t\\t\\t= 1014,\\r\\n 398 | \\tProp_Firmware_ManualUpdate_Bool\\t\\t\\t\\t= 1015,\\r\\n 399 | \\tProp_Firmware_ManualUpdateURL_String\\t\\t= 1016,\\r\\n 400 | \\tProp_HardwareRevision_Uint64\\t\\t\\t\\t= 1017,\\r\\n 401 | \\tProp_FirmwareVersion_Uint64\\t\\t\\t\\t\\t= 1018,\\r\\n 402 | \\tProp_FPGAVersion_Uint64\\t\\t\\t\\t\\t\\t= 1019,\\r\\n 403 | \\tProp_VRCVersion_Uint64\\t\\t\\t\\t\\t\\t= 1020,\\r\\n 404 | \\tProp_RadioVersion_Uint64\\t\\t\\t\\t\\t= 1021,\\r\\n 405 | \\tProp_DongleVersion_Uint64\\t\\t\\t\\t\\t= 1022,\\r\\n 406 | \\tProp_BlockServerShutdown_Bool\\t\\t\\t\\t= 1023,\\r\\n 407 | \\tProp_CanUnifyCoordinateSystemWithHmd_Bool\\t= 1024,\\r\\n 408 | \\tProp_ContainsProximitySensor_Bool\\t\\t\\t= 1025,\\r\\n 409 | \\tProp_DeviceProvidesBatteryStatus_Bool\\t\\t= 1026,\\r\\n 410 | \\tProp_DeviceCanPowerOff_Bool\\t\\t\\t\\t\\t= 1027,\\r\\n 411 | \\tProp_Firmware_ProgrammingTarget_String\\t\\t= 1028,\\r\\n 412 | \\tProp_DeviceClass_Int32\\t\\t\\t\\t\\t\\t= 1029,\\r\\n 413 | \\tProp_HasCamera_Bool\\t\\t\\t\\t\\t\\t\\t= 1030,\\r\\n 414 | \\tProp_DriverVersion_String                   = 1031,\\r\\n 415 | \\tProp_Firmware_ForceUpdateRequired_Bool      = 1032,\\r\\n 416 | \\tProp_ViveSystemButtonFixRequired_Bool\\t\\t= 1033,\\r\\n 417 | \\tProp_ParentDriver_Uint64\\t\\t\\t\\t\\t= 1034,\\r\\n 418 | \\tProp_ResourceRoot_String\\t\\t\\t\\t\\t= 1035,\\r\\n 419 | \\tProp_RegisteredDeviceType_String\\t\\t\\t= 1036,\\r\\n 420 | \\tProp_InputProfilePath_String\\t\\t\\t\\t= 1037, // input profile to use for this device in the input system. Will default to tracking system name if this isn't provided\\r\\n 421 | \\tProp_NeverTracked_Bool\\t\\t\\t\\t\\t\\t= 1038, // Used for devices that will never have a valid pose by design\\r\\n 422 | \\tProp_NumCameras_Int32\\t\\t\\t\\t\\t\\t= 1039,\\r\\n 423 | \\tProp_CameraFrameLayout_Int32\\t\\t\\t\\t= 1040, // EVRTrackedCameraFrameLayout value\\r\\n 424 | \\tProp_CameraStreamFormat_Int32\\t\\t\\t\\t= 1041, // ECameraVideoStreamFormat value\\r\\n 425 | \\tProp_AdditionalDeviceSettingsPath_String\\t= 1042, // driver-relative path to additional device and global configuration settings\\r\\n 426 | \\tProp_Identifiable_Bool\\t\\t\\t\\t\\t\\t= 1043, // Whether device supports being identified from vrmonitor (e.g. blink LED, vibrate haptics, etc)\\r\\n 427 | \\tProp_BootloaderVersion_Uint64\\t\\t\\t    = 1044,\\r\\n 428 | \\tProp_AdditionalSystemReportData_String\\t\\t= 1045, // additional string to include in system reports about a tracked device\\r\\n 429 | \\tProp_CompositeFirmwareVersion_String        = 1046, // additional FW components from a device that gets propagated into reports\\r\\n 430 | \\tProp_Firmware_RemindUpdate_Bool             = 1047,\\r\\n 431 | \\tProp_PeripheralApplicationVersion_Uint64\\t= 1048,\\r\\n 432 | \\tProp_ManufacturerSerialNumber_String\\t\\t= 1049,\\r\\n 433 | \\tProp_ComputedSerialNumber_String\\t\\t\\t= 1050,\\r\\n 434 | \\tProp_EstimatedDeviceFirstUseTime_Int32\\t\\t= 1051,\\r\\n 435 | \\tProp_DevicePowerUsage_Float\\t\\t\\t\\t\\t= 1052,\\r\\n 436 | \\tProp_IgnoreMotionForStandby_Bool\\t\\t\\t= 1053,\\r\\n 437 | \\tProp_ActualTrackingSystemName_String\\t\\t= 1054, // the literal local driver name in case someone is playing games with prop 1000\\r\\n 438 | \\r\\n 439 | \\t// Properties that are unique to TrackedDeviceClass_HMD\\r\\n 440 | \\tProp_ReportsTimeSinceVSync_Bool\\t\\t\\t\\t= 2000,\\r\\n 441 | \\tProp_SecondsFromVsyncToPhotons_Float\\t\\t= 2001,\\r\\n 442 | \\tProp_DisplayFrequency_Float\\t\\t\\t\\t\\t= 2002,\\r\\n 443 | \\tProp_UserIpdMeters_Float\\t\\t\\t\\t\\t= 2003,\\r\\n 444 | \\tProp_CurrentUniverseId_Uint64\\t\\t\\t\\t= 2004,\\r\\n 445 | \\tProp_PreviousUniverseId_Uint64\\t\\t\\t\\t= 2005,\\r\\n 446 | \\tProp_DisplayFirmwareVersion_Uint64\\t\\t\\t= 2006,\\r\\n 447 | \\tProp_IsOnDesktop_Bool\\t\\t\\t\\t\\t\\t= 2007,\\r\\n 448 | \\tProp_DisplayMCType_Int32\\t\\t\\t\\t\\t= 2008,\\r\\n 449 | \\tProp_DisplayMCOffset_Float\\t\\t\\t\\t\\t= 2009,\\r\\n 450 | \\tProp_DisplayMCScale_Float\\t\\t\\t\\t\\t= 2010,\\r\\n 451 | \\tProp_EdidVendorID_Int32\\t\\t\\t\\t\\t\\t= 2011,\\r\\n 452 | \\tProp_DisplayMCImageLeft_String              = 2012,\\r\\n 453 | \\tProp_DisplayMCImageRight_String             = 2013,\\r\\n 454 | \\tProp_DisplayGCBlackClamp_Float\\t\\t\\t\\t= 2014,\\r\\n 455 | \\tProp_EdidProductID_Int32\\t\\t\\t\\t\\t= 2015,\\r\\n 456 | \\tProp_CameraToHeadTransform_Matrix34\\t\\t\\t= 2016,\\r\\n 457 | \\tProp_DisplayGCType_Int32\\t\\t\\t\\t\\t= 2017,\\r\\n 458 | \\tProp_DisplayGCOffset_Float\\t\\t\\t\\t\\t= 2018,\\r\\n 459 | \\tProp_DisplayGCScale_Float\\t\\t\\t\\t\\t= 2019,\\r\\n 460 | \\tProp_DisplayGCPrescale_Float\\t\\t\\t\\t= 2020,\\r\\n 461 | \\tProp_DisplayGCImage_String\\t\\t\\t\\t\\t= 2021,\\r\\n 462 | \\tProp_LensCenterLeftU_Float\\t\\t\\t\\t\\t= 2022,\\r\\n 463 | \\tProp_LensCenterLeftV_Float\\t\\t\\t\\t\\t= 2023,\\r\\n 464 | \\tProp_LensCenterRightU_Float\\t\\t\\t\\t\\t= 2024,\\r\\n 465 | \\tProp_LensCenterRightV_Float\\t\\t\\t\\t\\t= 2025,\\r\\n 466 | \\tProp_UserHeadToEyeDepthMeters_Float\\t\\t\\t= 2026,\\r\\n 467 | \\tProp_CameraFirmwareVersion_Uint64\\t\\t\\t= 2027,\\r\\n 468 | \\tProp_CameraFirmwareDescription_String\\t\\t= 2028,\\r\\n 469 | \\tProp_DisplayFPGAVersion_Uint64\\t\\t\\t\\t= 2029,\\r\\n 470 | \\tProp_DisplayBootloaderVersion_Uint64\\t\\t= 2030,\\r\\n 471 | \\tProp_DisplayHardwareVersion_Uint64\\t\\t\\t= 2031,\\r\\n 472 | \\tProp_AudioFirmwareVersion_Uint64\\t\\t\\t= 2032,\\r\\n 473 | \\tProp_CameraCompatibilityMode_Int32\\t\\t\\t= 2033,\\r\\n 474 | \\tProp_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034,\\r\\n 475 | \\tProp_ScreenshotVerticalFieldOfViewDegrees_Float = 2035,\\r\\n 476 | \\tProp_DisplaySuppressed_Bool\\t\\t\\t\\t\\t= 2036,\\r\\n 477 | \\tProp_DisplayAllowNightMode_Bool\\t\\t\\t\\t= 2037,\\r\\n 478 | \\tProp_DisplayMCImageWidth_Int32\\t\\t\\t\\t= 2038,\\r\\n 479 | \\tProp_DisplayMCImageHeight_Int32\\t\\t\\t\\t= 2039,\\r\\n 480 | \\tProp_DisplayMCImageNumChannels_Int32\\t\\t= 2040,\\r\\n 481 | \\tProp_DisplayMCImageData_Binary\\t\\t\\t\\t= 2041,\\r\\n 482 | \\tProp_SecondsFromPhotonsToVblank_Float\\t\\t= 2042,\\r\\n 483 | \\tProp_DriverDirectModeSendsVsyncEvents_Bool\\t= 2043,\\r\\n 484 | \\tProp_DisplayDebugMode_Bool\\t\\t\\t\\t\\t= 2044,\\r\\n 485 | \\tProp_GraphicsAdapterLuid_Uint64\\t\\t\\t\\t= 2045,\\r\\n 486 | \\tProp_DriverProvidedChaperonePath_String\\t\\t= 2048,\\r\\n 487 | \\tProp_ExpectedTrackingReferenceCount_Int32\\t= 2049, // expected number of sensors or basestations to reserve UI space for\\r\\n 488 | \\tProp_ExpectedControllerCount_Int32\\t\\t\\t= 2050, // expected number of tracked controllers to reserve UI space for\\r\\n 489 | \\tProp_NamedIconPathControllerLeftDeviceOff_String\\t= 2051, // placeholder icon for \\\"left\\\" controller if not yet detected/loaded\\r\\n 490 | \\tProp_NamedIconPathControllerRightDeviceOff_String\\t= 2052, // placeholder icon for \\\"right\\\" controller if not yet detected/loaded\\r\\n 491 | \\tProp_NamedIconPathTrackingReferenceDeviceOff_String\\t= 2053, // placeholder icon for sensor/base if not yet detected/loaded\\r\\n 492 | \\tProp_DoNotApplyPrediction_Bool\\t\\t\\t\\t= 2054, // currently no effect. was used to disable HMD pose prediction on MR, which is now done by MR driver setting velocity=0\\r\\n 493 | \\tProp_CameraToHeadTransforms_Matrix34_Array\\t= 2055,\\r\\n 494 | \\tProp_DistortionMeshResolution_Int32\\t\\t\\t= 2056, // custom resolution of compositor calls to IVRSystem::ComputeDistortion\\r\\n 495 | \\tProp_DriverIsDrawingControllers_Bool\\t\\t= 2057,\\r\\n 496 | \\tProp_DriverRequestsApplicationPause_Bool\\t= 2058,\\r\\n 497 | \\tProp_DriverRequestsReducedRendering_Bool\\t= 2059,\\r\\n 498 | \\tProp_MinimumIpdStepMeters_Float\\t\\t\\t\\t= 2060,\\r\\n 499 | \\tProp_AudioBridgeFirmwareVersion_Uint64\\t\\t= 2061,\\r\\n 500 | \\tProp_ImageBridgeFirmwareVersion_Uint64\\t\\t= 2062,\\r\\n 501 | \\tProp_ImuToHeadTransform_Matrix34\\t\\t\\t= 2063,\\r\\n 502 | \\tProp_ImuFactoryGyroBias_Vector3\\t\\t\\t\\t= 2064,\\r\\n 503 | \\tProp_ImuFactoryGyroScale_Vector3\\t\\t\\t= 2065,\\r\\n 504 | \\tProp_ImuFactoryAccelerometerBias_Vector3\\t= 2066,\\r\\n 505 | \\tProp_ImuFactoryAccelerometerScale_Vector3\\t= 2067,\\r\\n 506 | \\t// reserved 2068\\r\\n 507 | \\tProp_ConfigurationIncludesLighthouse20Features_Bool = 2069,\\r\\n 508 | \\tProp_AdditionalRadioFeatures_Uint64         = 2070,\\r\\n 509 | \\tProp_CameraWhiteBalance_Vector4_Array\\t\\t= 2071, // Prop_NumCameras_Int32-sized array of float[4] RGBG white balance calibration data (max size is vr::k_unMaxCameras)\\r\\n 510 | \\tProp_CameraDistortionFunction_Int32_Array\\t= 2072, // Prop_NumCameras_Int32-sized array of vr::EVRDistortionFunctionType values (max size is vr::k_unMaxCameras)\\r\\n 511 | \\tProp_CameraDistortionCoefficients_Float_Array = 2073, // Prop_NumCameras_Int32-sized array of double[vr::k_unMaxDistortionFunctionParameters] (max size is vr::k_unMaxCameras)\\r\\n 512 | \\tProp_ExpectedControllerType_String\\t\\t\\t= 2074,\\r\\n 513 | \\tProp_HmdTrackingStyle_Int32\\t\\t\\t\\t\\t= 2075, // one of EHmdTrackingStyle\\r\\n 514 | \\tProp_DriverProvidedChaperoneVisibility_Bool = 2076,\\r\\n 515 | \\tProp_HmdColumnCorrectionSettingPrefix_String = 2077,\\r\\n 516 | \\tProp_CameraSupportsCompatibilityModes_Bool\\t= 2078,\\r\\n 517 | \\tProp_SupportsRoomViewDepthProjection_Bool\\t= 2079,\\r\\n 518 | \\tProp_DisplayAvailableFrameRates_Float_Array = 2080, // populated by compositor from actual EDID list when available from GPU driver\\r\\n 519 | \\tProp_DisplaySupportsMultipleFramerates_Bool = 2081, // if this is true but Prop_DisplayAvailableFrameRates_Float_Array is empty, explain to user\\r\\n 520 | \\tProp_DisplayColorMultLeft_Vector3\\t\\t\\t= 2082,\\r\\n 521 | \\tProp_DisplayColorMultRight_Vector3\\t\\t\\t= 2083,\\r\\n 522 | \\tProp_DisplaySupportsRuntimeFramerateChange_Bool = 2084,\\r\\n 523 | \\tProp_DisplaySupportsAnalogGain_Bool \\t\\t= 2085,\\r\\n 524 | \\tProp_DisplayMinAnalogGain_Float \\t\\t\\t= 2086,\\r\\n 525 | \\tProp_DisplayMaxAnalogGain_Float \\t\\t\\t= 2087,\\r\\n 526 |     Prop_CameraExposureTime_Float               = 2088,\\r\\n 527 |     Prop_CameraGlobalGain_Float                 = 2089,\\r\\n 528 | \\t// Prop_DashboardLayoutPathName_String \\t\\t= 2090, // DELETED\\r\\n 529 | \\tProp_DashboardScale_Float \\t\\t\\t\\t\\t= 2091,\\r\\n 530 | \\tProp_PeerButtonInfo_String\\t\\t\\t\\t\\t= 2092,\\r\\n 531 | \\tProp_Hmd_SupportsHDR10_Bool\\t\\t\\t\\t\\t= 2093,\\r\\n 532 | \\tProp_Hmd_EnableParallelRenderCameras_Bool\\t= 2094,\\r\\n 533 | \\tProp_DriverProvidedChaperoneJson_String\\t\\t= 2095, // higher priority than Prop_DriverProvidedChaperonePath_String\\r\\n 534 | \\tProp_ForceSystemLayerUseAppPoses_Bool\\t\\t= 2096,\\r\\n 535 | \\r\\n 536 | \\tProp_IpdUIRangeMinMeters_Float \\t\\t\\t\\t= 2100,\\r\\n 537 | \\tProp_IpdUIRangeMaxMeters_Float \\t\\t\\t\\t= 2101,\\r\\n 538 | \\tProp_Hmd_SupportsHDCP14LegacyCompat_Bool\\t= 2102,\\r\\n 539 | \\tProp_Hmd_SupportsMicMonitoring_Bool \\t\\t= 2103,\\r\\n 540 | \\tProp_Hmd_SupportsDisplayPortTrainingMode_Bool\\t= 2104,\\r\\n 541 | \\tProp_Hmd_SupportsRoomViewDirect_Bool \\t\\t= 2105,\\r\\n 542 | \\tProp_Hmd_SupportsAppThrottling_Bool\\t\\t\\t= 2106,\\r\\n 543 | \\tProp_Hmd_SupportsGpuBusMonitoring_Bool\\t\\t= 2107,\\r\\n 544 | \\tProp_DriverDisplaysIPDChanges_Bool\\t\\t\\t= 2108,\\r\\n 545 | \\tProp_Driver_Reserved_01\\t\\t\\t\\t\\t\\t= 2109,\\r\\n 546 | \\r\\n 547 | \\tProp_DSCVersion_Int32\\t\\t\\t\\t\\t\\t= 2110,\\r\\n 548 | \\tProp_DSCSliceCount_Int32\\t\\t\\t\\t\\t= 2111,\\r\\n 549 | \\tProp_DSCBPPx16_Int32\\t\\t\\t\\t\\t\\t= 2112,\\r\\n 550 | \\r\\n 551 | \\tProp_Hmd_MaxDistortedTextureWidth_Int32\\t\\t= 2113,\\r\\n 552 | \\tProp_Hmd_MaxDistortedTextureHeight_Int32\\t= 2114,\\r\\n 553 | \\tProp_Hmd_AllowSupersampleFiltering_Bool\\t\\t= 2115,\\r\\n 554 | \\r\\n 555 | \\t// Driver requested mura correction properties\\r\\n 556 | \\tProp_DriverRequestedMuraCorrectionMode_Int32\\t\\t= 2200,\\r\\n 557 | \\tProp_DriverRequestedMuraFeather_InnerLeft_Int32\\t\\t= 2201,\\r\\n 558 | \\tProp_DriverRequestedMuraFeather_InnerRight_Int32\\t= 2202,\\r\\n 559 | \\tProp_DriverRequestedMuraFeather_InnerTop_Int32\\t\\t= 2203,\\r\\n 560 | \\tProp_DriverRequestedMuraFeather_InnerBottom_Int32\\t= 2204,\\r\\n 561 | \\tProp_DriverRequestedMuraFeather_OuterLeft_Int32\\t\\t= 2205,\\r\\n 562 | \\tProp_DriverRequestedMuraFeather_OuterRight_Int32\\t= 2206,\\r\\n 563 | \\tProp_DriverRequestedMuraFeather_OuterTop_Int32\\t\\t= 2207,\\r\\n 564 | \\tProp_DriverRequestedMuraFeather_OuterBottom_Int32\\t= 2208,\\r\\n 565 | \\r\\n 566 | \\tProp_Audio_DefaultPlaybackDeviceId_String\\t\\t\\t\\t= 2300,\\r\\n 567 | \\tProp_Audio_DefaultRecordingDeviceId_String\\t\\t\\t\\t= 2301,\\r\\n 568 | \\tProp_Audio_DefaultPlaybackDeviceVolume_Float\\t\\t\\t= 2302,\\r\\n 569 | \\tProp_Audio_SupportsDualSpeakerAndJackOutput_Bool\\t\\t= 2303,\\r\\n 570 | \\tProp_Audio_DriverManagesPlaybackVolumeControl_Bool\\t\\t= 2304,\\r\\n 571 | \\tProp_Audio_DriverPlaybackVolume_Float\\t\\t\\t\\t\\t= 2305,\\r\\n 572 | \\tProp_Audio_DriverPlaybackMute_Bool\\t\\t\\t\\t\\t\\t= 2306,\\r\\n 573 | \\tProp_Audio_DriverManagesRecordingVolumeControl_Bool\\t\\t= 2307,\\r\\n 574 | \\tProp_Audio_DriverRecordingVolume_Float\\t\\t\\t\\t\\t= 2308,\\r\\n 575 | \\tProp_Audio_DriverRecordingMute_Bool\\t\\t\\t\\t\\t\\t= 2309,\\r\\n 576 | \\r\\n 577 | \\t// Properties that are unique to TrackedDeviceClass_Controller\\r\\n 578 | \\tProp_AttachedDeviceId_String\\t\\t\\t\\t= 3000,\\r\\n 579 | \\tProp_SupportedButtons_Uint64\\t\\t\\t\\t= 3001,\\r\\n 580 | \\tProp_Axis0Type_Int32\\t\\t\\t\\t\\t\\t= 3002, // Return value is of type EVRControllerAxisType\\r\\n 581 | \\tProp_Axis1Type_Int32\\t\\t\\t\\t\\t\\t= 3003, // Return value is of type EVRControllerAxisType\\r\\n 582 | \\tProp_Axis2Type_Int32\\t\\t\\t\\t\\t\\t= 3004, // Return value is of type EVRControllerAxisType\\r\\n 583 | \\tProp_Axis3Type_Int32\\t\\t\\t\\t\\t\\t= 3005, // Return value is of type EVRControllerAxisType\\r\\n 584 | \\tProp_Axis4Type_Int32\\t\\t\\t\\t\\t\\t= 3006, // Return value is of type EVRControllerAxisType\\r\\n 585 | \\tProp_ControllerRoleHint_Int32\\t\\t\\t\\t= 3007, // Return value is of type ETrackedControllerRole\\r\\n 586 | \\r\\n 587 | \\t// Properties that are unique to TrackedDeviceClass_TrackingReference\\r\\n 588 | \\tProp_FieldOfViewLeftDegrees_Float\\t\\t\\t= 4000,\\r\\n 589 | \\tProp_FieldOfViewRightDegrees_Float\\t\\t\\t= 4001,\\r\\n 590 | \\tProp_FieldOfViewTopDegrees_Float\\t\\t\\t= 4002,\\r\\n 591 | \\tProp_FieldOfViewBottomDegrees_Float\\t\\t\\t= 4003,\\r\\n 592 | \\tProp_TrackingRangeMinimumMeters_Float\\t\\t= 4004,\\r\\n 593 | \\tProp_TrackingRangeMaximumMeters_Float\\t\\t= 4005,\\r\\n 594 | \\tProp_ModeLabel_String\\t\\t\\t\\t\\t\\t= 4006,\\r\\n 595 | \\tProp_CanWirelessIdentify_Bool               = 4007, // volatile, based on radio presence and fw discovery\\r\\n 596 | \\tProp_Nonce_Int32                            = 4008,\\r\\n 597 | \\r\\n 598 | \\t// Properties that are used for user interface like icons names\\r\\n 599 | \\tProp_IconPathName_String\\t\\t\\t\\t\\t\\t= 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties.\\r\\n 600 | \\tProp_NamedIconPathDeviceOff_String\\t\\t\\t\\t= 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others\\r\\n 601 | \\tProp_NamedIconPathDeviceSearching_String\\t\\t= 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others\\r\\n 602 | \\tProp_NamedIconPathDeviceSearchingAlert_String\\t= 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others\\r\\n 603 | \\tProp_NamedIconPathDeviceReady_String\\t\\t\\t= 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others\\r\\n 604 | \\tProp_NamedIconPathDeviceReadyAlert_String\\t\\t= 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others\\r\\n 605 | \\tProp_NamedIconPathDeviceNotReady_String\\t\\t\\t= 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others\\r\\n 606 | \\tProp_NamedIconPathDeviceStandby_String\\t\\t\\t= 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others\\r\\n 607 | \\tProp_NamedIconPathDeviceAlertLow_String\\t\\t\\t= 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others\\r\\n 608 | \\tProp_NamedIconPathDeviceStandbyAlert_String\\t\\t= 5009, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others\\r\\n 609 | \\r\\n 610 | \\t// Properties that are used by helpers, but are opaque to applications\\r\\n 611 | \\tProp_DisplayHiddenArea_Binary_Start\\t\\t\\t\\t= 5100,\\r\\n 612 | \\tProp_DisplayHiddenArea_Binary_End\\t\\t\\t\\t= 5150,\\r\\n 613 | \\tProp_ParentContainer\\t\\t\\t\\t\\t\\t\\t= 5151,\\r\\n 614 | \\tProp_OverrideContainer_Uint64\\t\\t\\t\\t\\t= 5152,\\r\\n 615 | \\r\\n 616 | \\t// Properties that are unique to drivers\\r\\n 617 | \\tProp_UserConfigPath_String\\t\\t\\t\\t\\t= 6000,\\r\\n 618 | \\tProp_InstallPath_String\\t\\t\\t\\t\\t\\t= 6001,\\r\\n 619 | \\tProp_HasDisplayComponent_Bool\\t\\t\\t\\t= 6002,\\r\\n 620 | \\tProp_HasControllerComponent_Bool\\t\\t\\t= 6003,\\r\\n 621 | \\tProp_HasCameraComponent_Bool\\t\\t\\t\\t= 6004,\\r\\n 622 | \\tProp_HasDriverDirectModeComponent_Bool\\t\\t= 6005,\\r\\n 623 | \\tProp_HasVirtualDisplayComponent_Bool\\t\\t= 6006,\\r\\n 624 | \\tProp_HasSpatialAnchorsSupport_Bool\\t\\t\\t= 6007,\\r\\n 625 | \\tProp_SupportsXrTextureSets_Bool\\t\\t\\t\\t= 6008,\\r\\n 626 | \\r\\n 627 | \\t// Properties that are set internally based on other information provided by drivers\\r\\n 628 | \\tProp_ControllerType_String\\t\\t\\t\\t\\t= 7000,\\r\\n 629 | \\t//Prop_LegacyInputProfile_String\\t\\t\\t\\t= 7001, // This is no longer used. See \\\"legacy_binding\\\" in the input profile instead.\\r\\n 630 | \\tProp_ControllerHandSelectionPriority_Int32\\t= 7002, // Allows hand assignments to prefer some controllers over others. High numbers are selected over low numbers\\r\\n 631 | \\r\\n 632 | \\t// Vendors are free to expose private debug data in this reserved region\\r\\n 633 | \\tProp_VendorSpecific_Reserved_Start\\t\\t\\t= 10000,\\r\\n 634 | \\tProp_VendorSpecific_Reserved_End\\t\\t\\t= 10999,\\r\\n 635 | \\r\\n 636 | \\tProp_TrackedDeviceProperty_Max\\t\\t\\t\\t= 1000000,\\r\\n 637 | };\\r\\n 638 | \\r\\n 639 | /** No string property will ever be longer than this length */\\r\\n 640 | static const uint32_t k_unMaxPropertyStringSize = 32 * 1024;\\r\\n 641 | \\r\\n 642 | /** Used to return errors that occur when reading properties. */\\r\\n 643 | enum ETrackedPropertyError\\r\\n 644 | {\\r\\n 645 | \\tTrackedProp_Success\\t\\t\\t\\t\\t\\t= 0,\\r\\n 646 | \\tTrackedProp_WrongDataType\\t\\t\\t\\t= 1,\\r\\n 647 | \\tTrackedProp_WrongDeviceClass\\t\\t\\t= 2,\\r\\n 648 | \\tTrackedProp_BufferTooSmall\\t\\t\\t\\t= 3,\\r\\n 649 | \\tTrackedProp_UnknownProperty\\t\\t\\t\\t= 4, // Driver has not set the property (and may not ever).\\r\\n 650 | \\tTrackedProp_InvalidDevice\\t\\t\\t\\t= 5,\\r\\n 651 | \\tTrackedProp_CouldNotContactServer\\t\\t= 6,\\r\\n 652 | \\tTrackedProp_ValueNotProvidedByDevice\\t= 7,\\r\\n 653 | \\tTrackedProp_StringExceedsMaximumLength\\t= 8,\\r\\n 654 | \\tTrackedProp_NotYetAvailable\\t\\t\\t\\t= 9, // The property value isn't known yet, but is expected soon. Call again later.\\r\\n 655 | \\tTrackedProp_PermissionDenied\\t\\t\\t= 10,\\r\\n 656 | \\tTrackedProp_InvalidOperation\\t\\t\\t= 11,\\r\\n 657 | \\tTrackedProp_CannotWriteToWildcards\\t\\t= 12,\\r\\n 658 | \\tTrackedProp_IPCReadFailure\\t\\t\\t\\t= 13,\\r\\n 659 | \\tTrackedProp_OutOfMemory\\t\\t\\t\\t\\t= 14,\\r\\n 660 | \\tTrackedProp_InvalidContainer\\t\\t\\t= 15,\\r\\n 661 | };\\r\\n 662 | \\r\\n 663 | /** Used to drive certain text in the UI when talking about the tracking system for the HMD */\\r\\n 664 | enum EHmdTrackingStyle\\r\\n 665 | {\\r\\n 666 | \\tHmdTrackingStyle_Unknown\\t\\t\\t\\t= 0,\\r\\n 667 | \\r\\n 668 | \\tHmdTrackingStyle_Lighthouse\\t\\t\\t\\t= 1, // base stations and lasers\\r\\n 669 | \\tHmdTrackingStyle_OutsideInCameras\\t\\t= 2, // Cameras and LED, Rift 1 style\\r\\n 670 | \\tHmdTrackingStyle_InsideOutCameras\\t\\t= 3, // Cameras on HMD looking at the world\\r\\n 671 | };\\r\\n 672 | \\r\\n 673 | typedef uint64_t VRActionHandle_t;\\r\\n 674 | typedef uint64_t VRActionSetHandle_t;\\r\\n 675 | typedef uint64_t VRInputValueHandle_t;\\r\\n 676 | \\r\\n 677 | static const VRActionHandle_t k_ulInvalidActionHandle = 0;\\r\\n 678 | static const VRActionSetHandle_t k_ulInvalidActionSetHandle = 0;\\r\\n 679 | static const VRInputValueHandle_t k_ulInvalidInputValueHandle = 0;\\r\\n 680 | \\r\\n 681 | \\r\\n 682 | /** Allows the application to control how scene textures are used by the compositor when calling Submit. */\\r\\n 683 | enum EVRSubmitFlags\\r\\n 684 | {\\r\\n 685 | \\t// Simple render path. App submits rendered left and right eye images with no lens distortion correction applied.\\r\\n 686 | \\tSubmit_Default = 0x00,\\r\\n 687 | \\r\\n 688 | \\t// App submits final left and right eye images with lens distortion already applied (lens distortion makes the images appear\\r\\n 689 | \\t// barrel distorted with chromatic aberration correction applied). The app would have used the data returned by\\r\\n 690 | \\t// vr::IVRSystem::ComputeDistortion() to apply the correct distortion to the rendered images before calling Submit().\\r\\n 691 | \\tSubmit_LensDistortionAlreadyApplied = 0x01,\\r\\n 692 | \\r\\n 693 | \\t// If the texture pointer passed in is actually a renderbuffer (e.g. for MSAA in OpenGL) then set this flag.\\r\\n 694 | \\tSubmit_GlRenderBuffer = 0x02,\\r\\n 695 | \\r\\n 696 | \\t// Do not use\\r\\n 697 | \\tSubmit_Reserved = 0x04,\\r\\n 698 | \\r\\n 699 | \\t// Set to indicate that pTexture is a pointer to a VRTextureWithPose_t.\\r\\n 700 | \\t// This flag can be combined with Submit_TextureWithDepth to pass a VRTextureWithPoseAndDepth_t.\\r\\n 701 | \\tSubmit_TextureWithPose = 0x08,\\r\\n 702 | \\r\\n 703 | \\t// Set to indicate that pTexture is a pointer to a VRTextureWithDepth_t.\\r\\n 704 | \\t// This flag can be combined with Submit_TextureWithPose to pass a VRTextureWithPoseAndDepth_t.\\r\\n 705 | \\tSubmit_TextureWithDepth = 0x10,\\r\\n 706 | \\r\\n 707 | \\t// Set to indicate a discontinuity between this and the last frame.\\r\\n 708 | \\t// This will prevent motion smoothing from attempting to extrapolate using the pair.\\r\\n 709 | \\tSubmit_FrameDiscontinuty = 0x20,\\r\\n 710 | \\r\\n 711 | \\t// Set to indicate that pTexture->handle is a contains VRVulkanTextureArrayData_t\\r\\n 712 | \\tSubmit_VulkanTextureWithArrayData = 0x40,\\r\\n 713 | \\r\\n 714 | \\t// If the texture pointer passed in is an OpenGL Array texture, set this flag\\r\\n 715 | \\tSubmit_GlArrayTexture = 0x80,\\r\\n 716 | \\r\\n 717 | \\t// If the texture is an EGL texture and not an glX/wGL texture (Linux only, currently)\\r\\n 718 | \\tSubmit_IsEgl = 0x100,\\r\\n 719 | \\r\\n 720 | \\t// Do not use\\r\\n 721 | \\tSubmit_Reserved2 = 0x08000,\\r\\n 722 | \\tSubmit_Reserved3 = 0x10000,\\r\\n 723 | \\r\\n 724 | };\\r\\n 725 | \\r\\n 726 | /** Data required for passing Vulkan textures to IVRCompositor::Submit.\\r\\n 727 | * Be sure to call OpenVR_Shutdown before destroying these resources.\\r\\n 728 | * Please see https://github.com/ValveSoftware/openvr/wiki/Vulkan for Vulkan-specific documentation */\\r\\n 729 | struct VRVulkanTextureData_t\\r\\n 730 | {\\r\\n 731 | \\tuint64_t m_nImage; // VkImage\\r\\n 732 | \\tVkDevice_T *m_pDevice;\\r\\n 733 | \\tVkPhysicalDevice_T *m_pPhysicalDevice;\\r\\n 734 | \\tVkInstance_T *m_pInstance;\\r\\n 735 | \\tVkQueue_T *m_pQueue;\\r\\n 736 | \\tuint32_t m_nQueueFamilyIndex;\\r\\n 737 | \\tuint32_t m_nWidth, m_nHeight, m_nFormat, m_nSampleCount;\\r\\n 738 | };\\r\\n 739 | \\r\\n 740 | /** Data required for passing Vulkan texture arrays to IVRCompositor::Submit.\\r\\n 741 | * Be sure to call OpenVR_Shutdown before destroying these resources.\\r\\n 742 | * Please see https://github.com/ValveSoftware/openvr/wiki/Vulkan for Vulkan-specific documentation */\\r\\n 743 | struct VRVulkanTextureArrayData_t : public VRVulkanTextureData_t\\r\\n 744 | {\\r\\n 745 | \\tuint32_t m_unArrayIndex;\\r\\n 746 | \\tuint32_t m_unArraySize;\\r\\n 747 | };\\r\\n 748 | \\r\\n 749 | /** Data required for passing D3D12 textures to IVRCompositor::Submit.\\r\\n 750 | * Be sure to call OpenVR_Shutdown before destroying these resources. */\\r\\n 751 | struct D3D12TextureData_t\\r\\n 752 | {\\r\\n 753 | \\tID3D12Resource *m_pResource;\\r\\n 754 | \\tID3D12CommandQueue *m_pCommandQueue;\\r\\n 755 | \\tuint32_t m_nNodeMask;\\r\\n 756 | };\\r\\n 757 | \\r\\n 758 | /** Status of the overall system or tracked objects */\\r\\n 759 | enum EVRState\\r\\n 760 | {\\r\\n 761 | \\tVRState_Undefined = -1,\\r\\n 762 | \\tVRState_Off = 0,\\r\\n 763 | \\tVRState_Searching = 1,\\r\\n 764 | \\tVRState_Searching_Alert = 2,\\r\\n 765 | \\tVRState_Ready = 3,\\r\\n 766 | \\tVRState_Ready_Alert = 4,\\r\\n 767 | \\tVRState_NotReady = 5,\\r\\n 768 | \\tVRState_Standby = 6,\\r\\n 769 | \\tVRState_Ready_Alert_Low = 7,\\r\\n 770 | };\\r\\n 771 | \\r\\n 772 | /** The types of events that could be posted (and what the parameters mean for each event type) */\\r\\n 773 | enum EVREventType\\r\\n 774 | {\\r\\n 775 | \\tVREvent_None = 0,\\r\\n 776 | \\r\\n 777 | \\tVREvent_TrackedDeviceActivated\\t\\t= 100,\\r\\n 778 | \\tVREvent_TrackedDeviceDeactivated\\t= 101,\\r\\n 779 | \\tVREvent_TrackedDeviceUpdated\\t\\t= 102,\\r\\n 780 | \\tVREvent_TrackedDeviceUserInteractionStarted\\t= 103,\\r\\n 781 | \\tVREvent_TrackedDeviceUserInteractionEnded\\t= 104,\\r\\n 782 | \\tVREvent_IpdChanged\\t\\t\\t\\t\\t= 105,\\r\\n 783 | \\tVREvent_EnterStandbyMode\\t\\t\\t= 106,\\r\\n 784 | \\tVREvent_LeaveStandbyMode\\t\\t\\t= 107,\\r\\n 785 | \\tVREvent_TrackedDeviceRoleChanged\\t= 108,\\r\\n 786 | \\tVREvent_WatchdogWakeUpRequested\\t\\t= 109,\\r\\n 787 | \\tVREvent_LensDistortionChanged\\t\\t= 110,\\r\\n 788 | \\tVREvent_PropertyChanged\\t\\t\\t\\t= 111,\\r\\n 789 | \\tVREvent_WirelessDisconnect\\t\\t\\t= 112,\\r\\n 790 | \\tVREvent_WirelessReconnect\\t\\t\\t= 113,\\r\\n 791 | \\tVREvent_Reserved_01\\t\\t\\t\\t\\t= 114,\\r\\n 792 | \\tVREvent_Reserved_02\\t\\t\\t\\t\\t= 115,\\r\\n 793 | \\r\\n 794 | \\tVREvent_ButtonPress\\t\\t\\t\\t\\t= 200, // data is controller\\r\\n 795 | \\tVREvent_ButtonUnpress\\t\\t\\t\\t= 201, // data is controller\\r\\n 796 | \\tVREvent_ButtonTouch\\t\\t\\t\\t\\t= 202, // data is controller\\r\\n 797 | \\tVREvent_ButtonUntouch\\t\\t\\t\\t= 203, // data is controller\\r\\n 798 | \\r\\n 799 | \\t// VREvent_DualAnalog_Press\\t\\t\\t= 250, // No longer sent\\r\\n 800 | \\t// VREvent_DualAnalog_Unpress\\t\\t= 251, // No longer sent\\r\\n 801 | \\t// VREvent_DualAnalog_Touch\\t\\t\\t= 252, // No longer sent\\r\\n 802 | \\t// VREvent_DualAnalog_Untouch\\t\\t= 253, // No longer sent\\r\\n 803 | \\t// VREvent_DualAnalog_Move\\t\\t\\t= 254, // No longer sent\\r\\n 804 | \\t// VREvent_DualAnalog_ModeSwitch1\\t= 255, // No longer sent\\r\\n 805 | \\t// VREvent_DualAnalog_ModeSwitch2\\t= 256, // No longer sent\\r\\n 806 | \\tVREvent_Modal_Cancel\\t\\t\\t\\t= 257, // Sent to overlays with the\\r\\n 807 | \\r\\n 808 | \\tVREvent_MouseMove\\t\\t\\t\\t\\t= 300, // data is mouse\\r\\n 809 | \\tVREvent_MouseButtonDown\\t\\t\\t\\t= 301, // data is mouse\\r\\n 810 | \\tVREvent_MouseButtonUp\\t\\t\\t\\t= 302, // data is mouse\\r\\n 811 | \\tVREvent_FocusEnter\\t\\t\\t\\t\\t= 303, // data is overlay\\r\\n 812 | \\tVREvent_FocusLeave\\t\\t\\t\\t\\t= 304, // data is overlay\\r\\n 813 | \\tVREvent_ScrollDiscrete\\t\\t\\t\\t= 305, // data is scroll\\r\\n 814 | \\tVREvent_TouchPadMove\\t\\t\\t\\t= 306, // data is mouse\\r\\n 815 | \\tVREvent_OverlayFocusChanged\\t\\t\\t= 307, // data is overlay, global event\\r\\n 816 | \\tVREvent_ReloadOverlays\\t\\t\\t\\t= 308,\\r\\n 817 | \\tVREvent_ScrollSmooth\\t\\t\\t\\t= 309, // data is scroll\\r\\n 818 | \\tVREvent_LockMousePosition\\t\\t\\t= 310, // data is mouse\\r\\n 819 | \\tVREvent_UnlockMousePosition\\t\\t\\t= 311, // data is mouse\\r\\n 820 | \\r\\n 821 | \\tVREvent_InputFocusCaptured\\t\\t\\t= 400, // data is process DEPRECATED\\r\\n 822 | \\tVREvent_InputFocusReleased\\t\\t\\t= 401, // data is process DEPRECATED\\r\\n 823 | \\t// VREvent_SceneFocusLost\\t\\t\\t= 402, // data is process\\r\\n 824 | \\t// VREvent_SceneFocusGained\\t\\t\\t= 403, // data is process\\r\\n 825 | \\tVREvent_SceneApplicationChanged\\t\\t= 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor)\\r\\n 826 | \\t// VREvent_SceneFocusChanged\\t\\t= 405, // data is process - This is defunct and will not be called.\\r\\n 827 | \\tVREvent_InputFocusChanged\\t\\t\\t= 406, // data is process\\r\\n 828 | \\t// VREvent_SceneApplicationSecondaryRenderingStarted = 407,\\r\\n 829 | \\tVREvent_SceneApplicationUsingWrongGraphicsAdapter = 408, // data is process\\r\\n 830 | \\tVREvent_ActionBindingReloaded\\t\\t = 409, // data is process - The App that action binds reloaded for\\r\\n 831 | \\r\\n 832 | \\tVREvent_HideRenderModels\\t\\t\\t= 410, // Sent to the scene application to request hiding render models temporarily\\r\\n 833 | \\tVREvent_ShowRenderModels\\t\\t\\t= 411, // Sent to the scene application to request restoring render model visibility\\r\\n 834 | \\r\\n 835 | \\tVREvent_SceneApplicationStateChanged = 412, // No data; but query VRApplications()->GetSceneApplicationState();\\r\\n 836 | \\r\\n 837 | \\tVREvent_SceneAppPipeDisconnected    = 413, // data is process - Called when the scene app's pipe has been closed.\\r\\n 838 | \\r\\n 839 | \\tVREvent_ConsoleOpened               = 420,\\r\\n 840 | \\tVREvent_ConsoleClosed               = 421,\\r\\n 841 | \\r\\n 842 | \\tVREvent_OverlayShown\\t\\t\\t\\t= 500, // Indicates that an overlay is now visible to someone and should be rendering normally. Reflects IVROverlay::IsOverlayVisible() becoming true.\\r\\n 843 | \\tVREvent_OverlayHidden\\t\\t\\t\\t= 501, // Indicates that an overlay is no longer visible to someone and doesn't need to render frames. Reflects IVROverlay::IsOverlayVisible() becoming false.\\r\\n 844 | \\tVREvent_DashboardActivated\\t\\t\\t= 502,\\r\\n 845 | \\tVREvent_DashboardDeactivated\\t\\t= 503,\\r\\n 846 | \\t//VREvent_DashboardThumbSelected\\t\\t= 504, // Sent to the overlay manager - data is overlay - No longer sent\\r\\n 847 | \\tVREvent_DashboardRequested\\t\\t\\t= 505, // Sent to the overlay manager - data is overlay\\r\\n 848 | \\tVREvent_ResetDashboard\\t\\t\\t\\t= 506, // Send to the overlay manager\\r\\n 849 | \\t//VREvent_RenderToast\\t\\t\\t\\t\\t= 507, // Send to the dashboard to render a toast - data is the notification ID -- no longer sent\\r\\n 850 | \\tVREvent_ImageLoaded\\t\\t\\t\\t\\t= 508, // Sent to overlays when a SetOverlayRaw or SetOverlayFromFile call finishes loading\\r\\n 851 | \\tVREvent_ShowKeyboard\\t\\t\\t\\t= 509, // Sent to keyboard renderer in the dashboard to invoke it\\r\\n 852 | \\tVREvent_HideKeyboard\\t\\t\\t\\t= 510, // Sent to keyboard renderer in the dashboard to hide it\\r\\n 853 | \\tVREvent_OverlayGamepadFocusGained\\t= 511, // Sent to an overlay when IVROverlay::SetFocusOverlay is called on it\\r\\n 854 | \\tVREvent_OverlayGamepadFocusLost\\t\\t= 512, // Send to an overlay when it previously had focus and IVROverlay::SetFocusOverlay is called on something else\\r\\n 855 | \\tVREvent_OverlaySharedTextureChanged = 513,\\r\\n 856 | \\t//VREvent_DashboardGuideButtonDown\\t= 514, // These are no longer sent\\r\\n 857 | \\t//VREvent_DashboardGuideButtonUp\\t\\t= 515,\\r\\n 858 | \\tVREvent_ScreenshotTriggered\\t\\t\\t= 516, // Screenshot button combo was pressed, Dashboard should request a screenshot\\r\\n 859 | \\tVREvent_ImageFailed\\t\\t\\t\\t\\t= 517, // Sent to overlays when a SetOverlayRaw or SetOverlayfromFail fails to load\\r\\n 860 | \\tVREvent_DashboardOverlayCreated\\t\\t= 518,\\r\\n 861 | \\tVREvent_SwitchGamepadFocus\\t\\t\\t= 519,\\r\\n 862 | \\r\\n 863 | \\t// Screenshot API\\r\\n 864 | \\tVREvent_RequestScreenshot\\t\\t\\t\\t= 520, // Sent by vrclient application to compositor to take a screenshot\\r\\n 865 | \\tVREvent_ScreenshotTaken\\t\\t\\t\\t\\t= 521, // Sent by compositor to the application that the screenshot has been taken\\r\\n 866 | \\tVREvent_ScreenshotFailed\\t\\t\\t\\t= 522, // Sent by compositor to the application that the screenshot failed to be taken\\r\\n 867 | \\tVREvent_SubmitScreenshotToDashboard\\t\\t= 523, // Sent by compositor to the dashboard that a completed screenshot was submitted\\r\\n 868 | \\tVREvent_ScreenshotProgressToDashboard\\t= 524, // Sent by compositor to the dashboard that a completed screenshot was submitted\\r\\n 869 | \\r\\n 870 | \\tVREvent_PrimaryDashboardDeviceChanged\\t= 525,\\r\\n 871 | \\tVREvent_RoomViewShown\\t\\t\\t\\t\\t= 526, // Sent by compositor whenever room-view is enabled\\r\\n 872 | \\tVREvent_RoomViewHidden\\t\\t\\t\\t\\t= 527, // Sent by compositor whenever room-view is disabled\\r\\n 873 | \\tVREvent_ShowUI\\t\\t\\t\\t\\t\\t\\t= 528, // data is showUi\\r\\n 874 | \\tVREvent_ShowDevTools\\t\\t\\t\\t\\t= 529, // data is showDevTools\\r\\n 875 | \\tVREvent_DesktopViewUpdating\\t\\t\\t\\t= 530,\\r\\n 876 | \\tVREvent_DesktopViewReady\\t\\t\\t\\t= 531,\\r\\n 877 | \\r\\n 878 | \\tVREvent_StartDashboard\\t\\t\\t\\t\\t= 532,\\r\\n 879 | \\tVREvent_ElevatePrism\\t\\t\\t\\t\\t= 533,\\r\\n 880 | \\r\\n 881 | \\tVREvent_OverlayClosed\\t\\t\\t\\t\\t= 534,\\r\\n 882 | \\r\\n 883 | \\tVREvent_DashboardThumbChanged\\t\\t\\t= 535, // Sent when a dashboard thumbnail image changes\\r\\n 884 | \\r\\n 885 | \\tVREvent_DesktopMightBeVisible\\t\\t\\t= 536, // Sent when any known desktop related overlay is visible\\r\\n 886 | \\tVREvent_DesktopMightBeHidden\\t\\t\\t= 537, // Sent when all known desktop related overlays are hidden\\r\\n 887 | \\r\\n 888 | \\tVREvent_MutualSteamCapabilitiesChanged\\t= 538, // Sent when the set of capabilities common between both Steam and SteamVR have changed.\\r\\n 889 | \\r\\n 890 | \\tVREvent_OverlayCreated\\t\\t\\t\\t\\t= 539, // An OpenVR overlay of any sort was created. Data is overlay.\\r\\n 891 | \\tVREvent_OverlayDestroyed\\t\\t\\t\\t= 540, // An OpenVR overlay of any sort was destroyed. Data is overlay.\\r\\n 892 | \\r\\n 893 | \\tVREvent_Notification_Shown\\t\\t\\t\\t= 600,\\r\\n 894 | \\tVREvent_Notification_Hidden\\t\\t\\t\\t= 601,\\r\\n 895 | \\tVREvent_Notification_BeginInteraction\\t= 602,\\r\\n 896 | \\tVREvent_Notification_Destroyed\\t\\t\\t= 603,\\r\\n 897 | \\r\\n 898 | \\tVREvent_Quit\\t\\t\\t\\t\\t\\t\\t= 700, // data is process\\r\\n 899 | \\tVREvent_ProcessQuit\\t\\t\\t\\t\\t\\t= 701, // data is process\\r\\n 900 | \\t//VREvent_QuitAborted_UserPrompt\\t\\t\\t= 702, // data is process\\r\\n 901 | \\tVREvent_QuitAcknowledged\\t\\t\\t\\t= 703, // data is process\\r\\n 902 | \\tVREvent_DriverRequestedQuit\\t\\t\\t\\t= 704, // The driver has requested that SteamVR shut down\\r\\n 903 | \\tVREvent_RestartRequested\\t\\t\\t\\t= 705, // A driver or other component wants the user to restart SteamVR\\r\\n 904 | \\tVREvent_InvalidateSwapTextureSets\\t\\t= 706,\\r\\n 905 | \\r\\n 906 | \\tVREvent_ChaperoneDataHasChanged\\t\\t\\t= 800, // this will never happen with the new chaperone system\\r\\n 907 | \\tVREvent_ChaperoneUniverseHasChanged\\t\\t= 801,\\r\\n 908 | \\tVREvent_ChaperoneTempDataHasChanged\\t\\t= 802, // this will never happen with the new chaperone system\\r\\n 909 | \\tVREvent_ChaperoneSettingsHaveChanged\\t= 803,\\r\\n 910 | \\tVREvent_SeatedZeroPoseReset\\t\\t\\t\\t= 804,\\r\\n 911 | \\tVREvent_ChaperoneFlushCache\\t\\t\\t\\t= 805, // Sent when the process needs to reload any cached data it retrieved from VRChaperone()\\r\\n 912 | \\tVREvent_ChaperoneRoomSetupStarting\\t    = 806, // Triggered by CVRChaperoneClient::RoomSetupStarting\\r\\n 913 | \\tVREvent_ChaperoneRoomSetupFinished\\t    = 807, // Triggered by CVRChaperoneClient::CommitWorkingCopy\\r\\n 914 | \\tVREvent_StandingZeroPoseReset\\t\\t\\t= 808,\\r\\n 915 | \\r\\n 916 | \\tVREvent_AudioSettingsHaveChanged\\t\\t= 820,\\r\\n 917 | \\r\\n 918 | \\tVREvent_BackgroundSettingHasChanged\\t\\t\\t\\t= 850,\\r\\n 919 | \\tVREvent_CameraSettingsHaveChanged\\t\\t\\t\\t= 851,\\r\\n 920 | \\tVREvent_ReprojectionSettingHasChanged\\t\\t\\t= 852,\\r\\n 921 | \\tVREvent_ModelSkinSettingsHaveChanged\\t\\t\\t= 853,\\r\\n 922 | \\tVREvent_EnvironmentSettingsHaveChanged\\t\\t\\t= 854,\\r\\n 923 | \\tVREvent_PowerSettingsHaveChanged\\t\\t\\t\\t= 855,\\r\\n 924 | \\tVREvent_EnableHomeAppSettingsHaveChanged\\t\\t= 856,\\r\\n 925 | \\tVREvent_SteamVRSectionSettingChanged\\t\\t\\t= 857,\\r\\n 926 | \\tVREvent_LighthouseSectionSettingChanged\\t\\t\\t= 858,\\r\\n 927 | \\tVREvent_NullSectionSettingChanged\\t\\t\\t\\t= 859,\\r\\n 928 | \\tVREvent_UserInterfaceSectionSettingChanged\\t\\t= 860,\\r\\n 929 | \\tVREvent_NotificationsSectionSettingChanged\\t\\t= 861,\\r\\n 930 | \\tVREvent_KeyboardSectionSettingChanged\\t\\t\\t= 862,\\r\\n 931 | \\tVREvent_PerfSectionSettingChanged\\t\\t\\t\\t= 863,\\r\\n 932 | \\tVREvent_DashboardSectionSettingChanged\\t\\t\\t= 864,\\r\\n 933 | \\tVREvent_WebInterfaceSectionSettingChanged\\t\\t= 865,\\r\\n 934 | \\tVREvent_TrackersSectionSettingChanged\\t\\t\\t= 866,\\r\\n 935 | \\tVREvent_LastKnownSectionSettingChanged\\t\\t\\t= 867,\\r\\n 936 | \\tVREvent_DismissedWarningsSectionSettingChanged\\t= 868,\\r\\n 937 | \\tVREvent_GpuSpeedSectionSettingChanged\\t\\t\\t= 869,\\r\\n 938 | \\tVREvent_WindowsMRSectionSettingChanged\\t\\t\\t= 870,\\r\\n 939 | \\tVREvent_OtherSectionSettingChanged\\t\\t\\t\\t= 871,\\r\\n 940 | \\tVREvent_AnyDriverSettingsChanged\\t\\t\\t\\t= 872,\\r\\n 941 | \\r\\n 942 | \\tVREvent_StatusUpdate\\t\\t\\t\\t\\t= 900,\\r\\n 943 | \\r\\n 944 | \\tVREvent_WebInterface_InstallDriverCompleted = 950,\\r\\n 945 | \\r\\n 946 | \\tVREvent_MCImageUpdated\\t\\t\\t\\t\\t= 1000,\\r\\n 947 | \\r\\n 948 | \\tVREvent_FirmwareUpdateStarted\\t\\t\\t= 1100,\\r\\n 949 | \\tVREvent_FirmwareUpdateFinished\\t\\t\\t= 1101,\\r\\n 950 | \\r\\n 951 | \\tVREvent_KeyboardClosed\\t\\t\\t\\t\\t= 1200, // DEPRECATED: Sent only to the overlay it closed for, or globally if it was closed for a scene app\\r\\n 952 | \\tVREvent_KeyboardCharInput\\t\\t\\t\\t= 1201,\\r\\n 953 | \\tVREvent_KeyboardDone\\t\\t\\t\\t\\t= 1202, // Sent when DONE button clicked on keyboard\\r\\n 954 | \\tVREvent_KeyboardOpened_Global\\t\\t\\t= 1203, // Sent globally when the keyboard is opened. data.keyboard.overlayHandle is who it was opened for (scene app if k_ulOverlayHandleInvalid)\\r\\n 955 | \\tVREvent_KeyboardClosed_Global\\t\\t\\t= 1204, // Sent globally when the keyboard is closed. data.keyboard.overlayHandle is who it was opened for (scene app if k_ulOverlayHandleInvalid)\\r\\n 956 | \\r\\n 957 | \\t//VREvent_ApplicationTransitionStarted\\t\\t= 1300,\\r\\n 958 | \\t//VREvent_ApplicationTransitionAborted\\t\\t= 1301,\\r\\n 959 | \\t//VREvent_ApplicationTransitionNewAppStarted\\t= 1302,\\r\\n 960 | \\tVREvent_ApplicationListUpdated\\t\\t\\t\\t= 1303,\\r\\n 961 | \\tVREvent_ApplicationMimeTypeLoad\\t\\t\\t\\t= 1304,\\r\\n 962 | \\t// VREvent_ApplicationTransitionNewAppLaunchComplete = 1305,\\r\\n 963 | \\tVREvent_ProcessConnected\\t\\t\\t\\t\\t= 1306,\\r\\n 964 | \\tVREvent_ProcessDisconnected\\t\\t\\t\\t\\t= 1307,\\r\\n 965 | \\r\\n 966 | \\t//VREvent_Compositor_MirrorWindowShown\\t\\t= 1400, // DEPRECATED\\r\\n 967 | \\t//VREvent_Compositor_MirrorWindowHidden\\t\\t= 1401, // DEPRECATED\\r\\n 968 | \\tVREvent_Compositor_ChaperoneBoundsShown\\t\\t= 1410,\\r\\n 969 | \\tVREvent_Compositor_ChaperoneBoundsHidden\\t= 1411,\\r\\n 970 | \\tVREvent_Compositor_DisplayDisconnected\\t\\t= 1412,\\r\\n 971 | \\tVREvent_Compositor_DisplayReconnected\\t\\t= 1413,\\r\\n 972 | \\tVREvent_Compositor_HDCPError\\t\\t\\t\\t= 1414, // data is hdcpError\\r\\n 973 | \\tVREvent_Compositor_ApplicationNotResponding\\t= 1415,\\r\\n 974 | \\tVREvent_Compositor_ApplicationResumed\\t\\t= 1416,\\r\\n 975 | \\tVREvent_Compositor_OutOfVideoMemory\\t\\t\\t= 1417,\\r\\n 976 | \\tVREvent_Compositor_DisplayModeNotSupported\\t= 1418, // k_pch_SteamVR_PreferredRefreshRate\\r\\n 977 | \\tVREvent_Compositor_StageOverrideReady\\t\\t= 1419,\\r\\n 978 | \\tVREvent_Compositor_RequestDisconnectReconnect = 1420,\\r\\n 979 | \\r\\n 980 | \\tVREvent_TrackedCamera_StartVideoStream  = 1500,\\r\\n 981 | \\tVREvent_TrackedCamera_StopVideoStream   = 1501,\\r\\n 982 | \\tVREvent_TrackedCamera_PauseVideoStream  = 1502,\\r\\n 983 | \\tVREvent_TrackedCamera_ResumeVideoStream = 1503,\\r\\n 984 | \\tVREvent_TrackedCamera_EditingSurface    = 1550,\\r\\n 985 | \\r\\n 986 | \\tVREvent_PerformanceTest_EnableCapture\\t= 1600,\\r\\n 987 | \\tVREvent_PerformanceTest_DisableCapture\\t= 1601,\\r\\n 988 | \\tVREvent_PerformanceTest_FidelityLevel\\t= 1602,\\r\\n 989 | \\r\\n 990 | \\tVREvent_MessageOverlay_Closed\\t\\t\\t= 1650,\\r\\n 991 | \\tVREvent_MessageOverlayCloseRequested\\t= 1651,\\r\\n 992 | \\r\\n 993 | \\tVREvent_Input_HapticVibration\\t\\t\\t= 1700, // data is hapticVibration\\r\\n 994 | \\tVREvent_Input_BindingLoadFailed\\t\\t\\t= 1701, // data is inputBinding\\r\\n 995 | \\tVREvent_Input_BindingLoadSuccessful\\t\\t= 1702, // data is inputBinding\\r\\n 996 | \\tVREvent_Input_ActionManifestReloaded\\t= 1703, // no data\\r\\n 997 | \\tVREvent_Input_ActionManifestLoadFailed\\t= 1704, // data is actionManifest\\r\\n 998 | \\tVREvent_Input_ProgressUpdate\\t\\t\\t= 1705, // data is progressUpdate\\r\\n 999 | \\tVREvent_Input_TrackerActivated\\t\\t\\t= 1706,\\r\\n1000 | \\tVREvent_Input_BindingsUpdated\\t\\t\\t= 1707,\\r\\n1001 | \\tVREvent_Input_BindingSubscriptionChanged = 1708,\\r\\n1002 | \\r\\n1003 | \\tVREvent_SpatialAnchors_PoseUpdated\\t\\t= 1800,        // data is spatialAnchor. broadcast\\r\\n1004 | \\tVREvent_SpatialAnchors_DescriptorUpdated = 1801,       // data is spatialAnchor. broadcast\\r\\n1005 | \\tVREvent_SpatialAnchors_RequestPoseUpdate = 1802,       // data is spatialAnchor. sent to specific driver\\r\\n1006 | \\tVREvent_SpatialAnchors_RequestDescriptorUpdate = 1803, // data is spatialAnchor. sent to specific driver\\r\\n1007 | \\r\\n1008 | \\tVREvent_SystemReport_Started\\t\\t\\t= 1900, // user or system initiated generation of a system report. broadcast\\r\\n1009 | \\r\\n1010 | \\tVREvent_Monitor_ShowHeadsetView\\t\\t\\t= 2000, // data is process\\r\\n1011 | \\tVREvent_Monitor_HideHeadsetView\\t\\t\\t= 2001, // data is process\\r\\n1012 | \\r\\n1013 | \\tVREvent_Audio_SetSpeakersVolume\\t\\t\\t= 2100,\\r\\n1014 | \\tVREvent_Audio_SetSpeakersMute\\t\\t\\t= 2101,\\r\\n1015 | \\tVREvent_Audio_SetMicrophoneVolume\\t\\t= 2102,\\r\\n1016 | \\tVREvent_Audio_SetMicrophoneMute\\t\\t\\t= 2103,\\r\\n1017 | \\r\\n1018 | \\t// Vendors are free to expose private events in this reserved region\\r\\n1019 | \\tVREvent_VendorSpecific_Reserved_Start\\t= 10000,\\r\\n1020 | \\tVREvent_VendorSpecific_Reserved_End\\t\\t= 19999,\\r\\n1021 | };\\r\\n1022 | \\r\\n1023 | \\r\\n1024 | /** Level of Hmd activity */\\r\\n1025 | // UserInteraction_Timeout means the device is in the process of timing out.\\r\\n1026 | // InUse = ( k_EDeviceActivityLevel_UserInteraction || k_EDeviceActivityLevel_UserInteraction_Timeout )\\r\\n1027 | // VREvent_TrackedDeviceUserInteractionStarted fires when the devices transitions from Standby -> UserInteraction or Idle -> UserInteraction.\\r\\n1028 | // VREvent_TrackedDeviceUserInteractionEnded fires when the devices transitions from UserInteraction_Timeout -> Idle\\r\\n1029 | enum EDeviceActivityLevel\\r\\n1030 | {\\r\\n1031 | \\tk_EDeviceActivityLevel_Unknown = -1,\\r\\n1032 | \\tk_EDeviceActivityLevel_Idle = 0,\\t\\t\\t\\t\\t\\t// No activity for the last 10 seconds\\r\\n1033 | \\tk_EDeviceActivityLevel_UserInteraction = 1,\\t\\t\\t\\t// Activity (movement or prox sensor) is happening now\\r\\n1034 | \\tk_EDeviceActivityLevel_UserInteraction_Timeout = 2,\\t\\t// No activity for the last 0.5 seconds\\r\\n1035 | \\tk_EDeviceActivityLevel_Standby = 3,\\t\\t\\t\\t\\t\\t// Idle for at least 5 seconds (configurable in Settings -> Power Management)\\r\\n1036 | \\tk_EDeviceActivityLevel_Idle_Timeout = 4,\\r\\n1037 | };\\r\\n1038 | \\r\\n1039 | \\r\\n1040 | /** VR controller button and axis IDs */\\r\\n1041 | enum EVRButtonId\\r\\n1042 | {\\r\\n1043 | \\tk_EButton_System\\t\\t\\t= 0,\\r\\n1044 | \\tk_EButton_ApplicationMenu\\t= 1,\\r\\n1045 | \\tk_EButton_Grip\\t\\t\\t\\t= 2,\\r\\n1046 | \\tk_EButton_DPad_Left\\t\\t\\t= 3,\\r\\n1047 | \\tk_EButton_DPad_Up\\t\\t\\t= 4,\\r\\n1048 | \\tk_EButton_DPad_Right\\t\\t= 5,\\r\\n1049 | \\tk_EButton_DPad_Down\\t\\t\\t= 6,\\r\\n1050 | \\tk_EButton_A\\t\\t\\t\\t\\t= 7,\\r\\n1051 | \\r\\n1052 | \\tk_EButton_ProximitySensor   = 31,\\r\\n1053 | \\r\\n1054 | \\tk_EButton_Axis0\\t\\t\\t\\t= 32,\\r\\n1055 | \\tk_EButton_Axis1\\t\\t\\t\\t= 33,\\r\\n1056 | \\tk_EButton_Axis2\\t\\t\\t\\t= 34,\\r\\n1057 | \\tk_EButton_Axis3\\t\\t\\t\\t= 35,\\r\\n1058 | \\tk_EButton_Axis4\\t\\t\\t\\t= 36,\\r\\n1059 | \\r\\n1060 | \\t// aliases for well known controllers\\r\\n1061 | \\tk_EButton_SteamVR_Touchpad\\t= k_EButton_Axis0,\\r\\n1062 | \\tk_EButton_SteamVR_Trigger\\t= k_EButton_Axis1,\\r\\n1063 | \\r\\n1064 | \\tk_EButton_Dashboard_Back\\t= k_EButton_Grip,\\r\\n1065 | \\r\\n1066 | \\tk_EButton_IndexController_A\\t\\t= k_EButton_Grip,\\r\\n1067 | \\tk_EButton_IndexController_B\\t\\t= k_EButton_ApplicationMenu,\\r\\n1068 | \\tk_EButton_IndexController_JoyStick\\t= k_EButton_Axis3,\\r\\n1069 | \\r\\n1070 | \\tk_EButton_Reserved0\\t\\t\\t= 50,\\r\\n1071 | \\tk_EButton_Reserved1\\t\\t\\t= 51,\\r\\n1072 | \\r\\n1073 | \\tk_EButton_Max\\t\\t\\t\\t= 64\\r\\n1074 | };\\r\\n1075 | \\r\\n1076 | inline uint64_t ButtonMaskFromId( EVRButtonId id ) { return 1ull << id; }\\r\\n1077 | \\r\\n1078 | /** used for controller button events */\\r\\n1079 | struct VREvent_Controller_t\\r\\n1080 | {\\r\\n1081 | \\tuint32_t button; // EVRButtonId enum\\r\\n1082 | };\\r\\n1083 | \\r\\n1084 | \\r\\n1085 | /** used for simulated mouse events in overlay space */\\r\\n1086 | enum EVRMouseButton\\r\\n1087 | {\\r\\n1088 | \\tVRMouseButton_Left\\t\\t\\t\\t\\t= 0x0001,\\r\\n1089 | \\tVRMouseButton_Right\\t\\t\\t\\t\\t= 0x0002,\\r\\n1090 | \\tVRMouseButton_Middle\\t\\t\\t\\t= 0x0004,\\r\\n1091 | };\\r\\n1092 | \\r\\n1093 | \\r\\n1094 | /** used for simulated mouse events in overlay space */\\r\\n1095 | struct VREvent_Mouse_t\\r\\n1096 | {\\r\\n1097 | \\tfloat x, y; // co-ords are in GL space, bottom left of the texture is 0,0\\r\\n1098 | \\tuint32_t button; // EVRMouseButton enum\\r\\n1099 | \\r\\n1100 | \\t// if from an event triggered by cursor input on an overlay that supports multiple cursors, this is the index of\\r\\n1101 | \\t// which tracked cursor the event is for\\r\\n1102 | \\tuint32_t cursorIndex;\\r\\n1103 | };\\r\\n1104 | \\r\\n1105 | /** used for simulated mouse wheel scroll */\\r\\n1106 | struct VREvent_Scroll_t\\r\\n1107 | {\\r\\n1108 | \\tfloat xdelta, ydelta;\\r\\n1109 | \\tuint32_t unused;\\r\\n1110 | \\tfloat viewportscale; // For scrolling on an overlay with laser mouse, this is the overlay's vertical size relative to the overlay height. Range: [0,1]\\r\\n1111 | \\r\\n1112 | \\t// if from an event triggered by cursor input on an overlay that supports multiple cursors, this is the index of\\r\\n1113 | \\t// which tracked cursor the event is for\\r\\n1114 | \\tuint32_t cursorIndex;\\r\\n1115 | };\\r\\n1116 | \\r\\n1117 | /** when in mouse input mode you can receive data from the touchpad, these events are only sent if the users finger\\r\\n1118 |    is on the touchpad (or just released from it). These events are sent to overlays with the VROverlayFlags_SendVRTouchpadEvents\\r\\n1119 |    flag set.\\r\\n1120 | **/\\r\\n1121 | struct VREvent_TouchPadMove_t\\r\\n1122 | {\\r\\n1123 | \\t// true if the users finger is detected on the touch pad\\r\\n1124 | \\tbool bFingerDown;\\r\\n1125 | \\r\\n1126 | \\t// How long the finger has been down in seconds\\r\\n1127 | \\tfloat flSecondsFingerDown;\\r\\n1128 | \\r\\n1129 | \\t// These values indicate the starting finger position (so you can do some basic swipe stuff)\\r\\n1130 | \\tfloat fValueXFirst;\\r\\n1131 | \\tfloat fValueYFirst;\\r\\n1132 | \\r\\n1133 | \\t// This is the raw sampled coordinate without deadzoning\\r\\n1134 | \\tfloat fValueXRaw;\\r\\n1135 | \\tfloat fValueYRaw;\\r\\n1136 | };\\r\\n1137 | \\r\\n1138 | /** notification related events. Details will still change at this point */\\r\\n1139 | struct VREvent_Notification_t\\r\\n1140 | {\\r\\n1141 | \\tuint64_t ulUserValue;\\r\\n1142 | \\tuint32_t notificationId;\\r\\n1143 | };\\r\\n1144 | \\r\\n1145 | /** Used for events about processes */\\r\\n1146 | struct VREvent_Process_t\\r\\n1147 | {\\r\\n1148 | \\tuint32_t pid;\\r\\n1149 | \\tuint32_t oldPid;\\r\\n1150 | \\tbool bForced;\\r\\n1151 | \\t// If the associated event was triggered by a connection loss\\r\\n1152 | \\tbool bConnectionLost;\\r\\n1153 | };\\r\\n1154 | \\r\\n1155 | \\r\\n1156 | /** Used for a few events about overlays */\\r\\n1157 | struct VREvent_Overlay_t\\r\\n1158 | {\\r\\n1159 | \\tuint64_t overlayHandle; // VROverlayHandle_t\\r\\n1160 | \\tuint64_t devicePath;\\r\\n1161 | \\tuint64_t memoryBlockId;\\r\\n1162 | \\r\\n1163 | \\t// if from an event triggered by cursor input on an overlay that supports multiple cursors, this is the index of\\r\\n1164 | \\t// which tracked cursor the event is for\\r\\n1165 | \\tuint32_t cursorIndex;\\r\\n1166 | };\\r\\n1167 | \\r\\n1168 | \\r\\n1169 | /** Used for a few events about overlays */\\r\\n1170 | struct VREvent_Status_t\\r\\n1171 | {\\r\\n1172 | \\tuint32_t statusState; // EVRState enum\\r\\n1173 | };\\r\\n1174 | \\r\\n1175 | /** Used for keyboard events */\\r\\n1176 | struct VREvent_Keyboard_t\\r\\n1177 | {\\r\\n1178 | \\tchar cNewInput[8]; // 7 bytes of utf8 + null\\r\\n1179 | \\tuint64_t uUserValue; // caller specified opaque token\\r\\n1180 | \\tuint64_t overlayHandle; // VROverlayHandle_t\\r\\n1181 | };\\r\\n1182 | \\r\\n1183 | struct VREvent_Ipd_t\\r\\n1184 | {\\r\\n1185 | \\tfloat ipdMeters;\\r\\n1186 | };\\r\\n1187 | \\r\\n1188 | struct VREvent_Chaperone_t\\r\\n1189 | {\\r\\n1190 | \\tuint64_t m_nPreviousUniverse;\\r\\n1191 | \\tuint64_t m_nCurrentUniverse;\\r\\n1192 | };\\r\\n1193 | \\r\\n1194 | /** Not actually used for any events */\\r\\n1195 | struct VREvent_Reserved_t\\r\\n1196 | {\\r\\n1197 | \\tuint64_t reserved0;\\r\\n1198 | \\tuint64_t reserved1;\\r\\n1199 | \\tuint64_t reserved2;\\r\\n1200 | \\tuint64_t reserved3;\\r\\n1201 | \\tuint64_t reserved4;\\r\\n1202 | \\tuint64_t reserved5;\\r\\n1203 | };\\r\\n1204 | \\r\\n1205 | struct VREvent_PerformanceTest_t\\r\\n1206 | {\\r\\n1207 | \\tuint32_t m_nFidelityLevel;\\r\\n1208 | };\\r\\n1209 | \\r\\n1210 | struct VREvent_SeatedZeroPoseReset_t\\r\\n1211 | {\\r\\n1212 | \\tbool bResetBySystemMenu;\\r\\n1213 | };\\r\\n1214 | \\r\\n1215 | struct VREvent_Screenshot_t\\r\\n1216 | {\\r\\n1217 | \\tuint32_t handle;\\r\\n1218 | \\tuint32_t type;\\r\\n1219 | };\\r\\n1220 | \\r\\n1221 | struct VREvent_ScreenshotProgress_t\\r\\n1222 | {\\r\\n1223 | \\tfloat progress;\\r\\n1224 | };\\r\\n1225 | \\r\\n1226 | struct VREvent_ApplicationLaunch_t\\r\\n1227 | {\\r\\n1228 | \\tuint32_t pid;\\r\\n1229 | \\tuint32_t unArgsHandle;\\r\\n1230 | };\\r\\n1231 | \\r\\n1232 | struct VREvent_EditingCameraSurface_t\\r\\n1233 | {\\r\\n1234 | \\tuint64_t overlayHandle;\\r\\n1235 | \\tuint32_t nVisualMode;\\r\\n1236 | };\\r\\n1237 | \\r\\n1238 | struct VREvent_MessageOverlay_t\\r\\n1239 | {\\r\\n1240 | \\tuint32_t unVRMessageOverlayResponse; // vr::VRMessageOverlayResponse enum\\r\\n1241 | };\\r\\n1242 | \\r\\n1243 | struct VREvent_Property_t\\r\\n1244 | {\\r\\n1245 | \\tPropertyContainerHandle_t container;\\r\\n1246 | \\tETrackedDeviceProperty prop;\\r\\n1247 | };\\r\\n1248 | \\r\\n1249 | struct VREvent_HapticVibration_t\\r\\n1250 | {\\r\\n1251 | \\tuint64_t containerHandle; // property container handle of the device with the haptic component\\r\\n1252 | \\tuint64_t componentHandle; // Which haptic component needs to vibrate\\r\\n1253 | \\tfloat fDurationSeconds;\\r\\n1254 | \\tfloat fFrequency;\\r\\n1255 | \\tfloat fAmplitude;\\r\\n1256 | };\\r\\n1257 | \\r\\n1258 | struct VREvent_WebConsole_t\\r\\n1259 | {\\r\\n1260 | \\tWebConsoleHandle_t webConsoleHandle;\\r\\n1261 | };\\r\\n1262 | \\r\\n1263 | struct VREvent_InputBindingLoad_t\\r\\n1264 | {\\r\\n1265 | \\tvr::PropertyContainerHandle_t ulAppContainer;\\r\\n1266 | \\tuint64_t pathMessage;\\r\\n1267 | \\tuint64_t pathUrl;\\r\\n1268 | \\tuint64_t pathControllerType;\\r\\n1269 | };\\r\\n1270 | \\r\\n1271 | struct VREvent_InputActionManifestLoad_t\\r\\n1272 | {\\r\\n1273 | \\tuint64_t pathAppKey;\\r\\n1274 | \\tuint64_t pathMessage;\\r\\n1275 | \\tuint64_t pathMessageParam;\\r\\n1276 | \\tuint64_t pathManifestPath;\\r\\n1277 | };\\r\\n1278 | \\r\\n1279 | struct VREvent_SpatialAnchor_t\\r\\n1280 | {\\r\\n1281 | \\tSpatialAnchorHandle_t unHandle;\\r\\n1282 | };\\r\\n1283 | \\r\\n1284 | struct VREvent_ProgressUpdate_t\\r\\n1285 | {\\r\\n1286 | \\tuint64_t ulApplicationPropertyContainer;\\r\\n1287 | \\tuint64_t pathDevice;\\r\\n1288 | \\tuint64_t pathInputSource;\\r\\n1289 | \\tuint64_t pathProgressAction;\\r\\n1290 | \\tuint64_t pathIcon;\\r\\n1291 | \\tfloat fProgress;\\r\\n1292 | };\\r\\n1293 | \\r\\n1294 | enum EShowUIType\\r\\n1295 | {\\r\\n1296 | \\tShowUI_ControllerBinding = 0,\\r\\n1297 | \\tShowUI_ManageTrackers = 1,\\r\\n1298 | \\t// ShowUI_QuickStart = 2, // Deprecated\\r\\n1299 | \\tShowUI_Pairing = 3,\\r\\n1300 | \\tShowUI_Settings = 4,\\r\\n1301 | \\tShowUI_DebugCommands = 5,\\r\\n1302 | \\tShowUI_FullControllerBinding = 6,\\r\\n1303 | \\tShowUI_ManageDrivers = 7,\\r\\n1304 | };\\r\\n1305 | \\r\\n1306 | struct VREvent_ShowUI_t\\r\\n1307 | {\\r\\n1308 | \\tEShowUIType eType;\\r\\n1309 | };\\r\\n1310 | \\r\\n1311 | struct VREvent_ShowDevTools_t\\r\\n1312 | {\\r\\n1313 | \\tint32_t nBrowserIdentifier;\\r\\n1314 | };\\r\\n1315 | \\r\\n1316 | enum EHDCPError\\r\\n1317 | {\\r\\n1318 | \\tHDCPError_None = 0,\\r\\n1319 | \\tHDCPError_LinkLost = 1,\\r\\n1320 | \\tHDCPError_Tampered = 2,\\r\\n1321 | \\tHDCPError_DeviceRevoked = 3,\\r\\n1322 | \\tHDCPError_Unknown = 4\\r\\n1323 | };\\r\\n1324 | \\r\\n1325 | struct VREvent_HDCPError_t\\r\\n1326 | {\\r\\n1327 | \\tEHDCPError eCode;\\r\\n1328 | };\\r\\n1329 | \\r\\n1330 | struct VREvent_AudioVolumeControl_t\\r\\n1331 | {\\r\\n1332 | \\tfloat fVolumeLevel;\\r\\n1333 | };\\r\\n1334 | \\r\\n1335 | struct VREvent_AudioMuteControl_t\\r\\n1336 | {\\r\\n1337 | \\tbool bMute;\\r\\n1338 | };\\r\\n1339 | \\r\\n1340 | typedef union\\r\\n1341 | {\\r\\n1342 | \\tVREvent_Reserved_t reserved;\\r\\n1343 | \\tVREvent_Controller_t controller;\\r\\n1344 | \\tVREvent_Mouse_t mouse;\\r\\n1345 | \\tVREvent_Scroll_t scroll;\\r\\n1346 | \\tVREvent_Process_t process;\\r\\n1347 | \\tVREvent_Notification_t notification;\\r\\n1348 | \\tVREvent_Overlay_t overlay;\\r\\n1349 | \\tVREvent_Status_t status;\\r\\n1350 | \\tVREvent_Keyboard_t keyboard;\\r\\n1351 | \\tVREvent_Ipd_t ipd;\\r\\n1352 | \\tVREvent_Chaperone_t chaperone;\\r\\n1353 | \\tVREvent_PerformanceTest_t performanceTest;\\r\\n1354 | \\tVREvent_TouchPadMove_t touchPadMove;\\r\\n1355 | \\tVREvent_SeatedZeroPoseReset_t seatedZeroPoseReset;\\r\\n1356 | \\tVREvent_Screenshot_t screenshot;\\r\\n1357 | \\tVREvent_ScreenshotProgress_t screenshotProgress;\\r\\n1358 | \\tVREvent_ApplicationLaunch_t applicationLaunch;\\r\\n1359 | \\tVREvent_EditingCameraSurface_t cameraSurface;\\r\\n1360 | \\tVREvent_MessageOverlay_t messageOverlay;\\r\\n1361 | \\tVREvent_Property_t property;\\r\\n1362 | \\tVREvent_HapticVibration_t hapticVibration;\\r\\n1363 | \\tVREvent_WebConsole_t webConsole;\\r\\n1364 | \\tVREvent_InputBindingLoad_t inputBinding;\\r\\n1365 | \\tVREvent_InputActionManifestLoad_t actionManifest;\\r\\n1366 | \\tVREvent_SpatialAnchor_t spatialAnchor;\\r\\n1367 | \\tVREvent_ProgressUpdate_t progressUpdate;\\r\\n1368 | \\tVREvent_ShowUI_t showUi;\\r\\n1369 | \\tVREvent_ShowDevTools_t showDevTools;\\r\\n1370 | \\tVREvent_HDCPError_t hdcpError;\\r\\n1371 | \\tVREvent_AudioVolumeControl_t audioVolumeControl;\\r\\n1372 | \\tVREvent_AudioMuteControl_t audioMuteControl;\\r\\n1373 | \\t/** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py and openvr_api_flat.h.py */\\r\\n1374 | } VREvent_Data_t;\\r\\n1375 | \\r\\n1376 | \\r\\n1377 | #if defined(__linux__) || defined(__APPLE__)\\r\\n1378 | // This structure was originally defined mis-packed on Linux, preserved for\\r\\n1379 | // compatibility.\\r\\n1380 | #pragma pack( push, 4 )\\r\\n1381 | #endif\\r\\n1382 | \\r\\n1383 | /** An event posted by the server to all running applications */\\r\\n1384 | struct VREvent_t\\r\\n1385 | {\\r\\n1386 | \\tuint32_t eventType; // EVREventType enum\\r\\n1387 | \\tTrackedDeviceIndex_t trackedDeviceIndex;\\r\\n1388 | \\tfloat eventAgeSeconds;\\r\\n1389 | \\t// event data must be the end of the struct as its size is variable\\r\\n1390 | \\tVREvent_Data_t data;\\r\\n1391 | };\\r\\n1392 | \\r\\n1393 | #if defined(__linux__) || defined(__APPLE__)\\r\\n1394 | #pragma pack( pop )\\r\\n1395 | #endif\\r\\n1396 | \\r\\n1397 | typedef uint32_t VRComponentProperties;\\r\\n1398 | \\r\\n1399 | enum EVRComponentProperty\\r\\n1400 | {\\r\\n1401 | \\tVRComponentProperty_IsStatic = (1 << 0),\\r\\n1402 | \\tVRComponentProperty_IsVisible = (1 << 1),\\r\\n1403 | \\tVRComponentProperty_IsTouched = (1 << 2),\\r\\n1404 | \\tVRComponentProperty_IsPressed = (1 << 3),\\r\\n1405 | \\tVRComponentProperty_IsScrolled = (1 << 4),\\r\\n1406 | \\tVRComponentProperty_IsHighlighted = (1 << 5),\\r\\n1407 | };\\r\\n1408 | \\r\\n1409 | \\r\\n1410 | /** Describes state information about a render-model component, including transforms and other dynamic properties */\\r\\n1411 | struct RenderModel_ComponentState_t\\r\\n1412 | {\\r\\n1413 | \\tHmdMatrix34_t mTrackingToComponentRenderModel;  // Transform required when drawing the component render model\\r\\n1414 | \\tHmdMatrix34_t mTrackingToComponentLocal;        // Transform available for attaching to a local component coordinate system (-Z out from surface )\\r\\n1415 | \\tVRComponentProperties uProperties;\\r\\n1416 | };\\r\\n1417 | \\r\\n1418 | \\r\\n1419 | enum EVRInputError\\r\\n1420 | {\\r\\n1421 | \\tVRInputError_None = 0,\\r\\n1422 | \\tVRInputError_NameNotFound = 1,\\r\\n1423 | \\tVRInputError_WrongType = 2,\\r\\n1424 | \\tVRInputError_InvalidHandle = 3,\\r\\n1425 | \\tVRInputError_InvalidParam = 4,\\r\\n1426 | \\tVRInputError_NoSteam = 5,\\r\\n1427 | \\tVRInputError_MaxCapacityReached = 6,\\r\\n1428 | \\tVRInputError_IPCError = 7,\\r\\n1429 | \\tVRInputError_NoActiveActionSet = 8,\\r\\n1430 | \\tVRInputError_InvalidDevice = 9,\\r\\n1431 | \\tVRInputError_InvalidSkeleton = 10,\\r\\n1432 | \\tVRInputError_InvalidBoneCount = 11,\\r\\n1433 | \\tVRInputError_InvalidCompressedData = 12,\\r\\n1434 | \\tVRInputError_NoData = 13,\\r\\n1435 | \\tVRInputError_BufferTooSmall = 14,\\r\\n1436 | \\tVRInputError_MismatchedActionManifest = 15,\\r\\n1437 | \\tVRInputError_MissingSkeletonData = 16,\\r\\n1438 | \\tVRInputError_InvalidBoneIndex = 17,\\r\\n1439 | \\tVRInputError_InvalidPriority = 18,\\r\\n1440 | \\tVRInputError_PermissionDenied = 19,\\r\\n1441 | \\tVRInputError_InvalidRenderModel = 20,\\r\\n1442 | };\\r\\n1443 | \\r\\n1444 | enum EVRSpatialAnchorError\\r\\n1445 | {\\r\\n1446 | \\tVRSpatialAnchorError_Success = 0,\\r\\n1447 | \\tVRSpatialAnchorError_Internal = 1,\\r\\n1448 | \\tVRSpatialAnchorError_UnknownHandle = 2,\\r\\n1449 | \\tVRSpatialAnchorError_ArrayTooSmall = 3,\\r\\n1450 | \\tVRSpatialAnchorError_InvalidDescriptorChar = 4,\\r\\n1451 | \\tVRSpatialAnchorError_NotYetAvailable = 5,\\r\\n1452 | \\tVRSpatialAnchorError_NotAvailableInThisUniverse = 6,\\r\\n1453 | \\tVRSpatialAnchorError_PermanentlyUnavailable = 7,\\r\\n1454 | \\tVRSpatialAnchorError_WrongDriver = 8,\\r\\n1455 | \\tVRSpatialAnchorError_DescriptorTooLong = 9,\\r\\n1456 | \\tVRSpatialAnchorError_Unknown = 10,\\r\\n1457 | \\tVRSpatialAnchorError_NoRoomCalibration = 11,\\r\\n1458 | \\tVRSpatialAnchorError_InvalidArgument = 12,\\r\\n1459 | \\tVRSpatialAnchorError_UnknownDriver = 13,\\r\\n1460 | };\\r\\n1461 | \\r\\n1462 | /** The mesh to draw into the stencil (or depth) buffer to perform\\r\\n1463 | * early stencil (or depth) kills of pixels that will never appear on the HMD.\\r\\n1464 | * This mesh draws on all the pixels that will be hidden after distortion.\\r\\n1465 | *\\r\\n1466 | * If the HMD does not provide a visible area mesh pVertexData will be\\r\\n1467 | * NULL and unTriangleCount will be 0. */\\r\\n1468 | struct HiddenAreaMesh_t\\r\\n1469 | {\\r\\n1470 | \\tconst HmdVector2_t *pVertexData;\\r\\n1471 | \\tuint32_t unTriangleCount;\\r\\n1472 | };\\r\\n1473 | \\r\\n1474 | \\r\\n1475 | enum EHiddenAreaMeshType\\r\\n1476 | {\\r\\n1477 | \\tk_eHiddenAreaMesh_Standard = 0,\\r\\n1478 | \\tk_eHiddenAreaMesh_Inverse = 1,\\r\\n1479 | \\tk_eHiddenAreaMesh_LineLoop = 2,\\r\\n1480 | \\r\\n1481 | \\tk_eHiddenAreaMesh_Max = 3,\\r\\n1482 | };\\r\\n1483 | \\r\\n1484 | \\r\\n1485 | /** Identifies what kind of axis is on the controller at index n. Read this type\\r\\n1486 | * with pVRSystem->Get( nControllerDeviceIndex, Prop_Axis0Type_Int32 + n );\\r\\n1487 | */\\r\\n1488 | enum EVRControllerAxisType\\r\\n1489 | {\\r\\n1490 | \\tk_eControllerAxis_None = 0,\\r\\n1491 | \\tk_eControllerAxis_TrackPad = 1,\\r\\n1492 | \\tk_eControllerAxis_Joystick = 2,\\r\\n1493 | \\tk_eControllerAxis_Trigger = 3, // Analog trigger data is in the X axis\\r\\n1494 | };\\r\\n1495 | \\r\\n1496 | \\r\\n1497 | /** contains information about one axis on the controller */\\r\\n1498 | struct VRControllerAxis_t\\r\\n1499 | {\\r\\n1500 | \\tfloat x; // Ranges from -1.0 to 1.0 for joysticks and track pads. Ranges from 0.0 to 1.0 for triggers were 0 is fully released.\\r\\n1501 | \\tfloat y; // Ranges from -1.0 to 1.0 for joysticks and track pads. Is always 0.0 for triggers.\\r\\n1502 | };\\r\\n1503 | \\r\\n1504 | \\r\\n1505 | /** the number of axes in the controller state */\\r\\n1506 | static const uint32_t k_unControllerStateAxisCount = 5;\\r\\n1507 | \\r\\n1508 | \\r\\n1509 | #if defined(__linux__) || defined(__APPLE__)\\r\\n1510 | // This structure was originally defined mis-packed on Linux, preserved for\\r\\n1511 | // compatibility.\\r\\n1512 | #pragma pack( push, 4 )\\r\\n1513 | #endif\\r\\n1514 | \\r\\n1515 | /** Holds all the state of a controller at one moment in time. */\\r\\n1516 | struct VRControllerState001_t\\r\\n1517 | {\\r\\n1518 | \\t// If packet num matches that on your prior call, then the controller state hasn't been changed since\\r\\n1519 | \\t// your last call and there is no need to process it\\r\\n1520 | \\tuint32_t unPacketNum;\\r\\n1521 | \\r\\n1522 | \\t// bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask\\r\\n1523 | \\tuint64_t ulButtonPressed;\\r\\n1524 | \\tuint64_t ulButtonTouched;\\r\\n1525 | \\r\\n1526 | \\t// Axis data for the controller's analog inputs\\r\\n1527 | \\tVRControllerAxis_t rAxis[ k_unControllerStateAxisCount ];\\r\\n1528 | };\\r\\n1529 | #if defined(__linux__) || defined(__APPLE__)\\r\\n1530 | #pragma pack( pop )\\r\\n1531 | #endif\\r\\n1532 | \\r\\n1533 | \\r\\n1534 | typedef VRControllerState001_t VRControllerState_t;\\r\\n1535 | \\r\\n1536 | \\r\\n1537 | /** determines how to provide output to the application of various event processing functions. */\\r\\n1538 | enum EVRControllerEventOutputType\\r\\n1539 | {\\r\\n1540 | \\tControllerEventOutput_OSEvents = 0,\\r\\n1541 | \\tControllerEventOutput_VREvents = 1,\\r\\n1542 | };\\r\\n1543 | \\r\\n1544 | \\r\\n1545 | \\r\\n1546 | /** Collision Bounds Style */\\r\\n1547 | enum ECollisionBoundsStyle\\r\\n1548 | {\\r\\n1549 | \\tCOLLISION_BOUNDS_STYLE_BEGINNER = 0,\\r\\n1550 | \\tCOLLISION_BOUNDS_STYLE_INTERMEDIATE,\\r\\n1551 | \\tCOLLISION_BOUNDS_STYLE_SQUARES,\\r\\n1552 | \\tCOLLISION_BOUNDS_STYLE_ADVANCED,\\r\\n1553 | \\tCOLLISION_BOUNDS_STYLE_NONE,\\r\\n1554 | \\r\\n1555 | \\tCOLLISION_BOUNDS_STYLE_COUNT\\r\\n1556 | };\\r\\n1557 | \\r\\n1558 | /** used to refer to a single VR overlay */\\r\\n1559 | typedef uint64_t VROverlayHandle_t;\\r\\n1560 | \\r\\n1561 | static const VROverlayHandle_t k_ulOverlayHandleInvalid = 0;\\r\\n1562 | \\r\\n1563 | /** Errors that can occur around VR overlays */\\r\\n1564 | enum EVROverlayError\\r\\n1565 | {\\r\\n1566 | \\tVROverlayError_None\\t\\t\\t\\t\\t\\t= 0,\\r\\n1567 | \\r\\n1568 | \\tVROverlayError_UnknownOverlay\\t\\t\\t= 10,\\r\\n1569 | \\tVROverlayError_InvalidHandle\\t\\t\\t= 11,\\r\\n1570 | \\tVROverlayError_PermissionDenied\\t\\t\\t= 12,\\r\\n1571 | \\tVROverlayError_OverlayLimitExceeded\\t\\t= 13, // No more overlays could be created because the maximum number already exist\\r\\n1572 | \\tVROverlayError_WrongVisibilityType\\t\\t= 14,\\r\\n1573 | \\tVROverlayError_KeyTooLong\\t\\t\\t\\t= 15,\\r\\n1574 | \\tVROverlayError_NameTooLong\\t\\t\\t\\t= 16,\\r\\n1575 | \\tVROverlayError_KeyInUse\\t\\t\\t\\t\\t= 17,\\r\\n1576 | \\tVROverlayError_WrongTransformType\\t\\t= 18,\\r\\n1577 | \\tVROverlayError_InvalidTrackedDevice\\t\\t= 19,\\r\\n1578 | \\tVROverlayError_InvalidParameter\\t\\t\\t= 20,\\r\\n1579 | \\tVROverlayError_ThumbnailCantBeDestroyed\\t= 21,\\r\\n1580 | \\tVROverlayError_ArrayTooSmall\\t\\t\\t= 22,\\r\\n1581 | \\tVROverlayError_RequestFailed\\t\\t\\t= 23,\\r\\n1582 | \\tVROverlayError_InvalidTexture\\t\\t\\t= 24,\\r\\n1583 | \\tVROverlayError_UnableToLoadFile\\t\\t\\t= 25,\\r\\n1584 | \\tVROverlayError_KeyboardAlreadyInUse\\t\\t= 26,\\r\\n1585 | \\tVROverlayError_NoNeighbor\\t\\t\\t\\t= 27,\\r\\n1586 | \\tVROverlayError_TooManyMaskPrimitives\\t= 29,\\r\\n1587 | \\tVROverlayError_BadMaskPrimitive\\t\\t\\t= 30,\\r\\n1588 | \\tVROverlayError_TextureAlreadyLocked\\t\\t= 31,\\r\\n1589 | \\tVROverlayError_TextureLockCapacityReached = 32,\\r\\n1590 | \\tVROverlayError_TextureNotLocked\\t\\t\\t= 33,\\r\\n1591 | \\tVROverlayError_TimedOut                 = 34,\\r\\n1592 | };\\r\\n1593 | \\r\\n1594 | /** enum values to pass in to VR_Init to identify whether the application will\\r\\n1595 | * draw a 3D scene. */\\r\\n1596 | enum EVRApplicationType\\r\\n1597 | {\\r\\n1598 | \\tVRApplication_Other = 0,\\t\\t// Some other kind of application that isn't covered by the other entries\\r\\n1599 | \\tVRApplication_Scene\\t= 1,\\t\\t// Application will submit 3D frames\\r\\n1600 | \\tVRApplication_Overlay = 2,\\t\\t// Application only interacts with overlays\\r\\n1601 | \\tVRApplication_Background = 3,\\t// Application should not start SteamVR if it's not already running, and should not\\r\\n1602 | \\t\\t\\t\\t\\t\\t\\t\\t\\t// keep it running if everything else quits.\\r\\n1603 | \\tVRApplication_Utility = 4,\\t\\t// Init should not try to load any drivers. The application needs access to utility\\r\\n1604 | \\t\\t\\t\\t\\t\\t\\t\\t\\t// interfaces (like IVRSettings and IVRApplications) but not hardware.\\r\\n1605 | \\tVRApplication_VRMonitor = 5,\\t// Reserved for vrmonitor\\r\\n1606 | \\tVRApplication_SteamWatchdog = 6,// Reserved for Steam\\r\\n1607 | \\tVRApplication_Bootstrapper = 7, // reserved for vrstartup\\r\\n1608 | \\tVRApplication_WebHelper = 8,\\t// reserved for vrwebhelper\\r\\n1609 | \\tVRApplication_OpenXRInstance = 9, // reserved for openxr (created instance, but not session yet)\\r\\n1610 | \\tVRApplication_OpenXRScene = 10,\\t  // reserved for openxr (started session)\\r\\n1611 | \\tVRApplication_OpenXROverlay = 11, // reserved for openxr (started overlay session)\\r\\n1612 | \\tVRApplication_Prism = 12,\\t\\t// reserved for the vrprismhost process\\r\\n1613 | \\tVRApplication_RoomView = 13,\\t// reserved for the RoomView process\\r\\n1614 | \\r\\n1615 | \\tVRApplication_Max\\r\\n1616 | };\\r\\n1617 | \\r\\n1618 | \\r\\n1619 | /** returns true if the specified application type is one of the\\r\\n1620 | * OpenXR types */\\r\\n1621 | inline bool IsOpenXRAppType( EVRApplicationType eType )\\r\\n1622 | {\\r\\n1623 | \\treturn eType == VRApplication_OpenXRInstance\\r\\n1624 | \\t\\t|| eType == VRApplication_OpenXRScene\\r\\n1625 | \\t\\t|| eType == VRApplication_OpenXROverlay;\\r\\n1626 | }\\r\\n1627 | \\r\\n1628 | \\r\\n1629 | /** returns true if the specified application type submits eye buffers */\\r\\n1630 | inline bool BAppTypeSubmitsEyeBuffers( EVRApplicationType eType )\\r\\n1631 | {\\r\\n1632 | \\treturn eType == VRApplication_Scene\\r\\n1633 | \\t\\t|| eType == VRApplication_OpenXRScene\\r\\n1634 | \\t\\t|| eType == VRApplication_RoomView;\\r\\n1635 | }\\r\\n1636 | \\r\\n1637 | \\r\\n1638 | /** error codes for firmware */\\r\\n1639 | enum EVRFirmwareError\\r\\n1640 | {\\r\\n1641 | \\tVRFirmwareError_None = 0,\\r\\n1642 | \\tVRFirmwareError_Success = 1,\\r\\n1643 | \\tVRFirmwareError_Fail = 2,\\r\\n1644 | };\\r\\n1645 | \\r\\n1646 | \\r\\n1647 | /** error codes for notifications */\\r\\n1648 | enum EVRNotificationError\\r\\n1649 | {\\r\\n1650 | \\tVRNotificationError_OK = 0,\\r\\n1651 | \\tVRNotificationError_InvalidNotificationId = 100,\\r\\n1652 | \\tVRNotificationError_NotificationQueueFull = 101,\\r\\n1653 | \\tVRNotificationError_InvalidOverlayHandle = 102,\\r\\n1654 | \\tVRNotificationError_SystemWithUserValueAlreadyExists = 103,\\r\\n1655 | \\tVRNotificationError_ServiceUnavailable = 104,\\r\\n1656 | };\\r\\n1657 | \\r\\n1658 | \\r\\n1659 | enum EVRSkeletalMotionRange\\r\\n1660 | {\\r\\n1661 | \\t// The range of motion of the skeleton takes into account any physical limits imposed by\\r\\n1662 | \\t// the controller itself.  This will tend to be the most accurate pose compared to the user's\\r\\n1663 | \\t// actual hand pose, but might not allow a closed fist for example\\r\\n1664 | \\tVRSkeletalMotionRange_WithController = 0,\\r\\n1665 | \\r\\n1666 | \\t// Retarget the range of motion provided by the input device to make the hand appear to move\\r\\n1667 | \\t// as if it was not holding a controller.  eg: map \\\"hand grasping controller\\\" to \\\"closed fist\\\"\\r\\n1668 | \\tVRSkeletalMotionRange_WithoutController = 1,\\r\\n1669 | };\\r\\n1670 | \\r\\n1671 | enum EVRSkeletalTrackingLevel\\r\\n1672 | {\\r\\n1673 | \\t// body part location can't be directly determined by the device. Any skeletal pose provided by\\r\\n1674 | \\t// the device is estimated by assuming the position required to active buttons, triggers, joysticks,\\r\\n1675 | \\t// or other input sensors.\\r\\n1676 | \\t// E.g. Vive Controller, Gamepad\\r\\n1677 | \\tVRSkeletalTracking_Estimated = 0,\\r\\n1678 | \\r\\n1679 | \\t// body part location can be measured directly but with fewer degrees of freedom than the actual body\\r\\n1680 | \\t// part. Certain body part positions may be unmeasured by the device and estimated from other input data.\\r\\n1681 | \\t// E.g. Index Controllers, gloves that only measure finger curl\\r\\n1682 | \\tVRSkeletalTracking_Partial = 1,\\r\\n1683 | \\r\\n1684 | \\t// Body part location can be measured directly throughout the entire range of motion of the body part.\\r\\n1685 | \\t// E.g. Mocap suit for the full body, gloves that measure rotation of each finger segment\\r\\n1686 | \\tVRSkeletalTracking_Full = 2,\\r\\n1687 | \\r\\n1688 | \\tVRSkeletalTrackingLevel_Count,\\r\\n1689 | \\tVRSkeletalTrackingLevel_Max = VRSkeletalTrackingLevel_Count - 1\\r\\n1690 | };\\r\\n1691 | \\r\\n1692 | \\r\\n1693 | /** Type used for referring to bones by their index */\\r\\n1694 | typedef int32_t BoneIndex_t;\\r\\n1695 | const BoneIndex_t k_unInvalidBoneIndex = -1;\\r\\n1696 | \\r\\n1697 | \\r\\n1698 | /** error codes returned by Vr_Init */\\r\\n1699 | \\r\\n1700 | // Please add adequate error description to https://developer.valvesoftware.com/w/index.php?title=Category:SteamVRHelp\\r\\n1701 | enum EVRInitError\\r\\n1702 | {\\r\\n1703 | \\tVRInitError_None\\t= 0,\\r\\n1704 | \\tVRInitError_Unknown = 1,\\r\\n1705 | \\r\\n1706 | \\tVRInitError_Init_InstallationNotFound\\t\\t\\t= 100,\\r\\n1707 | \\tVRInitError_Init_InstallationCorrupt\\t\\t\\t= 101,\\r\\n1708 | \\tVRInitError_Init_VRClientDLLNotFound\\t\\t\\t= 102,\\r\\n1709 | \\tVRInitError_Init_FileNotFound\\t\\t\\t\\t\\t= 103,\\r\\n1710 | \\tVRInitError_Init_FactoryNotFound\\t\\t\\t\\t= 104,\\r\\n1711 | \\tVRInitError_Init_InterfaceNotFound\\t\\t\\t\\t= 105,\\r\\n1712 | \\tVRInitError_Init_InvalidInterface\\t\\t\\t\\t= 106,\\r\\n1713 | \\tVRInitError_Init_UserConfigDirectoryInvalid\\t\\t= 107,\\r\\n1714 | \\tVRInitError_Init_HmdNotFound\\t\\t\\t\\t\\t= 108,\\r\\n1715 | \\tVRInitError_Init_NotInitialized\\t\\t\\t\\t\\t= 109,\\r\\n1716 | \\tVRInitError_Init_PathRegistryNotFound\\t\\t\\t= 110,\\r\\n1717 | \\tVRInitError_Init_NoConfigPath\\t\\t\\t\\t\\t= 111,\\r\\n1718 | \\tVRInitError_Init_NoLogPath\\t\\t\\t\\t\\t\\t= 112,\\r\\n1719 | \\tVRInitError_Init_PathRegistryNotWritable\\t\\t= 113,\\r\\n1720 | \\tVRInitError_Init_AppInfoInitFailed\\t\\t\\t\\t= 114,\\r\\n1721 | \\tVRInitError_Init_Retry\\t\\t\\t\\t\\t\\t\\t= 115, // Used internally to cause retries to vrserver\\r\\n1722 | \\tVRInitError_Init_InitCanceledByUser\\t\\t\\t\\t= 116, // The calling application should silently exit. The user canceled app startup\\r\\n1723 | \\tVRInitError_Init_AnotherAppLaunching\\t\\t\\t= 117,\\r\\n1724 | \\tVRInitError_Init_SettingsInitFailed\\t\\t\\t\\t= 118,\\r\\n1725 | \\tVRInitError_Init_ShuttingDown\\t\\t\\t\\t\\t= 119,\\r\\n1726 | \\tVRInitError_Init_TooManyObjects\\t\\t\\t\\t\\t= 120,\\r\\n1727 | \\tVRInitError_Init_NoServerForBackgroundApp\\t\\t= 121,\\r\\n1728 | \\tVRInitError_Init_NotSupportedWithCompositor\\t\\t= 122,\\r\\n1729 | \\tVRInitError_Init_NotAvailableToUtilityApps\\t\\t= 123,\\r\\n1730 | \\tVRInitError_Init_Internal\\t\\t\\t\\t \\t\\t= 124,\\r\\n1731 | \\tVRInitError_Init_HmdDriverIdIsNone\\t\\t \\t\\t= 125,\\r\\n1732 | \\tVRInitError_Init_HmdNotFoundPresenceFailed \\t\\t= 126,\\r\\n1733 | \\tVRInitError_Init_VRMonitorNotFound\\t\\t\\t\\t= 127,\\r\\n1734 | \\tVRInitError_Init_VRMonitorStartupFailed\\t\\t\\t= 128,\\r\\n1735 | \\tVRInitError_Init_LowPowerWatchdogNotSupported\\t= 129,\\r\\n1736 | \\tVRInitError_Init_InvalidApplicationType\\t\\t\\t= 130,\\r\\n1737 | \\tVRInitError_Init_NotAvailableToWatchdogApps\\t\\t= 131,\\r\\n1738 | \\tVRInitError_Init_WatchdogDisabledInSettings\\t\\t= 132,\\r\\n1739 | \\tVRInitError_Init_VRDashboardNotFound\\t\\t\\t= 133,\\r\\n1740 | \\tVRInitError_Init_VRDashboardStartupFailed\\t\\t= 134,\\r\\n1741 | \\tVRInitError_Init_VRHomeNotFound\\t\\t\\t\\t\\t= 135,\\r\\n1742 | \\tVRInitError_Init_VRHomeStartupFailed\\t\\t\\t= 136,\\r\\n1743 | \\tVRInitError_Init_RebootingBusy\\t\\t\\t\\t\\t= 137,\\r\\n1744 | \\tVRInitError_Init_FirmwareUpdateBusy\\t\\t\\t\\t= 138,\\r\\n1745 | \\tVRInitError_Init_FirmwareRecoveryBusy\\t\\t\\t= 139,\\r\\n1746 | \\tVRInitError_Init_USBServiceBusy\\t\\t\\t\\t\\t= 140,\\r\\n1747 | \\tVRInitError_Init_VRWebHelperStartupFailed\\t\\t= 141,\\r\\n1748 | \\tVRInitError_Init_TrackerManagerInitFailed\\t\\t= 142,\\r\\n1749 | \\tVRInitError_Init_AlreadyRunning\\t\\t\\t\\t\\t= 143,\\r\\n1750 | \\tVRInitError_Init_FailedForVrMonitor\\t\\t\\t\\t= 144,\\r\\n1751 | \\tVRInitError_Init_PropertyManagerInitFailed\\t\\t= 145,\\r\\n1752 | \\tVRInitError_Init_WebServerFailed\\t\\t\\t\\t= 146,\\r\\n1753 | \\tVRInitError_Init_IllegalTypeTransition\\t\\t\\t= 147,\\r\\n1754 | \\tVRInitError_Init_MismatchedRuntimes\\t\\t\\t\\t= 148,\\r\\n1755 | \\tVRInitError_Init_InvalidProcessId\\t\\t\\t\\t= 149,\\r\\n1756 | \\tVRInitError_Init_VRServiceStartupFailed\\t\\t\\t= 150,\\r\\n1757 | \\tVRInitError_Init_PrismNeedsNewDrivers\\t\\t\\t= 151,\\r\\n1758 | \\tVRInitError_Init_PrismStartupTimedOut\\t\\t\\t= 152,\\r\\n1759 | \\tVRInitError_Init_CouldNotStartPrism\\t\\t\\t\\t= 153,\\r\\n1760 | \\tVRInitError_Init_PrismClientInitFailed\\t\\t\\t= 154,\\r\\n1761 | \\tVRInitError_Init_PrismClientStartFailed\\t\\t\\t= 155,\\r\\n1762 | \\tVRInitError_Init_PrismExitedUnexpectedly\\t\\t= 156,\\r\\n1763 | \\tVRInitError_Init_BadLuid\\t\\t\\t\\t\\t\\t= 157,\\r\\n1764 | \\tVRInitError_Init_NoServerForAppContainer\\t\\t= 158,\\r\\n1765 | \\tVRInitError_Init_DuplicateBootstrapper\\t\\t\\t= 159,\\r\\n1766 | \\tVRInitError_Init_VRDashboardServicePending\\t\\t= 160,\\r\\n1767 | \\tVRInitError_Init_VRDashboardServiceTimeout\\t\\t= 161,\\r\\n1768 | \\tVRInitError_Init_VRDashboardServiceStopped\\t\\t= 162,\\r\\n1769 | \\tVRInitError_Init_VRDashboardAlreadyStarted\\t\\t= 163,\\r\\n1770 | \\tVRInitError_Init_VRDashboardCopyFailed\\t\\t\\t= 164,\\r\\n1771 | \\tVRInitError_Init_VRDashboardTokenFailure\\t\\t= 165,\\r\\n1772 | \\tVRInitError_Init_VRDashboardEnvironmentFailure\\t= 166,\\r\\n1773 | \\tVRInitError_Init_VRDashboardPathFailure\\t\\t\\t= 167,\\r\\n1774 | \\r\\n1775 | \\tVRInitError_Driver_Failed\\t\\t\\t\\t\\t\\t= 200,\\r\\n1776 | \\tVRInitError_Driver_Unknown\\t\\t\\t\\t\\t\\t= 201,\\r\\n1777 | \\tVRInitError_Driver_HmdUnknown\\t\\t\\t\\t\\t= 202,\\r\\n1778 | \\tVRInitError_Driver_NotLoaded\\t\\t\\t\\t\\t= 203,\\r\\n1779 | \\tVRInitError_Driver_RuntimeOutOfDate\\t\\t\\t\\t= 204,\\r\\n1780 | \\tVRInitError_Driver_HmdInUse\\t\\t\\t\\t\\t\\t= 205,\\r\\n1781 | \\tVRInitError_Driver_NotCalibrated\\t\\t\\t\\t= 206,\\r\\n1782 | \\tVRInitError_Driver_CalibrationInvalid\\t\\t\\t= 207,\\r\\n1783 | \\tVRInitError_Driver_HmdDisplayNotFound\\t\\t\\t= 208,\\r\\n1784 | \\tVRInitError_Driver_TrackedDeviceInterfaceUnknown = 209,\\r\\n1785 | \\t// VRInitError_Driver_HmdDisplayNotFoundAfterFix = 210, // not needed: here for historic reasons\\r\\n1786 | \\tVRInitError_Driver_HmdDriverIdOutOfBounds\\t\\t= 211,\\r\\n1787 | \\tVRInitError_Driver_HmdDisplayMirrored\\t\\t\\t= 212,\\r\\n1788 | \\tVRInitError_Driver_HmdDisplayNotFoundLaptop\\t\\t= 213,\\r\\n1789 | \\tVRInitError_Driver_PeerDriverNotInstalled\\t\\t= 214,\\r\\n1790 | \\tVRInitError_Driver_WirelessHmdNotConnected\\t\\t= 215,\\r\\n1791 | \\r\\n1792 | \\t// Never make error 259 because we return it from main and it would conflict with STILL_ACTIVE\\r\\n1793 | \\r\\n1794 | \\tVRInitError_IPC_ServerInitFailed\\t\\t\\t\\t= 300,\\r\\n1795 | \\tVRInitError_IPC_ConnectFailed\\t\\t\\t\\t\\t= 301,\\r\\n1796 | \\tVRInitError_IPC_SharedStateInitFailed\\t\\t\\t= 302,\\r\\n1797 | \\tVRInitError_IPC_CompositorInitFailed\\t\\t\\t= 303,\\r\\n1798 | \\tVRInitError_IPC_MutexInitFailed\\t\\t\\t\\t\\t= 304,\\r\\n1799 | \\tVRInitError_IPC_Failed\\t\\t\\t\\t\\t\\t\\t= 305,\\r\\n1800 | \\tVRInitError_IPC_CompositorConnectFailed\\t\\t\\t= 306,\\r\\n1801 | \\tVRInitError_IPC_CompositorInvalidConnectResponse = 307,\\r\\n1802 | \\tVRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308,\\r\\n1803 | \\tVRInitError_IPC_ConnectFailedAfterTargetExited = 309,\\r\\n1804 | \\tVRInitError_IPC_NamespaceUnavailable\\t\\t\\t = 310,\\r\\n1805 | \\r\\n1806 | \\tVRInitError_Compositor_Failed\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t= 400,\\r\\n1807 | \\tVRInitError_Compositor_D3D11HardwareRequired\\t\\t\\t\\t\\t\\t\\t\\t= 401,\\r\\n1808 | \\tVRInitError_Compositor_FirmwareRequiresUpdate\\t\\t\\t\\t\\t\\t\\t\\t= 402,\\r\\n1809 | \\tVRInitError_Compositor_OverlayInitFailed\\t\\t\\t\\t\\t\\t\\t\\t\\t= 403,\\r\\n1810 | \\tVRInitError_Compositor_ScreenshotsInitFailed\\t\\t\\t\\t\\t\\t\\t\\t= 404,\\r\\n1811 | \\tVRInitError_Compositor_UnableToCreateDevice\\t\\t\\t\\t\\t\\t\\t\\t\\t= 405,\\r\\n1812 | \\tVRInitError_Compositor_SharedStateIsNull\\t\\t\\t\\t\\t\\t\\t\\t\\t= 406,\\r\\n1813 | \\tVRInitError_Compositor_NotificationManagerIsNull\\t\\t\\t\\t\\t\\t\\t= 407,\\r\\n1814 | \\tVRInitError_Compositor_ResourceManagerClientIsNull\\t\\t\\t\\t\\t\\t\\t= 408,\\r\\n1815 | \\tVRInitError_Compositor_MessageOverlaySharedStateInitFailure\\t\\t\\t\\t\\t= 409,\\r\\n1816 | \\tVRInitError_Compositor_PropertiesInterfaceIsNull\\t\\t\\t\\t\\t\\t\\t= 410,\\r\\n1817 | \\tVRInitError_Compositor_CreateFullscreenWindowFailed\\t\\t\\t\\t\\t\\t\\t= 411,\\r\\n1818 | \\tVRInitError_Compositor_SettingsInterfaceIsNull\\t\\t\\t\\t\\t\\t\\t\\t= 412,\\r\\n1819 | \\tVRInitError_Compositor_FailedToShowWindow\\t\\t\\t\\t\\t\\t\\t\\t\\t= 413,\\r\\n1820 | \\tVRInitError_Compositor_DistortInterfaceIsNull\\t\\t\\t\\t\\t\\t\\t\\t= 414,\\r\\n1821 | \\tVRInitError_Compositor_DisplayFrequencyFailure\\t\\t\\t\\t\\t\\t\\t\\t= 415,\\r\\n1822 | \\tVRInitError_Compositor_RendererInitializationFailed\\t\\t\\t\\t\\t\\t\\t= 416,\\r\\n1823 | \\tVRInitError_Compositor_DXGIFactoryInterfaceIsNull\\t\\t\\t\\t\\t\\t\\t= 417,\\r\\n1824 | \\tVRInitError_Compositor_DXGIFactoryCreateFailed\\t\\t\\t\\t\\t\\t\\t\\t= 418,\\r\\n1825 | \\tVRInitError_Compositor_DXGIFactoryQueryFailed\\t\\t\\t\\t\\t\\t\\t\\t= 419,\\r\\n1826 | \\tVRInitError_Compositor_InvalidAdapterDesktop\\t\\t\\t\\t\\t\\t\\t\\t= 420,\\r\\n1827 | \\tVRInitError_Compositor_InvalidHmdAttachment\\t\\t\\t\\t\\t\\t\\t\\t\\t= 421,\\r\\n1828 | \\tVRInitError_Compositor_InvalidOutputDesktop\\t\\t\\t\\t\\t\\t\\t\\t\\t= 422,\\r\\n1829 | \\tVRInitError_Compositor_InvalidDeviceProvided\\t\\t\\t\\t\\t\\t\\t\\t= 423,\\r\\n1830 | \\tVRInitError_Compositor_D3D11RendererInitializationFailed\\t\\t\\t\\t\\t= 424,\\r\\n1831 | \\tVRInitError_Compositor_FailedToFindDisplayMode\\t\\t\\t\\t\\t\\t\\t\\t= 425,\\r\\n1832 | \\tVRInitError_Compositor_FailedToCreateSwapChain\\t\\t\\t\\t\\t\\t\\t\\t= 426,\\r\\n1833 | \\tVRInitError_Compositor_FailedToGetBackBuffer\\t\\t\\t\\t\\t\\t\\t\\t= 427,\\r\\n1834 | \\tVRInitError_Compositor_FailedToCreateRenderTarget\\t\\t\\t\\t\\t\\t\\t= 428,\\r\\n1835 | \\tVRInitError_Compositor_FailedToCreateDXGI2SwapChain\\t\\t\\t\\t\\t\\t\\t= 429,\\r\\n1836 | \\tVRInitError_Compositor_FailedtoGetDXGI2BackBuffer\\t\\t\\t\\t\\t\\t\\t= 430,\\r\\n1837 | \\tVRInitError_Compositor_FailedToCreateDXGI2RenderTarget\\t\\t\\t\\t\\t\\t= 431,\\r\\n1838 | \\tVRInitError_Compositor_FailedToGetDXGIDeviceInterface\\t\\t\\t\\t\\t\\t= 432,\\r\\n1839 | \\tVRInitError_Compositor_SelectDisplayMode\\t\\t\\t\\t\\t\\t\\t\\t\\t= 433,\\r\\n1840 | \\tVRInitError_Compositor_FailedToCreateNvAPIRenderTargets\\t\\t\\t\\t\\t\\t= 434,\\r\\n1841 | \\tVRInitError_Compositor_NvAPISetDisplayMode\\t\\t\\t\\t\\t\\t\\t\\t\\t= 435,\\r\\n1842 | \\tVRInitError_Compositor_FailedToCreateDirectModeDisplay\\t\\t\\t\\t\\t\\t= 436,\\r\\n1843 | \\tVRInitError_Compositor_InvalidHmdPropertyContainer\\t\\t\\t\\t\\t\\t\\t= 437,\\r\\n1844 | \\tVRInitError_Compositor_UpdateDisplayFrequency\\t\\t\\t\\t\\t\\t\\t\\t= 438,\\r\\n1845 | \\tVRInitError_Compositor_CreateRasterizerState\\t\\t\\t\\t\\t\\t\\t\\t= 439,\\r\\n1846 | \\tVRInitError_Compositor_CreateWireframeRasterizerState\\t\\t\\t\\t\\t\\t= 440,\\r\\n1847 | \\tVRInitError_Compositor_CreateSamplerState\\t\\t\\t\\t\\t\\t\\t\\t\\t= 441,\\r\\n1848 | \\tVRInitError_Compositor_CreateClampToBorderSamplerState\\t\\t\\t\\t\\t\\t= 442,\\r\\n1849 | \\tVRInitError_Compositor_CreateAnisoSamplerState\\t\\t\\t\\t\\t\\t\\t\\t= 443,\\r\\n1850 | \\tVRInitError_Compositor_CreateOverlaySamplerState\\t\\t\\t\\t\\t\\t\\t= 444,\\r\\n1851 | \\tVRInitError_Compositor_CreatePanoramaSamplerState\\t\\t\\t\\t\\t\\t\\t= 445,\\r\\n1852 | \\tVRInitError_Compositor_CreateFontSamplerState\\t\\t\\t\\t\\t\\t\\t\\t= 446,\\r\\n1853 | \\tVRInitError_Compositor_CreateNoBlendState\\t\\t\\t\\t\\t\\t\\t\\t\\t= 447,\\r\\n1854 | \\tVRInitError_Compositor_CreateBlendState\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t= 448,\\r\\n1855 | \\tVRInitError_Compositor_CreateAlphaBlendState\\t\\t\\t\\t\\t\\t\\t\\t= 449,\\r\\n1856 | \\tVRInitError_Compositor_CreateBlendStateMaskR\\t\\t\\t\\t\\t\\t\\t\\t= 450,\\r\\n1857 | \\tVRInitError_Compositor_CreateBlendStateMaskG\\t\\t\\t\\t\\t\\t\\t\\t= 451,\\r\\n1858 | \\tVRInitError_Compositor_CreateBlendStateMaskB\\t\\t\\t\\t\\t\\t\\t\\t= 452,\\r\\n1859 | \\tVRInitError_Compositor_CreateDepthStencilState\\t\\t\\t\\t\\t\\t\\t\\t= 453,\\r\\n1860 | \\tVRInitError_Compositor_CreateDepthStencilStateNoWrite\\t\\t\\t\\t\\t\\t= 454,\\r\\n1861 | \\tVRInitError_Compositor_CreateDepthStencilStateNoDepth\\t\\t\\t\\t\\t\\t= 455,\\r\\n1862 | \\tVRInitError_Compositor_CreateFlushTexture\\t\\t\\t\\t\\t\\t\\t\\t\\t= 456,\\r\\n1863 | \\tVRInitError_Compositor_CreateDistortionSurfaces\\t\\t\\t\\t\\t\\t\\t\\t= 457,\\r\\n1864 | \\tVRInitError_Compositor_CreateConstantBuffer\\t\\t\\t\\t\\t\\t\\t\\t\\t= 458,\\r\\n1865 | \\tVRInitError_Compositor_CreateHmdPoseConstantBuffer\\t\\t\\t\\t\\t\\t\\t= 459,\\r\\n1866 | \\tVRInitError_Compositor_CreateHmdPoseStagingConstantBuffer\\t\\t\\t\\t\\t= 460,\\r\\n1867 | \\tVRInitError_Compositor_CreateSharedFrameInfoConstantBuffer\\t\\t\\t\\t\\t= 461,\\r\\n1868 | \\tVRInitError_Compositor_CreateOverlayConstantBuffer\\t\\t\\t\\t\\t\\t\\t= 462,\\r\\n1869 | \\tVRInitError_Compositor_CreateSceneTextureIndexConstantBuffer\\t\\t\\t\\t= 463,\\r\\n1870 | \\tVRInitError_Compositor_CreateReadableSceneTextureIndexConstantBuffer\\t\\t= 464,\\r\\n1871 | \\tVRInitError_Compositor_CreateLayerGraphicsTextureIndexConstantBuffer\\t\\t= 465,\\r\\n1872 | \\tVRInitError_Compositor_CreateLayerComputeTextureIndexConstantBuffer\\t\\t\\t= 466,\\r\\n1873 | \\tVRInitError_Compositor_CreateLayerComputeSceneTextureIndexConstantBuffer\\t= 467,\\r\\n1874 | \\tVRInitError_Compositor_CreateComputeHmdPoseConstantBuffer\\t\\t\\t\\t\\t= 468,\\r\\n1875 | \\tVRInitError_Compositor_CreateGeomConstantBuffer\\t\\t\\t\\t\\t\\t\\t\\t= 469,\\r\\n1876 | \\tVRInitError_Compositor_CreatePanelMaskConstantBuffer\\t\\t\\t\\t\\t\\t= 470,\\r\\n1877 | \\tVRInitError_Compositor_CreatePixelSimUBO\\t\\t\\t\\t\\t\\t\\t\\t\\t= 471,\\r\\n1878 | \\tVRInitError_Compositor_CreateMSAARenderTextures\\t\\t\\t\\t\\t\\t\\t\\t= 472,\\r\\n1879 | \\tVRInitError_Compositor_CreateResolveRenderTextures\\t\\t\\t\\t\\t\\t\\t= 473,\\r\\n1880 | \\tVRInitError_Compositor_CreateComputeResolveRenderTextures\\t\\t\\t\\t\\t= 474,\\r\\n1881 | \\tVRInitError_Compositor_CreateDriverDirectModeResolveTextures\\t\\t\\t\\t= 475,\\r\\n1882 | \\tVRInitError_Compositor_OpenDriverDirectModeResolveTextures\\t\\t\\t\\t\\t= 476,\\r\\n1883 | \\tVRInitError_Compositor_CreateFallbackSyncTexture\\t\\t\\t\\t\\t\\t\\t= 477,\\r\\n1884 | \\tVRInitError_Compositor_ShareFallbackSyncTexture\\t\\t\\t\\t\\t\\t\\t\\t= 478,\\r\\n1885 | \\tVRInitError_Compositor_CreateOverlayIndexBuffer\\t\\t\\t\\t\\t\\t\\t\\t= 479,\\r\\n1886 | \\tVRInitError_Compositor_CreateOverlayVertexBuffer\\t\\t\\t\\t\\t\\t\\t= 480,\\r\\n1887 | \\tVRInitError_Compositor_CreateTextVertexBuffer\\t\\t\\t\\t\\t\\t\\t\\t= 481,\\r\\n1888 | \\tVRInitError_Compositor_CreateTextIndexBuffer\\t\\t\\t\\t\\t\\t\\t\\t= 482,\\r\\n1889 | \\tVRInitError_Compositor_CreateMirrorTextures\\t\\t\\t\\t\\t\\t\\t\\t\\t= 483,\\r\\n1890 | \\tVRInitError_Compositor_CreateLastFrameRenderTexture\\t\\t\\t\\t\\t\\t\\t= 484,\\r\\n1891 | \\tVRInitError_Compositor_CreateMirrorOverlay\\t\\t\\t\\t\\t\\t\\t\\t\\t= 485,\\r\\n1892 | \\tVRInitError_Compositor_FailedToCreateVirtualDisplayBackbuffer\\t\\t\\t\\t= 486,\\r\\n1893 | \\tVRInitError_Compositor_DisplayModeNotSupported\\t\\t\\t\\t\\t\\t\\t\\t= 487,\\r\\n1894 | \\tVRInitError_Compositor_CreateOverlayInvalidCall\\t\\t\\t\\t\\t\\t\\t\\t= 488,\\r\\n1895 | \\tVRInitError_Compositor_CreateOverlayAlreadyInitialized\\t\\t\\t\\t\\t\\t= 489,\\r\\n1896 | \\tVRInitError_Compositor_FailedToCreateMailbox\\t\\t\\t\\t\\t\\t\\t\\t= 490,\\r\\n1897 | \\tVRInitError_Compositor_WindowInterfaceIsNull\\t\\t\\t\\t\\t\\t\\t\\t= 491,\\r\\n1898 | \\tVRInitError_Compositor_SystemLayerCreateInstance\\t\\t\\t\\t\\t\\t\\t= 492,\\r\\n1899 | \\tVRInitError_Compositor_SystemLayerCreateSession\\t\\t\\t\\t\\t\\t\\t\\t= 493,\\r\\n1900 | \\tVRInitError_Compositor_CreateInverseDistortUVs\\t\\t\\t\\t\\t\\t\\t\\t= 494,\\r\\n1901 | \\tVRInitError_Compositor_CreateBackbufferDepth\\t\\t\\t\\t\\t\\t\\t\\t= 495,\\r\\n1902 | \\tVRInitError_Compositor_CannotDRMLeaseDisplay\\t\\t\\t\\t\\t\\t\\t\\t= 496,\\r\\n1903 | \\tVRInitError_Compositor_CannotConnectToDisplayServer\\t\\t\\t\\t\\t\\t\\t= 497,\\r\\n1904 | \\tVRInitError_Compositor_GnomeNoDRMLeasing\\t\\t\\t\\t\\t\\t\\t\\t\\t= 498,\\r\\n1905 | \\tVRInitError_Compositor_FailedToInitializeEncoder\\t\\t\\t\\t\\t\\t\\t= 499,\\r\\n1906 | \\tVRInitError_Compositor_CreateBlurTexture\\t\\t\\t\\t\\t\\t\\t\\t\\t= 500,\\r\\n1907 | \\r\\n1908 | \\tVRInitError_VendorSpecific_UnableToConnectToOculusRuntime\\t\\t= 1000,\\r\\n1909 | \\tVRInitError_VendorSpecific_WindowsNotInDevMode\\t\\t\\t\\t\\t= 1001,\\r\\n1910 | \\tVRInitError_VendorSpecific_OculusLinkNotEnabled\\t\\t\\t\\t\\t= 1002,\\r\\n1911 | \\r\\n1912 | \\tVRInitError_VendorSpecific_HmdFound_CantOpenDevice \\t\\t\\t\\t= 1101,\\r\\n1913 | \\tVRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart\\t= 1102,\\r\\n1914 | \\tVRInitError_VendorSpecific_HmdFound_NoStoredConfig \\t\\t\\t\\t= 1103,\\r\\n1915 | \\tVRInitError_VendorSpecific_HmdFound_ConfigTooBig \\t\\t\\t\\t= 1104,\\r\\n1916 | \\tVRInitError_VendorSpecific_HmdFound_ConfigTooSmall \\t\\t\\t\\t= 1105,\\r\\n1917 | \\tVRInitError_VendorSpecific_HmdFound_UnableToInitZLib \\t\\t\\t= 1106,\\r\\n1918 | \\tVRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion \\t= 1107,\\r\\n1919 | \\tVRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart\\t= 1108,\\r\\n1920 | \\tVRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart\\t= 1109,\\r\\n1921 | \\tVRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext\\t\\t= 1110,\\r\\n1922 | \\tVRInitError_VendorSpecific_HmdFound_UserDataAddressRange\\t\\t= 1111,\\r\\n1923 | \\tVRInitError_VendorSpecific_HmdFound_UserDataError\\t\\t\\t\\t= 1112,\\r\\n1924 | \\tVRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck\\t\\t= 1113,\\r\\n1925 | \\tVRInitError_VendorSpecific_OculusRuntimeBadInstall\\t\\t\\t\\t= 1114,\\r\\n1926 | \\tVRInitError_VendorSpecific_HmdFound_UnexpectedConfiguration_1\\t= 1115,\\r\\n1927 | \\r\\n1928 | \\tVRInitError_Steam_SteamInstallationNotFound = 2000,\\r\\n1929 | \\r\\n1930 | \\t// Strictly a placeholder\\r\\n1931 | \\tVRInitError_LastError\\r\\n1932 | };\\r\\n1933 | \\r\\n1934 | enum EVRScreenshotType\\r\\n1935 | {\\r\\n1936 | \\tVRScreenshotType_None = 0,\\r\\n1937 | \\tVRScreenshotType_Mono = 1, // left eye only\\r\\n1938 | \\tVRScreenshotType_Stereo = 2,\\r\\n1939 | \\tVRScreenshotType_Cubemap = 3,\\r\\n1940 | \\tVRScreenshotType_MonoPanorama = 4,\\r\\n1941 | \\tVRScreenshotType_StereoPanorama = 5\\r\\n1942 | };\\r\\n1943 | \\r\\n1944 | enum EVRScreenshotPropertyFilenames\\r\\n1945 | {\\r\\n1946 | \\tVRScreenshotPropertyFilenames_Preview = 0,\\r\\n1947 | \\tVRScreenshotPropertyFilenames_VR = 1,\\r\\n1948 | };\\r\\n1949 | \\r\\n1950 | enum EVRTrackedCameraError\\r\\n1951 | {\\r\\n1952 | \\tVRTrackedCameraError_None                       = 0,\\r\\n1953 | \\tVRTrackedCameraError_OperationFailed            = 100,\\r\\n1954 | \\tVRTrackedCameraError_InvalidHandle              = 101,\\r\\n1955 | \\tVRTrackedCameraError_InvalidFrameHeaderVersion  = 102,\\r\\n1956 | \\tVRTrackedCameraError_OutOfHandles               = 103,\\r\\n1957 | \\tVRTrackedCameraError_IPCFailure                 = 104,\\r\\n1958 | \\tVRTrackedCameraError_NotSupportedForThisDevice  = 105,\\r\\n1959 | \\tVRTrackedCameraError_SharedMemoryFailure        = 106,\\r\\n1960 | \\tVRTrackedCameraError_FrameBufferingFailure      = 107,\\r\\n1961 | \\tVRTrackedCameraError_StreamSetupFailure         = 108,\\r\\n1962 | \\tVRTrackedCameraError_InvalidGLTextureId         = 109,\\r\\n1963 | \\tVRTrackedCameraError_InvalidSharedTextureHandle = 110,\\r\\n1964 | \\tVRTrackedCameraError_FailedToGetGLTextureId     = 111,\\r\\n1965 | \\tVRTrackedCameraError_SharedTextureFailure       = 112,\\r\\n1966 | \\tVRTrackedCameraError_NoFrameAvailable           = 113,\\r\\n1967 | \\tVRTrackedCameraError_InvalidArgument            = 114,\\r\\n1968 | \\tVRTrackedCameraError_InvalidFrameBufferSize     = 115,\\r\\n1969 | };\\r\\n1970 | \\r\\n1971 | enum EVRTrackedCameraFrameLayout\\r\\n1972 | {\\r\\n1973 | \\tEVRTrackedCameraFrameLayout_Mono\\t\\t\\t\\t= 0x0001,\\r\\n1974 | \\tEVRTrackedCameraFrameLayout_Stereo\\t\\t\\t\\t= 0x0002,\\r\\n1975 | \\tEVRTrackedCameraFrameLayout_VerticalLayout\\t\\t= 0x0010,\\t// Stereo frames are Top/Bottom (left/right)\\r\\n1976 | \\tEVRTrackedCameraFrameLayout_HorizontalLayout\\t= 0x0020,\\t// Stereo frames are Left/Right\\r\\n1977 | };\\r\\n1978 | \\r\\n1979 | enum EVRTrackedCameraFrameType\\r\\n1980 | {\\r\\n1981 | \\tVRTrackedCameraFrameType_Distorted = 0,\\t\\t\\t// This is the camera video frame size in pixels, still distorted.\\r\\n1982 | \\tVRTrackedCameraFrameType_Undistorted,\\t\\t\\t// In pixels, an undistorted inscribed rectangle region without invalid regions. This size is subject to changes shortly.\\r\\n1983 | \\tVRTrackedCameraFrameType_MaximumUndistorted,\\t// In pixels, maximum undistorted with invalid regions. Non zero alpha component identifies valid regions.\\r\\n1984 | \\tMAX_CAMERA_FRAME_TYPES\\r\\n1985 | };\\r\\n1986 | \\r\\n1987 | enum EVRDistortionFunctionType\\r\\n1988 | {\\r\\n1989 | \\tVRDistortionFunctionType_None,\\r\\n1990 | \\tVRDistortionFunctionType_FTheta,\\r\\n1991 | \\tVRDistortionFunctionType_Extended_FTheta,\\r\\n1992 | \\tMAX_DISTORTION_FUNCTION_TYPES,\\r\\n1993 | };\\r\\n1994 | \\r\\n1995 | static const uint32_t k_unMaxDistortionFunctionParameters = 8;\\r\\n1996 | \\r\\n1997 | typedef uint64_t TrackedCameraHandle_t;\\r\\n1998 | #define INVALID_TRACKED_CAMERA_HANDLE\\t((vr::TrackedCameraHandle_t)0)\\r\\n1999 | \\r\\n2000 | struct CameraVideoStreamFrameHeader_t\\r\\n2001 | {\\r\\n2002 | \\tEVRTrackedCameraFrameType eFrameType;\\r\\n2003 | \\r\\n2004 | \\tuint32_t nWidth;\\r\\n2005 | \\tuint32_t nHeight;\\r\\n2006 | \\tuint32_t nBytesPerPixel;\\r\\n2007 | \\r\\n2008 | \\tuint32_t nFrameSequence;\\r\\n2009 | \\r\\n2010 | \\tTrackedDevicePose_t trackedDevicePose;\\r\\n2011 | \\r\\n2012 | \\tuint64_t ulFrameExposureTime;\\t\\t\\t\\t\\t\\t// mid-point of the exposure of the image in host system ticks\\r\\n2013 | };\\r\\n2014 | \\r\\n2015 | // Screenshot types\\r\\n2016 | typedef uint32_t ScreenshotHandle_t;\\r\\n2017 | \\r\\n2018 | static const uint32_t k_unScreenshotHandleInvalid = 0;\\r\\n2019 | \\r\\n2020 | /** Compositor frame timing reprojection flags. */\\r\\n2021 | const uint32_t VRCompositor_ReprojectionReason_Cpu = 0x01;\\r\\n2022 | const uint32_t VRCompositor_ReprojectionReason_Gpu = 0x02;\\r\\n2023 | const uint32_t VRCompositor_ReprojectionAsync = 0x04;\\t\\t// This flag indicates the async reprojection mode is active,\\r\\n2024 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// but does not indicate if reprojection actually happened or not.\\r\\n2025 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Use the ReprojectionReason flags above to check if reprojection\\r\\n2026 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// was actually applied (i.e. scene texture was reused).\\r\\n2027 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// NumFramePresents > 1 also indicates the scene texture was reused,\\r\\n2028 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// and also the number of times that it was presented in total.\\r\\n2029 | \\r\\n2030 | const uint32_t VRCompositor_ReprojectionMotion = 0x08;\\t\\t// This flag indicates whether or not motion smoothing was triggered for this frame\\r\\n2031 | \\r\\n2032 | const uint32_t VRCompositor_PredictionMask = 0xF0;\\t\\t\\t// The runtime may predict more than one frame ahead if\\r\\n2033 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// it detects the application is taking too long to render. These\\r\\n2034 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// bits will contain the count of additional frames (normally zero).\\r\\n2035 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Use the VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES macro to read from\\r\\n2036 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// the latest frame timing entry.\\r\\n2037 | \\r\\n2038 | const uint32_t VRCompositor_ThrottleMask = 0xF00;\\t\\t\\t// Number of frames the compositor is throttling the application.\\r\\n2039 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Use the VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES macro to read from\\r\\n2040 | \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// the latest frame timing entry.\\r\\n2041 | \\r\\n2042 | #define VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_PredictionMask ) >> 4 )\\r\\n2043 | #define VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_ThrottleMask ) >> 8 )\\r\\n2044 | \\r\\n2045 | #if defined(__linux__) || defined(__APPLE__)\\r\\n2046 | #pragma pack( push, 4 )\\r\\n2047 | #endif\\r\\n2048 | /** Provides a single frame's timing information to the app */\\r\\n2049 | struct Compositor_FrameTiming\\r\\n2050 | {\\r\\n2051 | \\tuint32_t m_nSize; // Set to sizeof( Compositor_FrameTiming )\\r\\n2052 | \\tuint32_t m_nFrameIndex;\\r\\n2053 | \\tuint32_t m_nNumFramePresents; // number of times this frame was presented\\r\\n2054 | \\tuint32_t m_nNumMisPresented; // number of times this frame was presented on a vsync other than it was originally predicted to\\r\\n2055 | \\tuint32_t m_nNumDroppedFrames; // number of additional times previous frame was scanned out\\r\\n2056 | \\tuint32_t m_nReprojectionFlags;\\r\\n2057 | \\r\\n2058 | \\t/** Absolute time reference for comparing frames.  This aligns with the vsync that running start is relative to. */\\r\\n2059 | \\tdouble m_flSystemTimeInSeconds;\\r\\n2060 | \\r\\n2061 | \\t/** These times may include work from other processes due to OS scheduling.\\r\\n2062 | \\t* The fewer packets of work these are broken up into, the less likely this will happen.\\r\\n2063 | \\t* GPU work can be broken up by calling Flush.  This can sometimes be useful to get the GPU started\\r\\n2064 | \\t* processing that work earlier in the frame. */\\r\\n2065 | \\tfloat m_flPreSubmitGpuMs; // time spent rendering the scene (gpu work submitted between WaitGetPoses and second Submit)\\r\\n2066 | \\tfloat m_flPostSubmitGpuMs; // additional time spent rendering by application (e.g. companion window)\\r\\n2067 | \\tfloat m_flTotalRenderGpuMs; // time between work submitted immediately after present (ideally vsync) until the end of compositor submitted work\\r\\n2068 | \\tfloat m_flCompositorRenderGpuMs; // time spend performing distortion correction, rendering chaperone, overlays, etc.\\r\\n2069 | \\tfloat m_flCompositorRenderCpuMs; // time spent on cpu submitting the above work for this frame\\r\\n2070 | \\tfloat m_flCompositorIdleCpuMs; // time spent waiting for running start (application could have used this much more time)\\r\\n2071 | \\r\\n2072 | \\t/** Miscellaneous measured intervals. */\\r\\n2073 | \\tfloat m_flClientFrameIntervalMs; // time between calls to WaitGetPoses\\r\\n2074 | \\tfloat m_flPresentCallCpuMs; // time blocked on call to present (usually 0.0, but can go long)\\r\\n2075 | \\tfloat m_flWaitForPresentCpuMs; // time spent spin-waiting for frame index to change (not near-zero indicates wait object failure)\\r\\n2076 | \\tfloat m_flSubmitFrameMs; // time spent in IVRCompositor::Submit (not near-zero indicates driver issue)\\r\\n2077 | \\r\\n2078 | \\t/** The following are all relative to this frame's SystemTimeInSeconds */\\r\\n2079 | \\tfloat m_flWaitGetPosesCalledMs;\\r\\n2080 | \\tfloat m_flNewPosesReadyMs;\\r\\n2081 | \\tfloat m_flNewFrameReadyMs; // second call to IVRCompositor::Submit\\r\\n2082 | \\tfloat m_flCompositorUpdateStartMs;\\r\\n2083 | \\tfloat m_flCompositorUpdateEndMs;\\r\\n2084 | \\tfloat m_flCompositorRenderStartMs;\\r\\n2085 | \\r\\n2086 | \\tvr::TrackedDevicePose_t m_HmdPose; // pose used by app to render this frame\\r\\n2087 | \\r\\n2088 | \\tuint32_t m_nNumVSyncsReadyForUse;\\r\\n2089 | \\tuint32_t m_nNumVSyncsToFirstView;\\r\\n2090 | \\r\\n2091 | \\tfloat m_flTransferLatencyMs;\\r\\n2092 | };\\r\\n2093 | #if defined(__linux__) || defined(__APPLE__)\\r\\n2094 | #pragma pack( pop )\\r\\n2095 | #endif\\r\\n2096 | \\r\\n2097 | /** Provides compositor benchmark results to the app */\\r\\n2098 | struct Compositor_BenchmarkResults\\r\\n2099 | {\\r\\n2100 | \\tfloat m_flMegaPixelsPerSecond; // Measurement of GPU MP/s performed by compositor benchmark\\r\\n2101 | \\tfloat m_flHmdRecommendedMegaPixelsPerSecond; // Recommended default MP/s given the HMD resolution, refresh, and panel mask.\\r\\n2102 | };\\r\\n2103 | \\r\\n2104 | /** Frame timing data provided by direct mode drivers. */\\r\\n2105 | struct DriverDirectMode_FrameTiming\\r\\n2106 | {\\r\\n2107 | \\tuint32_t m_nSize; // Set to sizeof( DriverDirectMode_FrameTiming )\\r\\n2108 | \\tuint32_t m_nNumFramePresents; // number of times frame was presented\\r\\n2109 | \\tuint32_t m_nNumMisPresented; // number of times frame was presented on a vsync other than it was originally predicted to\\r\\n2110 | \\tuint32_t m_nNumDroppedFrames; // number of additional times previous frame was scanned out (i.e. compositor missed vsync)\\r\\n2111 | \\tuint32_t m_nReprojectionFlags;\\r\\n2112 | };\\r\\n2113 | \\r\\n2114 | /** These flags will be set on DriverDirectMode_FrameTiming::m_nReprojectionFlags when IVRDriverDirectModeComponent::GetFrameTiming is called for drivers to optionally respond to. */\\r\\n2115 | const uint32_t VRCompositor_ReprojectionMotion_Enabled = 0x100; // Motion Smoothing is enabled in the UI for the currently running application\\r\\n2116 | const uint32_t VRCompositor_ReprojectionMotion_ForcedOn = 0x200; // Motion Smoothing is forced on in the UI for the currently running application\\r\\n2117 | const uint32_t VRCompositor_ReprojectionMotion_AppThrottled = 0x400; // Application is requesting throttling via ForceInterleavedReprojectionOn\\r\\n2118 | \\r\\n2119 | \\r\\n2120 | enum EVSync\\r\\n2121 | {\\r\\n2122 | \\tVSync_None,\\r\\n2123 | \\tVSync_WaitRender,\\t// block following render work until vsync\\r\\n2124 | \\tVSync_NoWaitRender,\\t// do not block following render work (allow to get started early)\\r\\n2125 | };\\r\\n2126 | \\r\\n2127 | enum EVRMuraCorrectionMode\\r\\n2128 | {\\r\\n2129 | \\tEVRMuraCorrectionMode_Default = 0,\\r\\n2130 | \\tEVRMuraCorrectionMode_NoCorrection\\r\\n2131 | };\\r\\n2132 | \\r\\n2133 | /** raw IMU data provided by IVRIOBuffer from paths to tracked devices with IMUs */\\r\\n2134 | enum Imu_OffScaleFlags\\r\\n2135 | {\\r\\n2136 | \\tOffScale_AccelX\\t= 0x01,\\r\\n2137 | \\tOffScale_AccelY\\t= 0x02,\\r\\n2138 | \\tOffScale_AccelZ\\t= 0x04,\\r\\n2139 | \\tOffScale_GyroX\\t= 0x08,\\r\\n2140 | \\tOffScale_GyroY\\t= 0x10,\\r\\n2141 | \\tOffScale_GyroZ\\t= 0x20,\\r\\n2142 | };\\r\\n2143 | \\r\\n2144 | struct ImuSample_t\\r\\n2145 | {\\r\\n2146 | \\tdouble fSampleTime;\\r\\n2147 | \\tHmdVector3d_t vAccel;\\r\\n2148 | \\tHmdVector3d_t vGyro;\\r\\n2149 | \\tuint32_t unOffScaleFlags;\\r\\n2150 | };\\r\\n2151 | \\r\\n2152 | #pragma pack( pop )\\r\\n2153 | \\r\\n2154 | // figure out how to import from the VR API dll\\r\\n2155 | #if defined(_WIN32)\\r\\n2156 | \\r\\n2157 |   #if !defined(OPENVR_BUILD_STATIC)\\r\\n2158 |     #ifdef VR_API_EXPORT\\r\\n2159 |       #define VR_INTERFACE extern \\\"C\\\" __declspec( dllexport )\\r\\n2160 |     #else\\r\\n2161 |       #define VR_INTERFACE extern \\\"C\\\" __declspec( dllimport )\\r\\n2162 |     #endif\\r\\n2163 |   #else\\r\\n2164 |     #define VR_INTERFACE extern \\\"C\\\"\\r\\n2165 |   #endif\\r\\n2166 | \\r\\n2167 | #elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__)\\r\\n2168 | \\r\\n2169 | #ifdef VR_API_EXPORT\\r\\n2170 |   #define VR_INTERFACE extern \\\"C\\\" __attribute__((visibility(\\\"default\\\")))\\r\\n2171 | #else\\r\\n2172 |   #define VR_INTERFACE extern \\\"C\\\"\\r\\n2173 | #endif\\r\\n2174 | \\r\\n2175 | #else\\r\\n2176 |   #error \\\"Unsupported Platform.\\\"\\r\\n2177 | #endif\\r\\n2178 | \\r\\n2179 | \\r\\n2180 | #if defined( _WIN32 )\\r\\n2181 |   #define VR_CALLTYPE __cdecl\\r\\n2182 | #else\\r\\n2183 |   #define VR_CALLTYPE\\r\\n2184 | #endif\\r\\n2185 | \\r\\n2186 | } // namespace vr\\r\\n2187 | #endif // _INCLUDE_VRTYPES_H\\r\\n2188 | \\r\\n2189 | // vrannotation.h\\r\\n2190 | \\r\\n2191 | #ifdef API_GEN\\r\\n2192 | # define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR )))\\r\\n2193 | #else\\r\\n2194 | # define VR_CLANG_ATTR(ATTR)\\r\\n2195 | #endif\\r\\n2196 | \\r\\n2197 | #define VR_METHOD_DESC(DESC) VR_CLANG_ATTR( \\\"desc:\\\" #DESC \\\";\\\" )\\r\\n2198 | #define VR_IGNOREATTR() VR_CLANG_ATTR( \\\"ignore\\\" )\\r\\n2199 | #define VR_OUT_STRUCT() VR_CLANG_ATTR( \\\"out_struct: ;\\\" )\\r\\n2200 | #define VR_OUT_STRING() VR_CLANG_ATTR( \\\"out_string: ;\\\" )\\r\\n2201 | #define VR_OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) VR_CLANG_ATTR( \\\"out_array_call:\\\" #COUNTER \\\",\\\" #FUNCTION \\\",\\\" #PARAMS \\\";\\\" )\\r\\n2202 | #define VR_OUT_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( \\\"out_array_count:\\\" #COUNTER \\\";\\\" )\\r\\n2203 | #define VR_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( \\\"array_count:\\\" #COUNTER \\\";\\\" )\\r\\n2204 | #define VR_ARRAY_COUNT_D(COUNTER, DESC) VR_CLANG_ATTR( \\\"array_count:\\\" #COUNTER \\\";desc:\\\" #DESC )\\r\\n2205 | #define VR_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( \\\"buffer_count:\\\" #COUNTER \\\";\\\" )\\r\\n2206 | #define VR_OUT_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( \\\"out_buffer_count:\\\" #COUNTER \\\";\\\" )\\r\\n2207 | #define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( \\\"out_string_count:\\\" #COUNTER \\\";\\\" )\\r\\n2208 | \\r\\n2209 | // ivrsystem.h\\r\\n2210 | \\r\\n2211 | namespace vr\\r\\n2212 | {\\r\\n2213 | \\r\\n2214 | class IVRSystem\\r\\n2215 | {\\r\\n2216 | public:\\r\\n2217 | \\r\\n2218 | \\r\\n2219 | \\t// ------------------------------------\\r\\n2220 | \\t// Display Methods\\r\\n2221 | \\t// ------------------------------------\\r\\n2222 | \\r\\n2223 | \\t/** Suggested size for the intermediate render target that the distortion pulls from. */\\r\\n2224 | \\tvirtual void GetRecommendedRenderTargetSize( uint32_t *pnWidth, uint32_t *pnHeight ) = 0;\\r\\n2225 | \\r\\n2226 | \\t/** The projection matrix for the specified eye */\\r\\n2227 | \\tvirtual HmdMatrix44_t GetProjectionMatrix( EVREye eEye, float fNearZ, float fFarZ ) = 0;\\r\\n2228 | \\r\\n2229 | \\t/** The components necessary to build your own projection matrix in case your\\r\\n2230 | \\t* application is doing something fancy like infinite Z */\\r\\n2231 | \\tvirtual void GetProjectionRaw( EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom ) = 0;\\r\\n2232 | \\r\\n2233 | \\t/** Gets the result of the distortion function for the specified eye and input UVs. UVs go from 0,0 in\\r\\n2234 | \\t* the upper left of that eye's viewport and 1,1 in the lower right of that eye's viewport.\\r\\n2235 | \\t* Returns true for success. Otherwise, returns false, and distortion coordinates are not suitable. */\\r\\n2236 | \\tvirtual bool ComputeDistortion( EVREye eEye, float fU, float fV, DistortionCoordinates_t *pDistortionCoordinates ) = 0;\\r\\n2237 | \\r\\n2238 | \\t/** Returns the transform from eye space to the head space. Eye space is the per-eye flavor of head\\r\\n2239 | \\t* space that provides stereo disparity. Instead of Model * View * Projection the sequence is Model * View * Eye^-1 * Projection.\\r\\n2240 | \\t* Normally View and Eye^-1 will be multiplied together and treated as View in your application.\\r\\n2241 | \\t*/\\r\\n2242 | \\tvirtual HmdMatrix34_t GetEyeToHeadTransform( EVREye eEye ) = 0;\\r\\n2243 | \\r\\n2244 | \\t/** Returns the number of elapsed seconds since the last recorded vsync event. This\\r\\n2245 | \\t*\\twill come from a vsync timer event in the timer if possible or from the application-reported\\r\\n2246 | \\t*   time if that is not available. If no vsync times are available the function will\\r\\n2247 | \\t*   return zero for vsync time and frame counter and return false from the method. */\\r\\n2248 | \\tvirtual bool GetTimeSinceLastVsync( float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter ) = 0;\\r\\n2249 | \\r\\n2250 | \\t/** [D3D9 Only]\\r\\n2251 | \\t* Returns the adapter index that the user should pass into CreateDevice to set up D3D9 in such\\r\\n2252 | \\t* a way that it can go full screen exclusive on the HMD. Returns -1 if there was an error.\\r\\n2253 | \\t*/\\r\\n2254 | \\tvirtual int32_t GetD3D9AdapterIndex() = 0;\\r\\n2255 | \\r\\n2256 | \\t/** [D3D10/11 Only]\\r\\n2257 | \\t* Returns the adapter index that the user should pass into EnumAdapters to create the device\\r\\n2258 | \\t* and swap chain in DX10 and DX11. If an error occurs the index will be set to -1.\\r\\n2259 | \\t*/\\r\\n2260 | \\tvirtual void GetDXGIOutputInfo( int32_t *pnAdapterIndex ) = 0;\\r\\n2261 | \\r\\n2262 | \\t/**\\r\\n2263 | \\t * Returns platform- and texture-type specific adapter identification so that applications and the\\r\\n2264 | \\t * compositor are creating textures and swap chains on the same GPU. If an error occurs the device\\r\\n2265 | \\t * will be set to 0.\\r\\n2266 | \\t * pInstance is an optional parameter that is required only when textureType is TextureType_Vulkan.\\r\\n2267 | \\t * [D3D10/11/12 Only (D3D9 Not Supported)]\\r\\n2268 | \\t *  Returns the adapter LUID that identifies the GPU attached to the HMD. The user should\\r\\n2269 | \\t *  enumerate all adapters using IDXGIFactory::EnumAdapters and IDXGIAdapter::GetDesc to find\\r\\n2270 | \\t *  the adapter with the matching LUID, or use IDXGIFactory4::EnumAdapterByLuid.\\r\\n2271 | \\t *  The discovered IDXGIAdapter should be used to create the device and swap chain.\\r\\n2272 | \\t * [Vulkan Only]\\r\\n2273 | \\t *  Returns the VkPhysicalDevice that should be used by the application.\\r\\n2274 | \\t *  pInstance must be the instance the application will use to query for the VkPhysicalDevice.  The application\\r\\n2275 | \\t *  must create the VkInstance with extensions returned by IVRCompositor::GetVulkanInstanceExtensionsRequired enabled.\\r\\n2276 | \\t * [macOS Only]\\r\\n2277 | \\t *  For TextureType_IOSurface returns the id<MTLDevice> that should be used by the application.\\r\\n2278 | \\t *  On 10.13+ for TextureType_OpenGL returns the 'registryId' of the renderer which should be used\\r\\n2279 | \\t *   by the application. See Apple Technical Q&A QA1168 for information on enumerating GL Renderers, and the\\r\\n2280 | \\t *   new kCGLRPRegistryIDLow and kCGLRPRegistryIDHigh CGLRendererProperty values in the 10.13 SDK.\\r\\n2281 | \\t *  Pre 10.13 for TextureType_OpenGL returns 0, as there is no dependable way to correlate the HMDs MTLDevice\\r\\n2282 | \\t *   with a GL Renderer.\\r\\n2283 | \\t */\\r\\n2284 | \\tvirtual void GetOutputDevice( uint64_t *pnDevice, ETextureType textureType, VkInstance_T *pInstance = nullptr ) = 0;\\r\\n2285 | \\r\\n2286 | \\t// ------------------------------------\\r\\n2287 | \\t// Display Mode methods\\r\\n2288 | \\t// ------------------------------------\\r\\n2289 | \\r\\n2290 | \\t/** Use to determine if the headset display is part of the desktop (i.e. extended) or hidden (i.e. direct mode). */\\r\\n2291 | \\tvirtual bool IsDisplayOnDesktop() = 0;\\r\\n2292 | \\r\\n2293 | \\t/** Set the display visibility (true = extended, false = direct mode).  Return value of true indicates that the change was successful. */\\r\\n2294 | \\tvirtual bool SetDisplayVisibility( bool bIsVisibleOnDesktop ) = 0;\\r\\n2295 | \\r\\n2296 | \\t// ------------------------------------\\r\\n2297 | \\t// Tracking Methods\\r\\n2298 | \\t// ------------------------------------\\r\\n2299 | \\r\\n2300 | \\t/** The pose that the tracker thinks that the HMD will be in at the specified number of seconds into the\\r\\n2301 | \\t* future. Pass 0 to get the state at the instant the method is called. Most of the time the application should\\r\\n2302 | \\t* calculate the time until the photons will be emitted from the display and pass that time into the method.\\r\\n2303 | \\t*\\r\\n2304 | \\t* This is roughly analogous to the inverse of the view matrix in most applications, though\\r\\n2305 | \\t* many games will need to do some additional rotation or translation on top of the rotation\\r\\n2306 | \\t* and translation provided by the head pose.\\r\\n2307 | \\t*\\r\\n2308 | \\t* For devices where bPoseIsValid is true the application can use the pose to position the device\\r\\n2309 | \\t* in question. The provided array can be any size up to k_unMaxTrackedDeviceCount.\\r\\n2310 | \\t*\\r\\n2311 | \\t* Seated experiences should call this method with TrackingUniverseSeated and receive poses relative\\r\\n2312 | \\t* to the seated zero pose. Standing experiences should call this method with TrackingUniverseStanding\\r\\n2313 | \\t* and receive poses relative to the Chaperone Play Area. TrackingUniverseRawAndUncalibrated should\\r\\n2314 | \\t* probably not be used unless the application is the Chaperone calibration tool itself, but will provide\\r\\n2315 | \\t* poses relative to the hardware-specific coordinate system in the driver.\\r\\n2316 | \\t*/\\r\\n2317 | \\tvirtual void GetDeviceToAbsoluteTrackingPose( ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, VR_ARRAY_COUNT(unTrackedDevicePoseArrayCount) TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0;\\r\\n2318 | \\r\\n2319 | \\t/** Returns the transform from the seated zero pose to the standing absolute tracking system. This allows\\r\\n2320 | \\t* applications to represent the seated origin to used or transform object positions from one coordinate\\r\\n2321 | \\t* system to the other.\\r\\n2322 | \\t*\\r\\n2323 | \\t* The seated origin may or may not be inside the Play Area or Collision Bounds returned by IVRChaperone. Its position\\r\\n2324 | \\t* depends on what the user has set from the Dashboard settings and previous calls to ResetSeatedZeroPose. */\\r\\n2325 | \\tvirtual HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose() = 0;\\r\\n2326 | \\r\\n2327 | \\t/** Returns the transform from the tracking origin to the standing absolute tracking system. This allows\\r\\n2328 | \\t* applications to convert from raw tracking space to the calibrated standing coordinate system. */\\r\\n2329 | \\tvirtual HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose() = 0;\\r\\n2330 | \\r\\n2331 | \\t/** Get a sorted array of device indices of a given class of tracked devices (e.g. controllers).  Devices are sorted right to left\\r\\n2332 | \\t* relative to the specified tracked device (default: hmd -- pass in -1 for absolute tracking space).  Returns the number of devices\\r\\n2333 | \\t* in the list, or the size of the array needed if not large enough. */\\r\\n2334 | \\tvirtual uint32_t GetSortedTrackedDeviceIndicesOfClass( ETrackedDeviceClass eTrackedDeviceClass, VR_ARRAY_COUNT(unTrackedDeviceIndexArrayCount) vr::TrackedDeviceIndex_t *punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, vr::TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex = k_unTrackedDeviceIndex_Hmd ) = 0;\\r\\n2335 | \\r\\n2336 | \\t/** Returns the level of activity on the device. */\\r\\n2337 | \\tvirtual EDeviceActivityLevel GetTrackedDeviceActivityLevel( vr::TrackedDeviceIndex_t unDeviceId ) = 0;\\r\\n2338 | \\r\\n2339 | \\t/** Convenience utility to apply the specified transform to the specified pose.\\r\\n2340 | \\t*   This properly transforms all pose components, including velocity and angular velocity\\r\\n2341 | \\t*/\\r\\n2342 | \\tvirtual void ApplyTransform( TrackedDevicePose_t *pOutputPose, const TrackedDevicePose_t *pTrackedDevicePose, const HmdMatrix34_t *pTransform ) = 0;\\r\\n2343 | \\r\\n2344 | \\t/** Returns the device index associated with a specific role, for example the left hand or the right hand. This function is deprecated in favor of the new IVRInput system. */\\r\\n2345 | \\tvirtual vr::TrackedDeviceIndex_t GetTrackedDeviceIndexForControllerRole( vr::ETrackedControllerRole unDeviceType ) = 0;\\r\\n2346 | \\r\\n2347 | \\t/** Returns the controller type associated with a device index. This function is deprecated in favor of the new IVRInput system. */\\r\\n2348 | \\tvirtual vr::ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0;\\r\\n2349 | \\r\\n2350 | \\t// ------------------------------------\\r\\n2351 | \\t// Property methods\\r\\n2352 | \\t// ------------------------------------\\r\\n2353 | \\r\\n2354 | \\t/** Returns the device class of a tracked device. If there has not been a device connected in this slot\\r\\n2355 | \\t* since the application started this function will return TrackedDevice_Invalid. For previous detected\\r\\n2356 | \\t* devices the function will return the previously observed device class.\\r\\n2357 | \\t*\\r\\n2358 | \\t* To determine which devices exist on the system, just loop from 0 to k_unMaxTrackedDeviceCount and check\\r\\n2359 | \\t* the device class. Every device with something other than TrackedDevice_Invalid is associated with an\\r\\n2360 | \\t* actual tracked device. */\\r\\n2361 | \\tvirtual ETrackedDeviceClass GetTrackedDeviceClass( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0;\\r\\n2362 | \\r\\n2363 | \\t/** Returns true if there is a device connected in this slot. */\\r\\n2364 | \\tvirtual bool IsTrackedDeviceConnected( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0;\\r\\n2365 | \\r\\n2366 | \\t/** Returns a bool property. If the device index is not valid or the property is not a bool type this function will return false. */\\r\\n2367 | \\tvirtual bool GetBoolTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0;\\r\\n2368 | \\r\\n2369 | \\t/** Returns a float property. If the device index is not valid or the property is not a float type this function will return 0. */\\r\\n2370 | \\tvirtual float GetFloatTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0;\\r\\n2371 | \\r\\n2372 | \\t/** Returns an int property. If the device index is not valid or the property is not a int type this function will return 0. */\\r\\n2373 | \\tvirtual int32_t GetInt32TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0;\\r\\n2374 | \\r\\n2375 | \\t/** Returns a uint64 property. If the device index is not valid or the property is not a uint64 type this function will return 0. */\\r\\n2376 | \\tvirtual uint64_t GetUint64TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0;\\r\\n2377 | \\r\\n2378 | \\t/** Returns a matrix property. If the device index is not valid or the property is not a matrix type, this function will return identity. */\\r\\n2379 | \\tvirtual HmdMatrix34_t GetMatrix34TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0;\\r\\n2380 | \\r\\n2381 | \\t/** Returns an array of one type of property. If the device index is not valid or the property is not a single value or an array of the specified type,\\r\\n2382 | \\t* this function will return 0. Otherwise it returns the number of bytes necessary to hold the array of properties. If unBufferSize is\\r\\n2383 | \\t* greater than the returned size and pBuffer is non-NULL, pBuffer is filled with the contents of array of properties. */\\r\\n2384 | \\tvirtual uint32_t GetArrayTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, PropertyTypeTag_t propType, void *pBuffer, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ) = 0;\\r\\n2385 | \\r\\n2386 | \\t/** Returns a string property. If the device index is not valid or the property is not a string type this function will\\r\\n2387 | \\t* return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing\\r\\n2388 | \\t* null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */\\r\\n2389 | \\tvirtual uint32_t GetStringTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ) = 0;\\r\\n2390 | \\r\\n2391 | \\t/** returns a string that corresponds with the specified property error. The string will be the name\\r\\n2392 | \\t* of the error enum value for all valid error codes */\\r\\n2393 | \\tvirtual const char *GetPropErrorNameFromEnum( ETrackedPropertyError error ) = 0;\\r\\n2394 | \\r\\n2395 | \\t// ------------------------------------\\r\\n2396 | \\t// Event methods\\r\\n2397 | \\t// ------------------------------------\\r\\n2398 | \\r\\n2399 | \\t/** Returns true and fills the event with the next event on the queue if there is one. If there are no events\\r\\n2400 | \\t* this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */\\r\\n2401 | \\tvirtual bool PollNextEvent( VREvent_t *pEvent, uint32_t uncbVREvent ) = 0;\\r\\n2402 | \\r\\n2403 | \\t/** Returns true and fills the event with the next event on the queue if there is one. If there are no events\\r\\n2404 | \\t* this method returns false. Fills in the pose of the associated tracked device in the provided pose struct.\\r\\n2405 | \\t* This pose will always be older than the call to this function and should not be used to render the device.\\r\\n2406 | \\tuncbVREvent should be the size in bytes of the VREvent_t struct */\\r\\n2407 | \\tvirtual bool PollNextEventWithPose( ETrackingUniverseOrigin eOrigin, VREvent_t *pEvent, uint32_t uncbVREvent, vr::TrackedDevicePose_t *pTrackedDevicePose ) = 0;\\r\\n2408 | \\r\\n2409 | \\t/** returns the name of an EVREvent enum value */\\r\\n2410 | \\tvirtual const char *GetEventTypeNameFromEnum( EVREventType eType ) = 0;\\r\\n2411 | \\r\\n2412 | \\t// ------------------------------------\\r\\n2413 | \\t// Rendering helper methods\\r\\n2414 | \\t// ------------------------------------\\r\\n2415 | \\r\\n2416 | \\t/** Returns the hidden area mesh for the current HMD. The pixels covered by this mesh will never be seen by the user after the lens distortion is\\r\\n2417 | \\t* applied based on visibility to the panels. If this HMD does not have a hidden area mesh, the vertex data and count will be NULL and 0 respectively.\\r\\n2418 | \\t* This mesh is meant to be rendered into the stencil buffer (or into the depth buffer setting nearz) before rendering each eye's view.\\r\\n2419 | \\t* This will improve performance by letting the GPU early-reject pixels the user will never see before running the pixel shader.\\r\\n2420 | \\t* NOTE: Render this mesh with backface culling disabled since the winding order of the vertices can be different per-HMD or per-eye.\\r\\n2421 | \\t* Setting the bInverse argument to true will produce the visible area mesh that is commonly used in place of full-screen quads. The visible area mesh covers all of the pixels the hidden area mesh does not cover.\\r\\n2422 | \\t* Setting the bLineLoop argument will return a line loop of vertices in HiddenAreaMesh_t->pVertexData with HiddenAreaMesh_t->unTriangleCount set to the number of vertices.\\r\\n2423 | \\t*/\\r\\n2424 | \\tvirtual HiddenAreaMesh_t GetHiddenAreaMesh( EVREye eEye, EHiddenAreaMeshType type = k_eHiddenAreaMesh_Standard ) = 0;\\r\\n2425 | \\r\\n2426 | \\t// ------------------------------------\\r\\n2427 | \\t// Controller methods\\r\\n2428 | \\t// ------------------------------------\\r\\n2429 | \\r\\n2430 | \\t/** Fills the supplied struct with the current state of the controller. Returns false if the controller index\\r\\n2431 | \\t* is invalid. This function is deprecated in favor of the new IVRInput system. */\\r\\n2432 | \\tvirtual bool GetControllerState( vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize ) = 0;\\r\\n2433 | \\r\\n2434 | \\t/** fills the supplied struct with the current state of the controller and the provided pose with the pose of\\r\\n2435 | \\t* the controller when the controller state was updated most recently. Use this form if you need a precise controller\\r\\n2436 | \\t* pose as input to your application when the user presses or releases a button. This function is deprecated in favor of the new IVRInput system. */\\r\\n2437 | \\tvirtual bool GetControllerStateWithPose( ETrackingUniverseOrigin eOrigin, vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize, TrackedDevicePose_t *pTrackedDevicePose ) = 0;\\r\\n2438 | \\r\\n2439 | \\t/** Trigger a single haptic pulse on a controller. After this call the application may not trigger another haptic pulse on this controller\\r\\n2440 | \\t* and axis combination for 5ms. This function is deprecated in favor of the new IVRInput system. */\\r\\n2441 | \\tvirtual void TriggerHapticPulse( vr::TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec ) = 0;\\r\\n2442 | \\r\\n2443 | \\t/** returns the name of an EVRButtonId enum value. This function is deprecated in favor of the new IVRInput system.  */\\r\\n2444 | \\tvirtual const char *GetButtonIdNameFromEnum( EVRButtonId eButtonId ) = 0;\\r\\n2445 | \\r\\n2446 | \\t/** returns the name of an EVRControllerAxisType enum value. This function is deprecated in favor of the new IVRInput system. */\\r\\n2447 | \\tvirtual const char *GetControllerAxisTypeNameFromEnum( EVRControllerAxisType eAxisType ) = 0;\\r\\n2448 | \\r\\n2449 | \\t/** Returns true if this application is receiving input from the system. This would return false if\\r\\n2450 | \\t* system-related functionality is consuming the input stream. */\\r\\n2451 | \\tvirtual bool IsInputAvailable() = 0;\\r\\n2452 | \\r\\n2453 | \\t/** Returns true SteamVR is drawing controllers on top of the application. Applications should consider\\r\\n2454 | \\t* not drawing anything attached to the user's hands in this case. */\\r\\n2455 | \\tvirtual bool IsSteamVRDrawingControllers() = 0;\\r\\n2456 | \\r\\n2457 | \\t/** Returns true if the user has put SteamVR into a mode that is distracting them from the application.\\r\\n2458 | \\t* For applications where this is appropriate, the application should pause ongoing activity. */\\r\\n2459 | \\tvirtual bool ShouldApplicationPause() = 0;\\r\\n2460 | \\r\\n2461 | \\t/** Returns true if SteamVR is doing significant rendering work and the game should do what it can to reduce\\r\\n2462 | \\t* its own workload. One common way to do this is to reduce the size of the render target provided for each eye. */\\r\\n2463 | \\tvirtual bool ShouldApplicationReduceRenderingWork() = 0;\\r\\n2464 | \\r\\n2465 | \\t// ------------------------------------\\r\\n2466 | \\t// Firmware methods\\r\\n2467 | \\t// ------------------------------------\\r\\n2468 | \\r\\n2469 | \\t/** Performs the actual firmware update if applicable.\\r\\n2470 | \\t * The following events will be sent, if VRFirmwareError_None was returned: VREvent_FirmwareUpdateStarted, VREvent_FirmwareUpdateFinished\\r\\n2471 | \\t * Use the properties Prop_Firmware_UpdateAvailable_Bool, Prop_Firmware_ManualUpdate_Bool, and Prop_Firmware_ManualUpdateURL_String\\r\\n2472 | \\t * to figure our whether a firmware update is available, and to figure out whether its a manual update\\r\\n2473 | \\t * Prop_Firmware_ManualUpdateURL_String should point to an URL describing the manual update process */\\r\\n2474 | \\tvirtual vr::EVRFirmwareError PerformFirmwareUpdate( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0;\\r\\n2475 | \\r\\n2476 | \\t// ------------------------------------\\r\\n2477 | \\t// Application life cycle methods\\r\\n2478 | \\t// ------------------------------------\\r\\n2479 | \\r\\n2480 | \\t/** Call this to acknowledge to the system that VREvent_Quit has been received and that the process is exiting.\\r\\n2481 | \\t* This extends the timeout until the process is killed. */\\r\\n2482 | \\tvirtual void AcknowledgeQuit_Exiting() = 0;\\r\\n2483 | \\r\\n2484 | \\t// -------------------------------------\\r\\n2485 | \\t// App container sandbox methods\\r\\n2486 | \\t// -------------------------------------\\r\\n2487 | \\r\\n2488 | \\t/** Retrieves a null-terminated, semicolon-delimited list of UTF8 file paths that an application\\r\\n2489 | \\t* must have read access to when running inside of an app container. Returns the number of bytes\\r\\n2490 | \\t* needed to hold the list. */\\r\\n2491 | \\tvirtual uint32_t GetAppContainerFilePaths( VR_OUT_STRING() char *pchBuffer, uint32_t unBufferSize ) = 0;\\r\\n2492 | \\r\\n2493 | \\t// -------------------------------------\\r\\n2494 | \\t// System methods\\r\\n2495 | \\t// -------------------------------------\\r\\n2496 | \\r\\n2497 | \\t/** Returns the current version of the SteamVR runtime. The returned string will remain valid until VR_Shutdown is called.\\r\\n2498 | \\t*\\r\\n2499 | \\t* NOTE: Is it not appropriate to use this version to test for the presence of any SteamVR feature. Only use this version\\r\\n2500 | \\t* number for logging or showing to a user, and not to try to detect anything at runtime. When appropriate, feature-specific\\r\\n2501 | \\t* presence information is provided by other APIs. */\\r\\n2502 | \\tvirtual const char *GetRuntimeVersion() = 0;\\r\\n2503 | \\r\\n2504 | };\\r\\n2505 | \\r\\n2506 | static const char * const IVRSystem_Version = \\\"IVRSystem_022\\\";\\r\\n2507 | \\r\\n2508 | }\\r\\n2509 | \\r\\n2510 | \\r\\n2511 | // ivrapplications.h\\r\\n2512 | \\r\\n2513 | namespace vr\\r\\n2514 | {\\r\\n2515 | \\r\\n2516 | \\t/** Used for all errors reported by the IVRApplications interface */\\r\\n2517 | \\tenum EVRApplicationError\\r\\n2518 | \\t{\\r\\n2519 | \\t\\tVRApplicationError_None = 0,\\r\\n2520 | \\r\\n2521 | \\t\\tVRApplicationError_AppKeyAlreadyExists = 100,\\t// Only one application can use any given key\\r\\n2522 | \\t\\tVRApplicationError_NoManifest = 101,\\t\\t\\t// the running application does not have a manifest\\r\\n2523 | \\t\\tVRApplicationError_NoApplication = 102,\\t\\t\\t// No application is running\\r\\n2524 | \\t\\tVRApplicationError_InvalidIndex = 103,\\r\\n2525 | \\t\\tVRApplicationError_UnknownApplication = 104,\\t// the application could not be found\\r\\n2526 | \\t\\tVRApplicationError_IPCFailed = 105,\\t\\t\\t\\t// An IPC failure caused the request to fail\\r\\n2527 | \\t\\tVRApplicationError_ApplicationAlreadyRunning = 106,\\r\\n2528 | \\t\\tVRApplicationError_InvalidManifest = 107,\\r\\n2529 | \\t\\tVRApplicationError_InvalidApplication = 108,\\r\\n2530 | \\t\\tVRApplicationError_LaunchFailed = 109,\\t\\t\\t// the process didn't start\\r\\n2531 | \\t\\tVRApplicationError_ApplicationAlreadyStarting = 110, // the system was already starting the same application\\r\\n2532 | \\t\\tVRApplicationError_LaunchInProgress = 111,\\t\\t// The system was already starting a different application\\r\\n2533 | \\t\\tVRApplicationError_OldApplicationQuitting = 112,\\r\\n2534 | \\t\\tVRApplicationError_TransitionAborted = 113,\\r\\n2535 | \\t\\tVRApplicationError_IsTemplate = 114, // error when you try to call LaunchApplication() on a template type app (use LaunchTemplateApplication)\\r\\n2536 | \\t\\tVRApplicationError_SteamVRIsExiting = 115,\\r\\n2537 | \\r\\n2538 | \\t\\tVRApplicationError_BufferTooSmall = 200,\\t\\t// The provided buffer was too small to fit the requested data\\r\\n2539 | \\t\\tVRApplicationError_PropertyNotSet = 201,\\t\\t// The requested property was not set\\r\\n2540 | \\t\\tVRApplicationError_UnknownProperty = 202,\\r\\n2541 | \\t\\tVRApplicationError_InvalidParameter = 203,\\r\\n2542 | \\r\\n2543 | \\t\\tVRApplicationError_NotImplemented = 300,  // Fcn is not implemented in current interface\\r\\n2544 | \\t};\\r\\n2545 | \\r\\n2546 | \\t/** The maximum length of an application key */\\r\\n2547 | \\tstatic const uint32_t k_unMaxApplicationKeyLength = 128;\\r\\n2548 | \\r\\n2549 | \\t/** these are the properties available on applications. */\\r\\n2550 | \\tenum EVRApplicationProperty\\r\\n2551 | \\t{\\r\\n2552 | \\t\\tVRApplicationProperty_Name_String\\t\\t\\t\\t= 0,\\r\\n2553 | \\r\\n2554 | \\t\\tVRApplicationProperty_LaunchType_String\\t\\t\\t= 11,\\r\\n2555 | \\t\\tVRApplicationProperty_WorkingDirectory_String\\t= 12,\\r\\n2556 | \\t\\tVRApplicationProperty_BinaryPath_String\\t\\t\\t= 13,\\r\\n2557 | \\t\\tVRApplicationProperty_Arguments_String\\t\\t\\t= 14,\\r\\n2558 | \\t\\tVRApplicationProperty_URL_String\\t\\t\\t\\t= 15,\\r\\n2559 | \\r\\n2560 | \\t\\tVRApplicationProperty_Description_String\\t\\t= 50,\\r\\n2561 | \\t\\tVRApplicationProperty_NewsURL_String\\t\\t\\t= 51,\\r\\n2562 | \\t\\tVRApplicationProperty_ImagePath_String\\t\\t\\t= 52,\\r\\n2563 | \\t\\tVRApplicationProperty_Source_String\\t\\t\\t\\t= 53,\\r\\n2564 | \\t\\tVRApplicationProperty_ActionManifestURL_String\\t= 54,\\r\\n2565 | \\r\\n2566 | \\t\\tVRApplicationProperty_IsDashboardOverlay_Bool\\t= 60,\\r\\n2567 | \\t\\tVRApplicationProperty_IsTemplate_Bool\\t\\t\\t= 61,\\r\\n2568 | \\t\\tVRApplicationProperty_IsInstanced_Bool\\t\\t\\t= 62,\\r\\n2569 | \\t\\tVRApplicationProperty_IsInternal_Bool\\t\\t\\t= 63,\\r\\n2570 | \\t\\tVRApplicationProperty_WantsCompositorPauseInStandby_Bool = 64,\\r\\n2571 | \\t\\tVRApplicationProperty_IsHidden_Bool\\t\\t\\t\\t= 65,\\r\\n2572 | \\r\\n2573 | \\t\\tVRApplicationProperty_LastLaunchTime_Uint64\\t\\t= 70,\\r\\n2574 | \\t};\\r\\n2575 | \\r\\n2576 | \\tenum EVRSceneApplicationState\\r\\n2577 | \\t{\\r\\n2578 | \\t\\tEVRSceneApplicationState_None\\t\\t\\t\\t\\t\\t      = 0, // Scene Application is not running\\r\\n2579 | \\t\\tEVRSceneApplicationState_Starting\\t\\t\\t\\t\\t      = 1, // Scene Application is starting\\r\\n2580 | \\t\\tEVRSceneApplicationState_Quitting\\t\\t\\t\\t\\t      = 2, // Scene Application is quitting\\r\\n2581 | \\t\\tEVRSceneApplicationState_Running\\t\\t\\t\\t\\t\\t  = 3, // Scene Application is running, and submitting frames, a custom skybox, or a visible overlay\\r\\n2582 | \\t\\tEVRSceneApplicationState_Waiting\\t\\t\\t\\t\\t\\t  = 4, // Scene Application is running, but not drawing anything\\r\\n2583 | \\t};\\r\\n2584 | \\r\\n2585 | \\tstruct AppOverrideKeys_t\\r\\n2586 | \\t{\\r\\n2587 | \\t\\tconst char *pchKey;\\r\\n2588 | \\t\\tconst char *pchValue;\\r\\n2589 | \\t};\\r\\n2590 | \\r\\n2591 | \\t/** Currently recognized mime types */\\r\\n2592 | \\tstatic const char * const k_pch_MimeType_HomeApp\\t\\t= \\\"vr/home\\\";\\r\\n2593 | \\tstatic const char * const k_pch_MimeType_GameTheater\\t= \\\"vr/game_theater\\\";\\r\\n2594 | \\r\\n2595 | \\tclass IVRApplications\\r\\n2596 | \\t{\\r\\n2597 | \\tpublic:\\r\\n2598 | \\r\\n2599 | \\t\\t// ---------------  Application management  --------------- //\\r\\n2600 | \\r\\n2601 | \\t\\t/** Adds an application manifest to the list to load when building the list of installed applications.\\r\\n2602 | \\t\\t* Temporary manifests are not automatically loaded */\\r\\n2603 | \\t\\tvirtual EVRApplicationError AddApplicationManifest( const char *pchApplicationManifestFullPath, bool bTemporary = false ) = 0;\\r\\n2604 | \\r\\n2605 | \\t\\t/** Removes an application manifest from the list to load when building the list of installed applications. */\\r\\n2606 | \\t\\tvirtual EVRApplicationError RemoveApplicationManifest( const char *pchApplicationManifestFullPath ) = 0;\\r\\n2607 | \\r\\n2608 | \\t\\t/** Returns true if an application is installed */\\r\\n2609 | \\t\\tvirtual bool IsApplicationInstalled( const char *pchAppKey ) = 0;\\r\\n2610 | \\r\\n2611 | \\t\\t/** Returns the number of applications available in the list */\\r\\n2612 | \\t\\tvirtual uint32_t GetApplicationCount() = 0;\\r\\n2613 | \\r\\n2614 | \\t\\t/** Returns the key of the specified application. The index is at least 0 and is less than the return\\r\\n2615 | \\t\\t* value of GetApplicationCount(). The buffer should be at least k_unMaxApplicationKeyLength in order to\\r\\n2616 | \\t\\t* fit the key. */\\r\\n2617 | \\t\\tvirtual EVRApplicationError GetApplicationKeyByIndex( uint32_t unApplicationIndex, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0;\\r\\n2618 | \\r\\n2619 | \\t\\t/** Returns the key of the application for the specified Process Id. The buffer should be at least\\r\\n2620 | \\t\\t* k_unMaxApplicationKeyLength in order to fit the key. */\\r\\n2621 | \\t\\tvirtual EVRApplicationError GetApplicationKeyByProcessId( uint32_t unProcessId, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0;\\r\\n2622 | \\r\\n2623 | \\t\\t/** Launches the application. The existing scene application will exit and then the new application will start.\\r\\n2624 | \\t\\t* This call is not valid for dashboard overlay applications. */\\r\\n2625 | \\t\\tvirtual EVRApplicationError LaunchApplication( const char *pchAppKey ) = 0;\\r\\n2626 | \\r\\n2627 | \\t\\t/** Launches an instance of an application of type template, with its app key being pchNewAppKey (which must be unique) and optionally override sections\\r\\n2628 | \\t\\t* from the manifest file via AppOverrideKeys_t\\r\\n2629 | \\t\\t*/\\r\\n2630 | \\t\\tvirtual EVRApplicationError LaunchTemplateApplication( const char *pchTemplateAppKey, const char *pchNewAppKey, VR_ARRAY_COUNT( unKeys ) const AppOverrideKeys_t *pKeys, uint32_t unKeys ) = 0;\\r\\n2631 | \\r\\n2632 | \\t\\t/** launches the application currently associated with this mime type and passes it the option args, typically the filename or object name of the item being launched */\\r\\n2633 | \\t\\tvirtual vr::EVRApplicationError LaunchApplicationFromMimeType( const char *pchMimeType, const char *pchArgs ) = 0;\\r\\n2634 | \\r\\n2635 | \\t\\t/** Launches the dashboard overlay application if it is not already running. This call is only valid for\\r\\n2636 | \\t\\t* dashboard overlay applications. */\\r\\n2637 | \\t\\tvirtual EVRApplicationError LaunchDashboardOverlay( const char *pchAppKey ) = 0;\\r\\n2638 | \\r\\n2639 | \\t\\t/** Cancel a pending launch for an application */\\r\\n2640 | \\t\\tvirtual bool CancelApplicationLaunch( const char *pchAppKey ) = 0;\\r\\n2641 | \\r\\n2642 | \\t\\t/** Identifies a running application. OpenVR can't always tell which process started in response\\r\\n2643 | \\t\\t* to a URL. This function allows a URL handler (or the process itself) to identify the app key\\r\\n2644 | \\t\\t* for the now running application. Passing a process ID of 0 identifies the calling process.\\r\\n2645 | \\t\\t* The application must be one that's known to the system via a call to AddApplicationManifest. */\\r\\n2646 | \\t\\tvirtual EVRApplicationError IdentifyApplication( uint32_t unProcessId, const char *pchAppKey ) = 0;\\r\\n2647 | \\r\\n2648 | \\t\\t/** Returns the process ID for an application. Return 0 if the application was not found or is not running. */\\r\\n2649 | \\t\\tvirtual uint32_t GetApplicationProcessId( const char *pchAppKey ) = 0;\\r\\n2650 | \\r\\n2651 | \\t\\t/** Returns a string for an applications error */\\r\\n2652 | \\t\\tvirtual const char *GetApplicationsErrorNameFromEnum( EVRApplicationError error ) = 0;\\r\\n2653 | \\r\\n2654 | \\t\\t// ---------------  Application properties  --------------- //\\r\\n2655 | \\r\\n2656 | \\t\\t/** Returns a value for an application property. The required buffer size to fit this value will be returned. */\\r\\n2657 | \\t\\tvirtual uint32_t GetApplicationPropertyString( const char *pchAppKey, EVRApplicationProperty eProperty, VR_OUT_STRING() char *pchPropertyValueBuffer, uint32_t unPropertyValueBufferLen, EVRApplicationError *peError = nullptr ) = 0;\\r\\n2658 | \\r\\n2659 | \\t\\t/** Returns a bool value for an application property. Returns false in all error cases. */\\r\\n2660 | \\t\\tvirtual bool GetApplicationPropertyBool( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) = 0;\\r\\n2661 | \\r\\n2662 | \\t\\t/** Returns a uint64 value for an application property. Returns 0 in all error cases. */\\r\\n2663 | \\t\\tvirtual uint64_t GetApplicationPropertyUint64( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) = 0;\\r\\n2664 | \\r\\n2665 | \\t\\t/** Sets the application auto-launch flag. This is only valid for applications which return true for VRApplicationProperty_IsDashboardOverlay_Bool. */\\r\\n2666 | \\t\\tvirtual EVRApplicationError SetApplicationAutoLaunch( const char *pchAppKey, bool bAutoLaunch ) = 0;\\r\\n2667 | \\r\\n2668 | \\t\\t/** Gets the application auto-launch flag. This is only valid for applications which return true for VRApplicationProperty_IsDashboardOverlay_Bool. */\\r\\n2669 | \\t\\tvirtual bool GetApplicationAutoLaunch( const char *pchAppKey ) = 0;\\r\\n2670 | \\r\\n2671 | \\t\\t/** Adds this mime-type to the list of supported mime types for this application*/\\r\\n2672 | \\t\\tvirtual EVRApplicationError SetDefaultApplicationForMimeType( const char *pchAppKey, const char *pchMimeType ) = 0;\\r\\n2673 | \\r\\n2674 | \\t\\t/** return the app key that will open this mime type */\\r\\n2675 | \\t\\tvirtual bool GetDefaultApplicationForMimeType( const char *pchMimeType, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0;\\r\\n2676 | \\r\\n2677 | \\t\\t/** Get the list of supported mime types for this application, comma-delimited */\\r\\n2678 | \\t\\tvirtual bool GetApplicationSupportedMimeTypes( const char *pchAppKey, VR_OUT_STRING() char *pchMimeTypesBuffer, uint32_t unMimeTypesBuffer ) = 0;\\r\\n2679 | \\r\\n2680 | \\t\\t/** Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string */\\r\\n2681 | \\t\\tvirtual uint32_t GetApplicationsThatSupportMimeType( const char *pchMimeType, VR_OUT_STRING() char *pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer ) = 0;\\r\\n2682 | \\r\\n2683 | \\t\\t/** Get the args list from an app launch that had the process already running, you call this when you get a VREvent_ApplicationMimeTypeLoad */\\r\\n2684 | \\t\\tvirtual uint32_t GetApplicationLaunchArguments( uint32_t unHandle, VR_OUT_STRING() char *pchArgs, uint32_t unArgs ) = 0;\\r\\n2685 | \\r\\n2686 | \\t\\t// ---------------  Transition methods --------------- //\\r\\n2687 | \\r\\n2688 | \\t\\t/** Returns the app key for the application that is starting up */\\r\\n2689 | \\t\\tvirtual EVRApplicationError GetStartingApplication( VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0;\\r\\n2690 | \\r\\n2691 | \\t\\t/** Returns the application transition state */\\r\\n2692 | \\t\\tvirtual EVRSceneApplicationState GetSceneApplicationState() = 0;\\r\\n2693 | \\r\\n2694 | \\t\\t/** Returns errors that would prevent the specified application from launching immediately. Calling this function will\\r\\n2695 | \\t\\t* cause the current scene application to quit, so only call it when you are actually about to launch something else.\\r\\n2696 | \\t\\t* What the caller should do about these failures depends on the failure:\\r\\n2697 | \\t\\t*   VRApplicationError_OldApplicationQuitting - An existing application has been told to quit. Wait for a VREvent_ProcessQuit\\r\\n2698 | \\t\\t*                                               and try again.\\r\\n2699 | \\t\\t*   VRApplicationError_ApplicationAlreadyStarting - This application is already starting. This is a permanent failure.\\r\\n2700 | \\t\\t*   VRApplicationError_LaunchInProgress\\t      - A different application is already starting. This is a permanent failure.\\r\\n2701 | \\t\\t*   VRApplicationError_None                   - Go ahead and launch. Everything is clear.\\r\\n2702 | \\t\\t*/\\r\\n2703 | \\t\\tvirtual EVRApplicationError PerformApplicationPrelaunchCheck( const char *pchAppKey ) = 0;\\r\\n2704 | \\r\\n2705 | \\t\\t/** Returns a string for an application transition state */\\r\\n2706 | \\t\\tvirtual const char *GetSceneApplicationStateNameFromEnum( EVRSceneApplicationState state ) = 0;\\r\\n2707 | \\r\\n2708 | \\t\\t/** Starts a subprocess within the calling application. This\\r\\n2709 | \\t\\t* suppresses all application transition UI and automatically identifies the new executable\\r\\n2710 | \\t\\t* as part of the same application. On success the calling process should exit immediately.\\r\\n2711 | \\t\\t* If working directory is NULL or \\\"\\\" the directory portion of the binary path will be\\r\\n2712 | \\t\\t* the working directory. */\\r\\n2713 | \\t\\tvirtual EVRApplicationError LaunchInternalProcess( const char *pchBinaryPath, const char *pchArguments, const char *pchWorkingDirectory ) = 0;\\r\\n2714 | \\r\\n2715 | \\t\\t/** Returns the current scene process ID according to the application system. A scene process will get scene\\r\\n2716 | \\t\\t* focus once it starts rendering, but it will appear here once it calls VR_Init with the Scene application\\r\\n2717 | \\t\\t* type. */\\r\\n2718 | \\t\\tvirtual uint32_t GetCurrentSceneProcessId() = 0;\\r\\n2719 | \\t};\\r\\n2720 | \\r\\n2721 | \\tstatic const char * const IVRApplications_Version = \\\"IVRApplications_007\\\";\\r\\n2722 | \\r\\n2723 | } // namespace vr\\r\\n2724 | \\r\\n2725 | // ivrsettings.h\\r\\n2726 | \\r\\n2727 | #include <string>\\r\\n2728 | \\r\\n2729 | namespace vr\\r\\n2730 | {\\r\\n2731 | \\tenum EVRSettingsError\\r\\n2732 | \\t{\\r\\n2733 | \\t\\tVRSettingsError_None = 0,\\r\\n2734 | \\t\\tVRSettingsError_IPCFailed = 1,\\r\\n2735 | \\t\\tVRSettingsError_WriteFailed = 2,\\r\\n2736 | \\t\\tVRSettingsError_ReadFailed = 3,\\r\\n2737 | \\t\\tVRSettingsError_JsonParseFailed = 4,\\r\\n2738 | \\t\\tVRSettingsError_UnsetSettingHasNoDefault = 5, // This will be returned if the setting does not appear in the appropriate default file and has not been set\\r\\n2739 | \\t\\tVRSettingsError_AccessDenied = 6,\\r\\n2740 | \\t};\\r\\n2741 | \\r\\n2742 | \\t// The maximum length of a settings key\\r\\n2743 | \\tstatic const uint32_t k_unMaxSettingsKeyLength = 128;\\r\\n2744 | \\r\\n2745 | \\tclass IVRSettings\\r\\n2746 | \\t{\\r\\n2747 | \\tpublic:\\r\\n2748 | \\t\\tvirtual const char *GetSettingsErrorNameFromEnum( EVRSettingsError eError ) = 0;\\r\\n2749 | \\r\\n2750 | \\t\\tvirtual void SetBool( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2751 | \\t\\tvirtual void SetInt32( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2752 | \\t\\tvirtual void SetFloat( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2753 | \\t\\tvirtual void SetString( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2754 | \\r\\n2755 | \\t\\t// Users of the system need to provide a proper default in default.vrsettings in the resources/settings/ directory\\r\\n2756 | \\t\\t// of either the runtime or the driver_xxx directory. Otherwise the default will be false, 0, 0.0 or \\\"\\\"\\r\\n2757 | \\t\\tvirtual bool GetBool( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2758 | \\t\\tvirtual int32_t GetInt32( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2759 | \\t\\tvirtual float GetFloat( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2760 | \\t\\tvirtual void GetString( const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2761 | \\r\\n2762 | \\t\\tvirtual void RemoveSection( const char *pchSection, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2763 | \\t\\tvirtual void RemoveKeyInSection( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0;\\r\\n2764 | \\t};\\r\\n2765 | \\r\\n2766 | \\t//-----------------------------------------------------------------------------\\r\\n2767 | \\tstatic const char * const IVRSettings_Version = \\\"IVRSettings_003\\\";\\r\\n2768 | \\r\\n2769 | \\tclass CVRSettingHelper\\r\\n2770 | \\t{\\r\\n2771 | \\t\\tIVRSettings *m_pSettings;\\r\\n2772 | \\tpublic:\\r\\n2773 | \\t\\tCVRSettingHelper( IVRSettings *pSettings )\\r\\n2774 | \\t\\t{\\r\\n2775 | \\t\\t\\tm_pSettings = pSettings;\\r\\n2776 | \\t\\t}\\r\\n2777 | \\r\\n2778 | \\t\\tconst char *GetSettingsErrorNameFromEnum( EVRSettingsError eError )\\r\\n2779 | \\t\\t{\\r\\n2780 | \\t\\t\\treturn m_pSettings->GetSettingsErrorNameFromEnum( eError );\\r\\n2781 | \\t\\t}\\r\\n2782 | \\r\\n2783 | \\t\\tvoid SetBool( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError = nullptr )\\r\\n2784 | \\t\\t{\\r\\n2785 | \\t\\t\\tm_pSettings->SetBool( pchSection, pchSettingsKey, bValue, peError );\\r\\n2786 | \\t\\t}\\r\\n2787 | \\r\\n2788 | \\t\\tvoid SetInt32( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError = nullptr )\\r\\n2789 | \\t\\t{\\r\\n2790 | \\t\\t\\tm_pSettings->SetInt32( pchSection, pchSettingsKey, nValue, peError );\\r\\n2791 | \\t\\t}\\r\\n2792 | \\t\\tvoid SetFloat( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError = nullptr )\\r\\n2793 | \\t\\t{\\r\\n2794 | \\t\\t\\tm_pSettings->SetFloat( pchSection, pchSettingsKey, flValue, peError );\\r\\n2795 | \\t\\t}\\r\\n2796 | \\t\\tvoid SetString( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError = nullptr )\\r\\n2797 | \\t\\t{\\r\\n2798 | \\t\\t\\tm_pSettings->SetString( pchSection, pchSettingsKey, pchValue, peError );\\r\\n2799 | \\t\\t}\\r\\n2800 | \\t\\tvoid SetString( const std::string & sSection, const std::string &  sSettingsKey, const std::string & sValue, EVRSettingsError *peError = nullptr )\\r\\n2801 | \\t\\t{\\r\\n2802 | \\t\\t\\tm_pSettings->SetString( sSection.c_str(), sSettingsKey.c_str(), sValue.c_str(), peError );\\r\\n2803 | \\t\\t}\\r\\n2804 | \\r\\n2805 | \\t\\tbool GetBool( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr )\\r\\n2806 | \\t\\t{\\r\\n2807 | \\t\\t\\treturn m_pSettings->GetBool( pchSection, pchSettingsKey, peError );\\r\\n2808 | \\t\\t}\\r\\n2809 | \\t\\tint32_t GetInt32( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr )\\r\\n2810 | \\t\\t{\\r\\n2811 | \\t\\t\\treturn m_pSettings->GetInt32( pchSection, pchSettingsKey, peError );\\r\\n2812 | \\t\\t}\\r\\n2813 | \\t\\tfloat GetFloat( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr )\\r\\n2814 | \\t\\t{\\r\\n2815 | \\t\\t\\treturn m_pSettings->GetFloat( pchSection, pchSettingsKey, peError );\\r\\n2816 | \\t\\t}\\r\\n2817 | \\t\\tvoid GetString( const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError = nullptr )\\r\\n2818 | \\t\\t{\\r\\n2819 | \\t\\t\\tm_pSettings->GetString( pchSection, pchSettingsKey, pchValue, unValueLen, peError );\\r\\n2820 | \\t\\t}\\r\\n2821 | \\t\\tstd::string GetString( const std::string & sSection, const std::string & sSettingsKey, EVRSettingsError *peError = nullptr )\\r\\n2822 | \\t\\t{\\r\\n2823 | \\t\\t\\tchar buf[4096];\\r\\n2824 | \\t\\t\\tvr::EVRSettingsError eError;\\r\\n2825 | \\t\\t\\tm_pSettings->GetString( sSection.c_str(), sSettingsKey.c_str(), buf, sizeof( buf ), &eError );\\r\\n2826 | \\t\\t\\tif ( peError )\\r\\n2827 | \\t\\t\\t\\t*peError = eError;\\r\\n2828 | \\t\\t\\tif ( eError == vr::VRSettingsError_None )\\r\\n2829 | \\t\\t\\t\\treturn buf;\\r\\n2830 | \\t\\t\\telse\\r\\n2831 | \\t\\t\\t\\treturn \\\"\\\";\\r\\n2832 | \\t\\t}\\r\\n2833 | \\r\\n2834 | \\t\\tvoid RemoveSection( const char *pchSection, EVRSettingsError *peError = nullptr )\\r\\n2835 | \\t\\t{\\r\\n2836 | \\t\\t\\tm_pSettings->RemoveSection( pchSection, peError );\\r\\n2837 | \\t\\t}\\r\\n2838 | \\t\\tvoid RemoveKeyInSection( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr )\\r\\n2839 | \\t\\t{\\r\\n2840 | \\t\\t\\tm_pSettings->RemoveKeyInSection( pchSection, pchSettingsKey, peError );\\r\\n2841 | \\t\\t}\\r\\n2842 | \\t};\\r\\n2843 | \\r\\n2844 | \\r\\n2845 | \\t//-----------------------------------------------------------------------------\\r\\n2846 | \\t// steamvr keys\\r\\n2847 | \\tstatic const char * const k_pch_SteamVR_Section = \\\"steamvr\\\";\\r\\n2848 | \\tstatic const char * const k_pch_SteamVR_RequireHmd_String = \\\"requireHmd\\\";\\r\\n2849 | \\tstatic const char * const k_pch_SteamVR_ForcedDriverKey_String = \\\"forcedDriver\\\";\\r\\n2850 | \\tstatic const char * const k_pch_SteamVR_ForcedHmdKey_String = \\\"forcedHmd\\\";\\r\\n2851 | \\tstatic const char * const k_pch_SteamVR_DisplayDebug_Bool = \\\"displayDebug\\\";\\r\\n2852 | \\tstatic const char * const k_pch_SteamVR_DebugProcessPipe_String = \\\"debugProcessPipe\\\";\\r\\n2853 | \\tstatic const char * const k_pch_SteamVR_DisplayDebugX_Int32 = \\\"displayDebugX\\\";\\r\\n2854 | \\tstatic const char * const k_pch_SteamVR_DisplayDebugY_Int32 = \\\"displayDebugY\\\";\\r\\n2855 | \\tstatic const char * const k_pch_SteamVR_SendSystemButtonToAllApps_Bool= \\\"sendSystemButtonToAllApps\\\";\\r\\n2856 | \\tstatic const char * const k_pch_SteamVR_LogLevel_Int32 = \\\"loglevel\\\";\\r\\n2857 | \\tstatic const char * const k_pch_SteamVR_IPD_Float = \\\"ipd\\\";\\r\\n2858 | \\tstatic const char * const k_pch_SteamVR_Background_String = \\\"background\\\";\\r\\n2859 | \\tstatic const char * const k_pch_SteamVR_BackgroundUseDomeProjection_Bool = \\\"backgroundUseDomeProjection\\\";\\r\\n2860 | \\tstatic const char * const k_pch_SteamVR_BackgroundCameraHeight_Float = \\\"backgroundCameraHeight\\\";\\r\\n2861 | \\tstatic const char * const k_pch_SteamVR_BackgroundDomeRadius_Float = \\\"backgroundDomeRadius\\\";\\r\\n2862 | \\tstatic const char * const k_pch_SteamVR_GridColor_String = \\\"gridColor\\\";\\r\\n2863 | \\tstatic const char * const k_pch_SteamVR_PlayAreaColor_String = \\\"playAreaColor\\\";\\r\\n2864 | \\tstatic const char * const k_pch_SteamVR_TrackingLossColor_String = \\\"trackingLossColor\\\";\\r\\n2865 | \\tstatic const char * const k_pch_SteamVR_ShowStage_Bool = \\\"showStage\\\";\\r\\n2866 | \\tstatic const char * const k_pch_SteamVR_DrawTrackingReferences_Bool = \\\"drawTrackingReferences\\\";\\r\\n2867 | \\tstatic const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = \\\"activateMultipleDrivers\\\";\\r\\n2868 | \\tstatic const char * const k_pch_SteamVR_UsingSpeakers_Bool = \\\"usingSpeakers\\\";\\r\\n2869 | \\tstatic const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = \\\"speakersForwardYawOffsetDegrees\\\";\\r\\n2870 | \\tstatic const char * const k_pch_SteamVR_BaseStationPowerManagement_Int32 = \\\"basestationPowerManagement\\\";\\r\\n2871 | \\tstatic const char * const k_pch_SteamVR_ShowBaseStationPowerManagementTip_Int32 = \\\"ShowBaseStationPowerManagementTip\\\";\\r\\n2872 | \\tstatic const char * const k_pch_SteamVR_NeverKillProcesses_Bool = \\\"neverKillProcesses\\\";\\r\\n2873 | \\tstatic const char * const k_pch_SteamVR_SupersampleScale_Float = \\\"supersampleScale\\\";\\r\\n2874 | \\tstatic const char * const k_pch_SteamVR_MaxRecommendedResolution_Int32 = \\\"maxRecommendedResolution\\\";\\r\\n2875 | \\tstatic const char * const k_pch_SteamVR_MotionSmoothing_Bool = \\\"motionSmoothing\\\";\\r\\n2876 | \\tstatic const char * const k_pch_SteamVR_MotionSmoothingOverride_Int32 = \\\"motionSmoothingOverride\\\";\\r\\n2877 | \\tstatic const char * const k_pch_SteamVR_FramesToThrottle_Int32 = \\\"framesToThrottle\\\";\\r\\n2878 | \\tstatic const char * const k_pch_SteamVR_AdditionalFramesToPredict_Int32 = \\\"additionalFramesToPredict\\\";\\r\\n2879 | \\tstatic const char * const k_pch_SteamVR_WorldScale_Float = \\\"worldScale\\\";\\r\\n2880 | \\tstatic const char * const k_pch_SteamVR_FovScale_Int32 = \\\"fovScale\\\";\\r\\n2881 | \\tstatic const char * const k_pch_SteamVR_FovScaleLetterboxed_Bool = \\\"fovScaleLetterboxed\\\";\\r\\n2882 | \\tstatic const char * const k_pch_SteamVR_DisableAsyncReprojection_Bool = \\\"disableAsync\\\";\\r\\n2883 | \\tstatic const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = \\\"forceFadeOnBadTracking\\\";\\r\\n2884 | \\tstatic const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = \\\"mirrorView\\\";\\r\\n2885 | \\tstatic const char * const k_pch_SteamVR_ShowLegacyMirrorView_Bool = \\\"showLegacyMirrorView\\\";\\r\\n2886 | \\tstatic const char * const k_pch_SteamVR_MirrorViewVisibility_Bool = \\\"showMirrorView\\\";\\r\\n2887 | \\tstatic const char * const k_pch_SteamVR_MirrorViewDisplayMode_Int32 = \\\"mirrorViewDisplayMode\\\";\\r\\n2888 | \\tstatic const char * const k_pch_SteamVR_MirrorViewEye_Int32 = \\\"mirrorViewEye\\\";\\r\\n2889 | \\tstatic const char * const k_pch_SteamVR_MirrorViewGeometry_String = \\\"mirrorViewGeometry\\\";\\r\\n2890 | \\tstatic const char * const k_pch_SteamVR_MirrorViewGeometryMaximized_String = \\\"mirrorViewGeometryMaximized\\\";\\r\\n2891 | \\tstatic const char * const k_pch_SteamVR_PerfGraphVisibility_Bool = \\\"showPerfGraph\\\";\\r\\n2892 | \\tstatic const char * const k_pch_SteamVR_StartMonitorFromAppLaunch = \\\"startMonitorFromAppLaunch\\\";\\r\\n2893 | \\tstatic const char * const k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = \\\"startCompositorFromAppLaunch\\\";\\r\\n2894 | \\tstatic const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = \\\"startDashboardFromAppLaunch\\\";\\r\\n2895 | \\tstatic const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = \\\"startOverlayAppsFromDashboard\\\";\\r\\n2896 | \\tstatic const char * const k_pch_SteamVR_EnableHomeApp = \\\"enableHomeApp\\\";\\r\\n2897 | \\tstatic const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = \\\"CycleBackgroundImageTimeSec\\\";\\r\\n2898 | \\tstatic const char * const k_pch_SteamVR_RetailDemo_Bool = \\\"retailDemo\\\";\\r\\n2899 | \\tstatic const char * const k_pch_SteamVR_IpdOffset_Float = \\\"ipdOffset\\\";\\r\\n2900 | \\tstatic const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = \\\"allowSupersampleFiltering\\\";\\r\\n2901 | \\tstatic const char * const k_pch_SteamVR_SupersampleManualOverride_Bool = \\\"supersampleManualOverride\\\";\\r\\n2902 | \\tstatic const char * const k_pch_SteamVR_EnableLinuxVulkanAsync_Bool = \\\"enableLinuxVulkanAsync\\\";\\r\\n2903 | \\tstatic const char * const k_pch_SteamVR_AllowDisplayLockedMode_Bool = \\\"allowDisplayLockedMode\\\";\\r\\n2904 | \\tstatic const char * const k_pch_SteamVR_HaveStartedTutorialForNativeChaperoneDriver_Bool = \\\"haveStartedTutorialForNativeChaperoneDriver\\\";\\r\\n2905 | \\tstatic const char * const k_pch_SteamVR_ForceWindows32bitVRMonitor = \\\"forceWindows32BitVRMonitor\\\";\\r\\n2906 | \\tstatic const char * const k_pch_SteamVR_DebugInputBinding = \\\"debugInputBinding\\\";\\r\\n2907 | \\tstatic const char * const k_pch_SteamVR_DoNotFadeToGrid = \\\"doNotFadeToGrid\\\";\\r\\n2908 | \\tstatic const char * const k_pch_SteamVR_EnableSharedResourceJournaling = \\\"enableSharedResourceJournaling\\\";\\r\\n2909 | \\tstatic const char * const k_pch_SteamVR_EnableSafeMode = \\\"enableSafeMode\\\";\\r\\n2910 | \\tstatic const char * const k_pch_SteamVR_PreferredRefreshRate = \\\"preferredRefreshRate\\\";\\r\\n2911 | \\tstatic const char * const k_pch_SteamVR_LastVersionNotice = \\\"lastVersionNotice\\\";\\r\\n2912 | \\tstatic const char * const k_pch_SteamVR_LastVersionNoticeDate = \\\"lastVersionNoticeDate\\\";\\r\\n2913 | \\tstatic const char * const k_pch_SteamVR_HmdDisplayColorGainR_Float = \\\"hmdDisplayColorGainR\\\";\\r\\n2914 | \\tstatic const char * const k_pch_SteamVR_HmdDisplayColorGainG_Float = \\\"hmdDisplayColorGainG\\\";\\r\\n2915 | \\tstatic const char * const k_pch_SteamVR_HmdDisplayColorGainB_Float = \\\"hmdDisplayColorGainB\\\";\\r\\n2916 | \\tstatic const char * const k_pch_SteamVR_CustomIconStyle_String = \\\"customIconStyle\\\";\\r\\n2917 | \\tstatic const char * const k_pch_SteamVR_CustomOffIconStyle_String = \\\"customOffIconStyle\\\";\\r\\n2918 | \\tstatic const char * const k_pch_SteamVR_CustomIconForceUpdate_String = \\\"customIconForceUpdate\\\";\\r\\n2919 | \\tstatic const char * const k_pch_SteamVR_AllowGlobalActionSetPriority = \\\"globalActionSetPriority\\\";\\r\\n2920 | \\tstatic const char * const k_pch_SteamVR_OverlayRenderQuality = \\\"overlayRenderQuality_2\\\";\\r\\n2921 | \\tstatic const char * const k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = \\\"blockOculusSDKOnOpenVRLaunchOption\\\";\\r\\n2922 | \\tstatic const char * const k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = \\\"blockOculusSDKOnAllLaunches\\\";\\r\\n2923 | \\tstatic const char * const k_pch_SteamVR_HDCPLegacyCompatibility_Bool = \\\"hdcp14legacyCompatibility\\\";\\r\\n2924 | \\tstatic const char * const k_pch_SteamVR_DisplayPortTrainingMode_Int = \\\"displayPortTrainingMode\\\";\\r\\n2925 | \\tstatic const char * const k_pch_SteamVR_UsePrism_Bool = \\\"usePrism\\\";\\r\\n2926 | \\tstatic const char * const k_pch_SteamVR_AllowFallbackMirrorWindowLinux_Bool = \\\"allowFallbackMirrorWindowLinux\\\";\\r\\n2927 | \\r\\n2928 | \\t//-----------------------------------------------------------------------------\\r\\n2929 | \\t// openxr keys\\r\\n2930 | \\tstatic const char * const k_pch_OpenXR_Section = \\\"openxr\\\";\\r\\n2931 | \\tstatic const char * const k_pch_OpenXR_MetaUnityPluginCompatibility_Int32 = \\\"metaUnityPluginCompatibility\\\";\\r\\n2932 | \\r\\n2933 | \\t//-----------------------------------------------------------------------------\\r\\n2934 | \\t// direct mode keys\\r\\n2935 | \\tstatic const char * const k_pch_DirectMode_Section = \\\"direct_mode\\\";\\r\\n2936 | \\tstatic const char * const k_pch_DirectMode_Enable_Bool = \\\"enable\\\";\\r\\n2937 | \\tstatic const char * const k_pch_DirectMode_Count_Int32 = \\\"count\\\";\\r\\n2938 | \\tstatic const char * const k_pch_DirectMode_EdidVid_Int32 = \\\"edidVid\\\";\\r\\n2939 | \\tstatic const char * const k_pch_DirectMode_EdidPid_Int32 = \\\"edidPid\\\";\\r\\n2940 | \\r\\n2941 | \\t//-----------------------------------------------------------------------------\\r\\n2942 | \\t// lighthouse keys\\r\\n2943 | \\tstatic const char * const k_pch_Lighthouse_Section = \\\"driver_lighthouse\\\";\\r\\n2944 | \\tstatic const char * const k_pch_Lighthouse_DisableIMU_Bool = \\\"disableimu\\\";\\r\\n2945 | \\tstatic const char * const k_pch_Lighthouse_DisableIMUExceptHMD_Bool = \\\"disableimuexcepthmd\\\";\\r\\n2946 | \\tstatic const char * const k_pch_Lighthouse_UseDisambiguation_String = \\\"usedisambiguation\\\";\\r\\n2947 | \\tstatic const char * const k_pch_Lighthouse_DisambiguationDebug_Int32 = \\\"disambiguationdebug\\\";\\r\\n2948 | \\tstatic const char * const k_pch_Lighthouse_PrimaryBasestation_Int32 = \\\"primarybasestation\\\";\\r\\n2949 | \\tstatic const char * const k_pch_Lighthouse_DBHistory_Bool = \\\"dbhistory\\\";\\r\\n2950 | \\tstatic const char * const k_pch_Lighthouse_EnableBluetooth_Bool = \\\"enableBluetooth\\\";\\r\\n2951 | \\tstatic const char * const k_pch_Lighthouse_PowerManagedBaseStations_String = \\\"PowerManagedBaseStations\\\";\\r\\n2952 | \\tstatic const char * const k_pch_Lighthouse_PowerManagedBaseStations2_String = \\\"PowerManagedBaseStations2\\\";\\r\\n2953 | \\tstatic const char * const k_pch_Lighthouse_InactivityTimeoutForBaseStations_Int32 = \\\"InactivityTimeoutForBaseStations\\\";\\r\\n2954 | \\tstatic const char * const k_pch_Lighthouse_EnableImuFallback_Bool = \\\"enableImuFallback\\\";\\r\\n2955 | \\r\\n2956 | \\t//-----------------------------------------------------------------------------\\r\\n2957 | \\t// null keys\\r\\n2958 | \\tstatic const char * const k_pch_Null_Section = \\\"driver_null\\\";\\r\\n2959 | \\tstatic const char * const k_pch_Null_SerialNumber_String = \\\"serialNumber\\\";\\r\\n2960 | \\tstatic const char * const k_pch_Null_ModelNumber_String = \\\"modelNumber\\\";\\r\\n2961 | \\tstatic const char * const k_pch_Null_WindowX_Int32 = \\\"windowX\\\";\\r\\n2962 | \\tstatic const char * const k_pch_Null_WindowY_Int32 = \\\"windowY\\\";\\r\\n2963 | \\tstatic const char * const k_pch_Null_WindowWidth_Int32 = \\\"windowWidth\\\";\\r\\n2964 | \\tstatic const char * const k_pch_Null_WindowHeight_Int32 = \\\"windowHeight\\\";\\r\\n2965 | \\tstatic const char * const k_pch_Null_RenderWidth_Int32 = \\\"renderWidth\\\";\\r\\n2966 | \\tstatic const char * const k_pch_Null_RenderHeight_Int32 = \\\"renderHeight\\\";\\r\\n2967 | \\tstatic const char * const k_pch_Null_SecondsFromVsyncToPhotons_Float = \\\"secondsFromVsyncToPhotons\\\";\\r\\n2968 | \\tstatic const char * const k_pch_Null_DisplayFrequency_Float = \\\"displayFrequency\\\";\\r\\n2969 | \\r\\n2970 | \\t//-----------------------------------------------------------------------------\\r\\n2971 | \\t// Windows MR keys\\r\\n2972 | \\tstatic const char * const k_pch_WindowsMR_Section = \\\"driver_holographic\\\";\\r\\n2973 | \\r\\n2974 | \\t//-----------------------------------------------------------------------------\\r\\n2975 | \\t// user interface keys\\r\\n2976 | \\tstatic const char * const k_pch_UserInterface_Section = \\\"userinterface\\\";\\r\\n2977 | \\tstatic const char * const k_pch_UserInterface_StatusAlwaysOnTop_Bool = \\\"StatusAlwaysOnTop\\\";\\r\\n2978 | \\tstatic const char * const k_pch_UserInterface_MinimizeToTray_Bool = \\\"MinimizeToTray\\\";\\r\\n2979 | \\tstatic const char * const k_pch_UserInterface_HidePopupsWhenStatusMinimized_Bool = \\\"HidePopupsWhenStatusMinimized\\\";\\r\\n2980 | \\tstatic const char * const k_pch_UserInterface_Screenshots_Bool = \\\"screenshots\\\";\\r\\n2981 | \\tstatic const char * const k_pch_UserInterface_ScreenshotType_Int = \\\"screenshotType\\\";\\r\\n2982 | \\r\\n2983 | \\t//-----------------------------------------------------------------------------\\r\\n2984 | \\t// notification keys\\r\\n2985 | \\tstatic const char * const k_pch_Notifications_Section = \\\"notifications\\\";\\r\\n2986 | \\tstatic const char * const k_pch_Notifications_DoNotDisturb_Bool = \\\"DoNotDisturb\\\";\\r\\n2987 | \\r\\n2988 | \\t//-----------------------------------------------------------------------------\\r\\n2989 | \\t// keyboard keys\\r\\n2990 | \\tstatic const char * const k_pch_Keyboard_Section = \\\"keyboard\\\";\\r\\n2991 | \\tstatic const char * const k_pch_Keyboard_TutorialCompletions = \\\"TutorialCompletions\\\";\\r\\n2992 | \\tstatic const char * const k_pch_Keyboard_ScaleX = \\\"ScaleX\\\";\\r\\n2993 | \\tstatic const char * const k_pch_Keyboard_ScaleY = \\\"ScaleY\\\";\\r\\n2994 | \\tstatic const char * const k_pch_Keyboard_OffsetLeftX = \\\"OffsetLeftX\\\";\\r\\n2995 | \\tstatic const char * const k_pch_Keyboard_OffsetRightX = \\\"OffsetRightX\\\";\\r\\n2996 | \\tstatic const char * const k_pch_Keyboard_OffsetY = \\\"OffsetY\\\";\\r\\n2997 | \\tstatic const char * const k_pch_Keyboard_Smoothing = \\\"Smoothing\\\";\\r\\n2998 | \\r\\n2999 | \\t//-----------------------------------------------------------------------------\\r\\n3000 | \\t// perf keys\\r\\n3001 | \\tstatic const char * const k_pch_Perf_Section = \\\"perfcheck\\\";\\r\\n3002 | \\tstatic const char * const k_pch_Perf_PerfGraphInHMD_Bool = \\\"perfGraphInHMD\\\";\\r\\n3003 | \\tstatic const char * const k_pch_Perf_AllowTimingStore_Bool = \\\"allowTimingStore\\\";\\r\\n3004 | \\tstatic const char * const k_pch_Perf_SaveTimingsOnExit_Bool = \\\"saveTimingsOnExit\\\";\\r\\n3005 | \\tstatic const char * const k_pch_Perf_TestData_Float = \\\"perfTestData\\\";\\r\\n3006 | \\tstatic const char * const k_pch_Perf_GPUProfiling_Bool = \\\"GPUProfiling\\\";\\r\\n3007 | \\tstatic const char * const k_pch_Perf_GpuBusMonitoring_Bool = \\\"gpuBusMonitoring\\\";\\r\\n3008 | \\r\\n3009 | \\t//-----------------------------------------------------------------------------\\r\\n3010 | \\t// collision bounds keys\\r\\n3011 | \\tstatic const char * const k_pch_CollisionBounds_Section = \\\"collisionBounds\\\";\\r\\n3012 | \\tstatic const char * const k_pch_CollisionBounds_Style_Int32 = \\\"CollisionBoundsStyle\\\";\\r\\n3013 | \\tstatic const char * const k_pch_CollisionBounds_GroundPerimeterOn_Bool = \\\"CollisionBoundsGroundPerimeterOn\\\";\\r\\n3014 | \\tstatic const char * const k_pch_CollisionBounds_CenterMarkerOn_Bool = \\\"CollisionBoundsCenterMarkerOn\\\";\\r\\n3015 | \\tstatic const char * const k_pch_CollisionBounds_PlaySpaceOn_Bool = \\\"CollisionBoundsPlaySpaceOn\\\";\\r\\n3016 | \\tstatic const char * const k_pch_CollisionBounds_FadeDistance_Float = \\\"CollisionBoundsFadeDistance\\\";\\r\\n3017 | \\tstatic const char * const k_pch_CollisionBounds_WallHeight_Float = \\\"CollisionBoundsWallHeight\\\";\\r\\n3018 | \\tstatic const char * const k_pch_CollisionBounds_ColorGammaR_Int32 = \\\"CollisionBoundsColorGammaR\\\";\\r\\n3019 | \\tstatic const char * const k_pch_CollisionBounds_ColorGammaG_Int32 = \\\"CollisionBoundsColorGammaG\\\";\\r\\n3020 | \\tstatic const char * const k_pch_CollisionBounds_ColorGammaB_Int32 = \\\"CollisionBoundsColorGammaB\\\";\\r\\n3021 | \\tstatic const char * const k_pch_CollisionBounds_ColorGammaA_Int32 = \\\"CollisionBoundsColorGammaA\\\";\\r\\n3022 | \\tstatic const char * const k_pch_CollisionBounds_EnableDriverImport = \\\"enableDriverBoundsImport\\\";\\r\\n3023 | \\r\\n3024 | \\t//-----------------------------------------------------------------------------\\r\\n3025 | \\t// camera keys\\r\\n3026 | \\tstatic const char * const k_pch_Camera_Section = \\\"camera\\\";\\r\\n3027 | \\tstatic const char * const k_pch_Camera_EnableCamera_Bool = \\\"enableCamera\\\";\\r\\n3028 | \\tstatic const char * const k_pch_Camera_ShowOnController_Bool = \\\"showOnController\\\";\\r\\n3029 | \\tstatic const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = \\\"enableCameraForCollisionBounds\\\";\\r\\n3030 | \\tstatic const char * const k_pch_Camera_RoomView_Int32 = \\\"roomView\\\";\\r\\n3031 | \\tstatic const char * const k_pch_Camera_BoundsColorGammaR_Int32 = \\\"cameraBoundsColorGammaR\\\";\\r\\n3032 | \\tstatic const char * const k_pch_Camera_BoundsColorGammaG_Int32 = \\\"cameraBoundsColorGammaG\\\";\\r\\n3033 | \\tstatic const char * const k_pch_Camera_BoundsColorGammaB_Int32 = \\\"cameraBoundsColorGammaB\\\";\\r\\n3034 | \\tstatic const char * const k_pch_Camera_BoundsColorGammaA_Int32 = \\\"cameraBoundsColorGammaA\\\";\\r\\n3035 | \\tstatic const char * const k_pch_Camera_BoundsStrength_Int32 = \\\"cameraBoundsStrength\\\";\\r\\n3036 | \\tstatic const char * const k_pch_Camera_RoomViewStyle_Int32 = \\\"roomViewStyle\\\";\\r\\n3037 | \\r\\n3038 | \\t//-----------------------------------------------------------------------------\\r\\n3039 | \\t// audio keys\\r\\n3040 | \\tstatic const char * const k_pch_audio_Section = \\\"audio\\\";\\r\\n3041 | \\tstatic const char * const k_pch_audio_SetOsDefaultPlaybackDevice_Bool = \\\"setOsDefaultPlaybackDevice\\\";\\r\\n3042 | \\tstatic const char * const k_pch_audio_EnablePlaybackDeviceOverride_Bool = \\\"enablePlaybackDeviceOverride\\\";\\r\\n3043 | \\tstatic const char * const k_pch_audio_PlaybackDeviceOverride_String = \\\"playbackDeviceOverride\\\";\\r\\n3044 | \\tstatic const char * const k_pch_audio_PlaybackDeviceOverrideName_String = \\\"playbackDeviceOverrideName\\\";\\r\\n3045 | \\tstatic const char * const k_pch_audio_SetOsDefaultRecordingDevice_Bool = \\\"setOsDefaultRecordingDevice\\\";\\r\\n3046 | \\tstatic const char * const k_pch_audio_EnableRecordingDeviceOverride_Bool = \\\"enableRecordingDeviceOverride\\\";\\r\\n3047 | \\tstatic const char * const k_pch_audio_RecordingDeviceOverride_String = \\\"recordingDeviceOverride\\\";\\r\\n3048 | \\tstatic const char * const k_pch_audio_RecordingDeviceOverrideName_String = \\\"recordingDeviceOverrideName\\\";\\r\\n3049 | \\tstatic const char * const k_pch_audio_EnablePlaybackMirror_Bool = \\\"enablePlaybackMirror\\\";\\r\\n3050 | \\tstatic const char * const k_pch_audio_PlaybackMirrorDevice_String = \\\"playbackMirrorDevice\\\";\\r\\n3051 | \\tstatic const char * const k_pch_audio_PlaybackMirrorDeviceName_String = \\\"playbackMirrorDeviceName\\\";\\r\\n3052 | \\tstatic const char * const k_pch_audio_OldPlaybackMirrorDevice_String = \\\"onPlaybackMirrorDevice\\\";\\r\\n3053 | \\tstatic const char * const k_pch_audio_ActiveMirrorDevice_String = \\\"activePlaybackMirrorDevice\\\";\\r\\n3054 | \\tstatic const char * const k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = \\\"enablePlaybackMirrorIndependentVolume\\\";\\r\\n3055 | \\tstatic const char * const k_pch_audio_LastHmdPlaybackDeviceId_String = \\\"lastHmdPlaybackDeviceId\\\";\\r\\n3056 | \\tstatic const char * const k_pch_audio_VIVEHDMIGain = \\\"viveHDMIGain\\\";\\r\\n3057 | \\tstatic const char * const k_pch_audio_DualSpeakerAndJackOutput_Bool = \\\"dualSpeakerAndJackOutput\\\";\\r\\n3058 | \\tstatic const char * const k_pch_audio_MuteMicMonitor_Bool = \\\"muteMicMonitor\\\";\\r\\n3059 | \\r\\n3060 | \\t//-----------------------------------------------------------------------------\\r\\n3061 | \\t// power management keys\\r\\n3062 | \\tstatic const char * const k_pch_Power_Section = \\\"power\\\";\\r\\n3063 | \\tstatic const char * const k_pch_Power_PowerOffOnExit_Bool = \\\"powerOffOnExit\\\";\\r\\n3064 | \\tstatic const char * const k_pch_Power_TurnOffScreensTimeout_Float = \\\"turnOffScreensTimeout\\\";\\r\\n3065 | \\tstatic const char * const k_pch_Power_TurnOffControllersTimeout_Float = \\\"turnOffControllersTimeout\\\";\\r\\n3066 | \\tstatic const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = \\\"returnToWatchdogTimeout\\\";\\r\\n3067 | \\tstatic const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = \\\"autoLaunchSteamVROnButtonPress\\\";\\r\\n3068 | \\tstatic const char * const k_pch_Power_PauseCompositorOnStandby_Bool = \\\"pauseCompositorOnStandby\\\";\\r\\n3069 | \\r\\n3070 | \\t//-----------------------------------------------------------------------------\\r\\n3071 | \\t// dashboard keys\\r\\n3072 | \\tstatic const char * const k_pch_Dashboard_Section = \\\"dashboard\\\";\\r\\n3073 | \\tstatic const char * const k_pch_Dashboard_EnableDashboard_Bool = \\\"enableDashboard\\\";\\r\\n3074 | \\tstatic const char * const k_pch_Dashboard_ArcadeMode_Bool = \\\"arcadeMode\\\";\\r\\n3075 | \\tstatic const char * const k_pch_Dashboard_Position = \\\"position\\\";\\r\\n3076 | \\tstatic const char * const k_pch_Dashboard_DesktopScale = \\\"desktopScale\\\";\\r\\n3077 | \\tstatic const char * const k_pch_Dashboard_DashboardScale = \\\"dashboardScale\\\";\\r\\n3078 | \\tstatic const char * const k_pch_Dashboard_UseStandaloneSystemLayer = \\\"standaloneSystemLayer\\\";\\r\\n3079 | \\tstatic const char * const k_pch_Dashboard_StickyDashboard = \\\"stickyDashboard\\\";\\r\\n3080 | \\tstatic const char * const k_pch_Dashboard_AllowSteamOverlays_Bool = \\\"allowSteamOverlays\\\";\\r\\n3081 | \\tstatic const char * const k_pch_Dashboard_AllowVRGamepadUI_Bool = \\\"allowVRGamepadUI\\\";\\r\\n3082 | \\tstatic const char * const k_pch_Dashboard_AllowVRGamepadUIViaGamescope_Bool = \\\"allowVRGamepadUIViaGamescope\\\";\\r\\n3083 | \\tstatic const char * const k_pch_Dashboard_SteamMatchesHMDFramerate = \\\"steamMatchesHMDFramerate\\\";\\r\\n3084 | \\r\\n3085 | \\t//-----------------------------------------------------------------------------\\r\\n3086 | \\t// model skin keys\\r\\n3087 | \\tstatic const char * const k_pch_modelskin_Section = \\\"modelskins\\\";\\r\\n3088 | \\r\\n3089 | \\t//-----------------------------------------------------------------------------\\r\\n3090 | \\t// driver keys - These could be checked in any driver_<name> section\\r\\n3091 | \\tstatic const char * const k_pch_Driver_Enable_Bool = \\\"enable\\\";\\r\\n3092 | \\tstatic const char * const k_pch_Driver_BlockedBySafemode_Bool = \\\"blocked_by_safe_mode\\\";\\r\\n3093 | \\tstatic const char * const k_pch_Driver_LoadPriority_Int32 = \\\"loadPriority\\\";\\r\\n3094 | \\r\\n3095 | \\t//-----------------------------------------------------------------------------\\r\\n3096 | \\t// web interface keys\\r\\n3097 | \\tstatic const char* const k_pch_WebInterface_Section = \\\"WebInterface\\\";\\r\\n3098 | \\r\\n3099 | \\t//-----------------------------------------------------------------------------\\r\\n3100 | \\t// vrwebhelper keys\\r\\n3101 | \\tstatic const char* const k_pch_VRWebHelper_Section = \\\"VRWebHelper\\\";\\r\\n3102 | \\tstatic const char* const k_pch_VRWebHelper_DebuggerEnabled_Bool = \\\"DebuggerEnabled\\\";\\r\\n3103 | \\tstatic const char* const k_pch_VRWebHelper_DebuggerPort_Int32 = \\\"DebuggerPort\\\";\\r\\n3104 | \\r\\n3105 | \\t//-----------------------------------------------------------------------------\\r\\n3106 | \\t// tracking overrides - keys are device paths, values are the device paths their\\r\\n3107 | \\t//  tracking/pose information overrides\\r\\n3108 | \\tstatic const char* const k_pch_TrackingOverride_Section = \\\"TrackingOverrides\\\";\\r\\n3109 | \\r\\n3110 | \\t//-----------------------------------------------------------------------------\\r\\n3111 | \\t// per-app keys - the section name for these is the app key itself. Some of these are prefixed by the controller type\\r\\n3112 | \\tstatic const char* const k_pch_App_BindingAutosaveURLSuffix_String = \\\"AutosaveURL\\\";\\r\\n3113 | \\tstatic const char* const k_pch_App_BindingLegacyAPISuffix_String = \\\"_legacy\\\";\\r\\n3114 | \\tstatic const char *const k_pch_App_BindingSteamVRInputAPISuffix_String = \\\"_steamvrinput\\\";\\r\\n3115 | \\tstatic const char *const k_pch_App_BindingOpenXRAPISuffix_String = \\\"_openxr\\\";\\r\\n3116 | \\tstatic const char* const k_pch_App_BindingCurrentURLSuffix_String = \\\"CurrentURL\\\";\\r\\n3117 | \\tstatic const char* const k_pch_App_BindingPreviousURLSuffix_String = \\\"PreviousURL\\\";\\r\\n3118 | \\tstatic const char* const k_pch_App_NeedToUpdateAutosaveSuffix_Bool = \\\"NeedToUpdateAutosave\\\";\\r\\n3119 | \\tstatic const char* const k_pch_App_DominantHand_Int32 = \\\"DominantHand\\\";\\r\\n3120 | \\tstatic const char* const k_pch_App_BlockOculusSDK_Bool = \\\"blockOculusSDK\\\";\\r\\n3121 | \\r\\n3122 | \\t//-----------------------------------------------------------------------------\\r\\n3123 | \\t// configuration for trackers\\r\\n3124 | \\tstatic const char * const k_pch_Trackers_Section = \\\"trackers\\\";\\r\\n3125 | \\r\\n3126 | \\t//-----------------------------------------------------------------------------\\r\\n3127 | \\t// configuration for desktop UI windows\\r\\n3128 | \\tstatic const char * const k_pch_DesktopUI_Section = \\\"DesktopUI\\\";\\r\\n3129 | \\r\\n3130 | \\t//-----------------------------------------------------------------------------\\r\\n3131 | \\t// Last known keys for righting recovery\\r\\n3132 | \\tstatic const char * const k_pch_LastKnown_Section = \\\"LastKnown\\\";\\r\\n3133 | \\tstatic const char* const k_pch_LastKnown_HMDManufacturer_String = \\\"HMDManufacturer\\\";\\r\\n3134 | \\tstatic const char *const k_pch_LastKnown_HMDModel_String = \\\"HMDModel\\\";\\r\\n3135 | \\tstatic const char* const k_pch_LastKnown_ActualHMDDriver_String = \\\"ActualHMDDriver\\\";\\r\\n3136 | \\r\\n3137 | \\t//-----------------------------------------------------------------------------\\r\\n3138 | \\t// Dismissed warnings\\r\\n3139 | \\tstatic const char * const k_pch_DismissedWarnings_Section = \\\"DismissedWarnings\\\";\\r\\n3140 | \\r\\n3141 | \\t//-----------------------------------------------------------------------------\\r\\n3142 | \\t// Input Settings\\r\\n3143 | \\tstatic const char * const k_pch_Input_Section = \\\"input\\\";\\r\\n3144 | \\tstatic const char* const k_pch_Input_LeftThumbstickRotation_Float = \\\"leftThumbstickRotation\\\";\\r\\n3145 | \\tstatic const char* const k_pch_Input_RightThumbstickRotation_Float = \\\"rightThumbstickRotation\\\";\\r\\n3146 | \\tstatic const char* const k_pch_Input_ThumbstickDeadzone_Float = \\\"thumbstickDeadzone\\\";\\r\\n3147 | \\r\\n3148 | \\t//-----------------------------------------------------------------------------\\r\\n3149 | \\t// Log of GPU performance\\r\\n3150 | \\tstatic const char * const k_pch_GpuSpeed_Section = \\\"GpuSpeed\\\";\\r\\n3151 | \\r\\n3152 | } // namespace vr\\r\\n3153 | \\r\\n3154 | // ivrchaperone.h\\r\\n3155 | \\r\\n3156 | namespace vr\\r\\n3157 | {\\r\\n3158 | \\r\\n3159 | #pragma pack( push, 8 )\\r\\n3160 | \\r\\n3161 | enum ChaperoneCalibrationState\\r\\n3162 | {\\r\\n3163 | \\t// OK!\\r\\n3164 | \\tChaperoneCalibrationState_OK = 1,\\t\\t\\t\\t\\t\\t\\t\\t\\t// Chaperone is fully calibrated and working correctly\\r\\n3165 | \\r\\n3166 | \\t// Warnings\\r\\n3167 | \\tChaperoneCalibrationState_Warning = 100,\\r\\n3168 | \\tChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101,\\t// A base station thinks that it might have moved\\r\\n3169 | \\tChaperoneCalibrationState_Warning_BaseStationRemoved = 102,\\t\\t\\t// There are less base stations than when calibrated\\r\\n3170 | \\tChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103,\\t\\t// Seated bounds haven't been calibrated for the current tracking center\\r\\n3171 | \\r\\n3172 | \\t// Errors\\r\\n3173 | \\tChaperoneCalibrationState_Error = 200,\\t\\t\\t\\t\\t\\t\\t\\t// The UniverseID is invalid\\r\\n3174 | \\tChaperoneCalibrationState_Error_BaseStationUninitialized = 201,\\t\\t// Tracking center hasn't be calibrated for at least one of the base stations\\r\\n3175 | \\tChaperoneCalibrationState_Error_BaseStationConflict = 202,\\t\\t\\t// Tracking center is calibrated, but base stations disagree on the tracking space\\r\\n3176 | \\tChaperoneCalibrationState_Error_PlayAreaInvalid = 203,\\t\\t\\t\\t// Play Area hasn't been calibrated for the current tracking center\\r\\n3177 | \\tChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204,\\t\\t// Collision Bounds haven't been calibrated for the current tracking center\\r\\n3178 | };\\r\\n3179 | \\r\\n3180 | \\r\\n3181 | /** HIGH LEVEL TRACKING SPACE ASSUMPTIONS:\\r\\n3182 | * 0,0,0 is the preferred standing area center.\\r\\n3183 | * 0Y is the floor height.\\r\\n3184 | * -Z is the preferred forward facing direction. */\\r\\n3185 | class IVRChaperone\\r\\n3186 | {\\r\\n3187 | public:\\r\\n3188 | \\r\\n3189 | \\t/** Get the current state of Chaperone calibration. This state can change at any time during a session due to physical base station changes. **/\\r\\n3190 | \\tvirtual ChaperoneCalibrationState GetCalibrationState() = 0;\\r\\n3191 | \\r\\n3192 | \\t/** Returns the width and depth of the Play Area (formerly named Soft Bounds) in X and Z.\\r\\n3193 | \\t* Tracking space center (0,0,0) is the center of the Play Area. **/\\r\\n3194 | \\tvirtual bool GetPlayAreaSize( float *pSizeX, float *pSizeZ ) = 0;\\r\\n3195 | \\r\\n3196 | \\t/** Returns a quad describing the Play Area (formerly named Soft Bounds).\\r\\n3197 | \\t * The corners form a rectangle.\\r\\n3198 | \\t * Corners are in counter-clockwise order, starting at the front-right.\\r\\n3199 | \\t * The positions are given relative to the standing origin.\\r\\n3200 | \\t * The center of the rectangle is the center of the user's calibrated play space, not necessarily the standing\\r\\n3201 | \\t * origin.\\r\\n3202 | \\t * The Play Area's forward direction goes from its center through the mid-point of a line drawn between the\\r\\n3203 | \\t * first and second corner.\\r\\n3204 | \\t * The quad lies on the XZ plane (height = 0y), with 2 sides parallel to the X-axis and two sides parallel\\r\\n3205 | \\t * to the Z-axis of the user's calibrated Play Area. **/\\r\\n3206 | \\tvirtual bool GetPlayAreaRect( HmdQuad_t *rect ) = 0;\\r\\n3207 | \\r\\n3208 | \\t/** Reload Chaperone data from the .vrchap file on disk. */\\r\\n3209 | \\tvirtual void ReloadInfo( void ) = 0;\\r\\n3210 | \\r\\n3211 | \\t/** Optionally give the chaperone system a hit about the color and brightness in the scene **/\\r\\n3212 | \\tvirtual void SetSceneColor( HmdColor_t color ) = 0;\\r\\n3213 | \\r\\n3214 | \\t/** Get the current chaperone bounds draw color and brightness **/\\r\\n3215 | \\tvirtual void GetBoundsColor( HmdColor_t *pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, HmdColor_t *pOutputCameraColor ) = 0;\\r\\n3216 | \\r\\n3217 | \\t/** Determine whether the bounds are showing right now **/\\r\\n3218 | \\tvirtual bool AreBoundsVisible() = 0;\\r\\n3219 | \\r\\n3220 | \\t/** Force the bounds to show, mostly for utilities **/\\r\\n3221 | \\tvirtual void ForceBoundsVisible( bool bForce ) = 0;\\r\\n3222 | \\r\\n3223 | \\t/** Sets the zero pose for the given tracker coordinate system to the current position and yaw of the HMD. After\\r\\n3224 | \\t* ResetZeroPose all GetDeviceToAbsoluteTrackingPose calls as the origin will be relative to this new zero pose.\\r\\n3225 | \\t* The new zero coordinate system will not change the fact that the Y axis is up in the real world, so the next\\r\\n3226 | \\t* pose returned from GetDeviceToAbsoluteTrackingPose after a call to ResetZeroPose may not be exactly an\\r\\n3227 | \\t* identity matrix.\\r\\n3228 | \\t*\\r\\n3229 | \\t* NOTE: This function overrides the user's previously saved zero pose and should only be called as the result of a user action.\\r\\n3230 | \\t* Users are also able to set their zero pose via the OpenVR Dashboard.\\r\\n3231 | \\t**/\\r\\n3232 | \\tvirtual void ResetZeroPose( ETrackingUniverseOrigin eTrackingUniverseOrigin ) = 0;\\r\\n3233 | };\\r\\n3234 | \\r\\n3235 | static const char * const IVRChaperone_Version = \\\"IVRChaperone_004\\\";\\r\\n3236 | \\r\\n3237 | #pragma pack( pop )\\r\\n3238 | \\r\\n3239 | }\\r\\n3240 | \\r\\n3241 | // ivrchaperonesetup.h\\r\\n3242 | \\r\\n3243 | namespace vr\\r\\n3244 | {\\r\\n3245 | \\r\\n3246 | enum EChaperoneConfigFile\\r\\n3247 | {\\r\\n3248 | \\tEChaperoneConfigFile_Live = 1,\\t\\t// The live chaperone config, used by most applications and games\\r\\n3249 | \\tEChaperoneConfigFile_Temp = 2,\\t\\t// The temporary chaperone config, used to live-preview collision bounds in room setup\\r\\n3250 | };\\r\\n3251 | \\r\\n3252 | enum EChaperoneImportFlags\\r\\n3253 | {\\r\\n3254 | \\tEChaperoneImport_BoundsOnly = 0x0001,\\r\\n3255 | };\\r\\n3256 | \\r\\n3257 | /** Manages the working copy of the chaperone info. By default this will be the same as the\\r\\n3258 | * live copy. Any changes made with this interface will stay in the working copy until\\r\\n3259 | * CommitWorkingCopy() is called, at which point the working copy and the live copy will be\\r\\n3260 | * the same again. */\\r\\n3261 | class IVRChaperoneSetup\\r\\n3262 | {\\r\\n3263 | public:\\r\\n3264 | \\r\\n3265 | \\t/** Saves the current working copy to disk */\\r\\n3266 | \\tvirtual bool CommitWorkingCopy( EChaperoneConfigFile configFile ) = 0;\\r\\n3267 | \\r\\n3268 | \\t/** Reverts the working copy to match the live chaperone calibration.\\r\\n3269 | \\t* To modify existing data this MUST be do WHILE getting a non-error ChaperoneCalibrationStatus.\\r\\n3270 | \\t* Only after this should you do gets and sets on the existing data. */\\r\\n3271 | \\tvirtual void RevertWorkingCopy() = 0;\\r\\n3272 | \\r\\n3273 | \\t/** Returns the width and depth of the Play Area (formerly named Soft Bounds) in X and Z from the working copy.\\r\\n3274 | \\t* Tracking space center (0,0,0) is the center of the Play Area. */\\r\\n3275 | \\tvirtual bool GetWorkingPlayAreaSize( float *pSizeX, float *pSizeZ ) = 0;\\r\\n3276 | \\r\\n3277 | \\t/** Returns the 4 corner positions of the Play Area (formerly named Soft Bounds) from the working copy.\\r\\n3278 | \\t* Corners are in clockwise order.\\r\\n3279 | \\t* Tracking space center (0,0,0) is the center of the Play Area.\\r\\n3280 | \\t* It's a rectangle.\\r\\n3281 | \\t* 2 sides are parallel to the X axis and 2 sides are parallel to the Z axis.\\r\\n3282 | \\t* Height of every corner is 0Y (on the floor). **/\\r\\n3283 | \\tvirtual bool GetWorkingPlayAreaRect( HmdQuad_t *rect ) = 0;\\r\\n3284 | \\r\\n3285 | \\t/** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads\\r\\n3286 | \\t* into the buffer up to the max specified from the working copy. */\\r\\n3287 | \\tvirtual bool GetWorkingCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0;\\r\\n3288 | \\r\\n3289 | \\t/** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads\\r\\n3290 | \\t* into the buffer up to the max specified. */\\r\\n3291 | \\tvirtual bool GetLiveCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0;\\r\\n3292 | \\r\\n3293 | \\t/** Returns the preferred seated position from the working copy. */\\r\\n3294 | \\tvirtual bool GetWorkingSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) = 0;\\r\\n3295 | \\r\\n3296 | \\t/** Returns the standing origin from the working copy. */\\r\\n3297 | \\tvirtual bool GetWorkingStandingZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatStandingZeroPoseToRawTrackingPose ) = 0;\\r\\n3298 | \\r\\n3299 | \\t/** Sets the Play Area in the working copy. */\\r\\n3300 | \\tvirtual void SetWorkingPlayAreaSize( float sizeX, float sizeZ ) = 0;\\r\\n3301 | \\r\\n3302 | \\t/** Sets the Collision Bounds in the working copy. Note: ceiling height is ignored. */\\r\\n3303 | \\tvirtual void SetWorkingCollisionBoundsInfo( VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount ) = 0;\\r\\n3304 | \\r\\n3305 | \\t/** Sets the Collision Bounds in the working copy. */\\r\\n3306 | \\tvirtual void SetWorkingPerimeter( VR_ARRAY_COUNT( unPointCount ) HmdVector2_t *pPointBuffer, uint32_t unPointCount ) = 0;\\r\\n3307 | \\r\\n3308 | \\t/** Sets the preferred seated position in the working copy. */\\r\\n3309 | \\tvirtual void SetWorkingSeatedZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatSeatedZeroPoseToRawTrackingPose ) = 0;\\r\\n3310 | \\r\\n3311 | \\t/** Sets the preferred standing position in the working copy. */\\r\\n3312 | \\tvirtual void SetWorkingStandingZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatStandingZeroPoseToRawTrackingPose ) = 0;\\r\\n3313 | \\r\\n3314 | \\t/** Tear everything down and reload it from the file on disk */\\r\\n3315 | \\tvirtual void ReloadFromDisk( EChaperoneConfigFile configFile ) = 0;\\r\\n3316 | \\r\\n3317 | \\t/** Returns the preferred seated position. */\\r\\n3318 | \\tvirtual bool GetLiveSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) = 0;\\r\\n3319 | \\r\\n3320 | \\tvirtual bool ExportLiveToBuffer( VR_OUT_STRING() char *pBuffer, uint32_t *pnBufferLength ) = 0;\\r\\n3321 | \\tvirtual bool ImportFromBufferToWorking( const char *pBuffer, uint32_t nImportFlags ) = 0;\\r\\n3322 | \\r\\n3323 | \\t/** Shows the chaperone data in the working set to preview in the compositor.*/\\r\\n3324 | \\tvirtual void ShowWorkingSetPreview() = 0;\\r\\n3325 | \\r\\n3326 | \\t/** Hides the chaperone data in the working set to preview in the compositor (if it was visible).*/\\r\\n3327 | \\tvirtual void HideWorkingSetPreview() = 0;\\r\\n3328 | \\r\\n3329 | \\t/** Fire an event that the tracking system can use to know room setup is about to begin. This lets the tracking\\r\\n3330 | \\t * system make any last minute adjustments that should be incorporated into the new setup.  If the user is adjusting\\r\\n3331 | \\t * live in HMD using a tweak tool, keep in mind that calling this might cause the user to see the room jump. */\\r\\n3332 | \\tvirtual void RoomSetupStarting() = 0;\\r\\n3333 | };\\r\\n3334 | \\r\\n3335 | static const char * const IVRChaperoneSetup_Version = \\\"IVRChaperoneSetup_006\\\";\\r\\n3336 | \\r\\n3337 | \\r\\n3338 | }\\r\\n3339 | \\r\\n3340 | // ivrcompositor.h\\r\\n3341 | \\r\\n3342 | namespace vr\\r\\n3343 | {\\r\\n3344 | \\r\\n3345 | #pragma pack( push, 8 )\\r\\n3346 | \\r\\n3347 | /** Errors that can occur with the VR compositor */\\r\\n3348 | enum EVRCompositorError\\r\\n3349 | {\\r\\n3350 | \\tVRCompositorError_None\\t\\t\\t\\t\\t\\t= 0,\\r\\n3351 | \\tVRCompositorError_RequestFailed\\t\\t\\t\\t= 1,\\r\\n3352 | \\tVRCompositorError_IncompatibleVersion\\t\\t= 100,\\r\\n3353 | \\tVRCompositorError_DoNotHaveFocus\\t\\t\\t= 101,\\r\\n3354 | \\tVRCompositorError_InvalidTexture\\t\\t\\t= 102,\\r\\n3355 | \\tVRCompositorError_IsNotSceneApplication\\t\\t= 103,\\r\\n3356 | \\tVRCompositorError_TextureIsOnWrongDevice\\t= 104,\\r\\n3357 | \\tVRCompositorError_TextureUsesUnsupportedFormat = 105,\\r\\n3358 | \\tVRCompositorError_SharedTexturesNotSupported = 106,\\r\\n3359 | \\tVRCompositorError_IndexOutOfRange\\t\\t\\t= 107,\\r\\n3360 | \\tVRCompositorError_AlreadySubmitted\\t\\t\\t= 108,\\r\\n3361 | \\tVRCompositorError_InvalidBounds\\t\\t\\t\\t= 109,\\r\\n3362 | \\tVRCompositorError_AlreadySet\\t\\t\\t\\t= 110,\\r\\n3363 | };\\r\\n3364 | \\r\\n3365 | /** Timing mode passed to SetExplicitTimingMode(); see that function for documentation */\\r\\n3366 | enum EVRCompositorTimingMode\\r\\n3367 | {\\r\\n3368 | \\tVRCompositorTimingMode_Implicit\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t= 0,\\r\\n3369 | \\tVRCompositorTimingMode_Explicit_RuntimePerformsPostPresentHandoff\\t\\t= 1,\\r\\n3370 | \\tVRCompositorTimingMode_Explicit_ApplicationPerformsPostPresentHandoff\\t= 2,\\r\\n3371 | };\\r\\n3372 | \\r\\n3373 | /** Cumulative stats for current application.  These are not cleared until a new app connects,\\r\\n3374 | * but they do stop accumulating once the associated app disconnects. */\\r\\n3375 | struct Compositor_CumulativeStats\\r\\n3376 | {\\r\\n3377 | \\tuint32_t m_nPid; // Process id associated with these stats (may no longer be running).\\r\\n3378 | \\tuint32_t m_nNumFramePresents; // total number of times we called present (includes reprojected frames)\\r\\n3379 | \\tuint32_t m_nNumDroppedFrames; // total number of times an old frame was re-scanned out (without reprojection)\\r\\n3380 | \\tuint32_t m_nNumReprojectedFrames; // total number of times a frame was scanned out a second time (with reprojection)\\r\\n3381 | \\r\\n3382 | \\t/** Values recorded at startup before application has fully faded in the first time. */\\r\\n3383 | \\tuint32_t m_nNumFramePresentsOnStartup;\\r\\n3384 | \\tuint32_t m_nNumDroppedFramesOnStartup;\\r\\n3385 | \\tuint32_t m_nNumReprojectedFramesOnStartup;\\r\\n3386 | \\r\\n3387 | \\t/** Applications may explicitly fade to the compositor.  This is usually to handle level transitions, and loading often causes\\r\\n3388 | \\t* system wide hitches.  The following stats are collected during this period.  Does not include values recorded during startup. */\\r\\n3389 | \\tuint32_t m_nNumLoading;\\r\\n3390 | \\tuint32_t m_nNumFramePresentsLoading;\\r\\n3391 | \\tuint32_t m_nNumDroppedFramesLoading;\\r\\n3392 | \\tuint32_t m_nNumReprojectedFramesLoading;\\r\\n3393 | \\r\\n3394 | \\t/** If we don't get a new frame from the app in less than 2.5 frames, then we assume the app has hung and start\\r\\n3395 | \\t* fading back to the compositor.  The following stats are a result of this, and are a subset of those recorded above.\\r\\n3396 | \\t* Does not include values recorded during start up or loading. */\\r\\n3397 | \\tuint32_t m_nNumTimedOut;\\r\\n3398 | \\tuint32_t m_nNumFramePresentsTimedOut;\\r\\n3399 | \\tuint32_t m_nNumDroppedFramesTimedOut;\\r\\n3400 | \\tuint32_t m_nNumReprojectedFramesTimedOut;\\r\\n3401 | \\r\\n3402 | \\t/** For items in this section, divide all the values by m_nNumFrameSubmits. */\\r\\n3403 | \\tuint32_t m_nNumFrameSubmits;\\r\\n3404 | \\tvrshared_double m_flSumCompositorCPUTimeMS;\\r\\n3405 | \\tvrshared_double m_flSumCompositorGPUTimeMS;\\r\\n3406 | \\tvrshared_double m_flSumTargetFrameTimes;\\r\\n3407 | \\tvrshared_double m_flSumApplicationCPUTimeMS;\\r\\n3408 | \\tvrshared_double m_flSumApplicationGPUTimeMS;\\r\\n3409 | \\r\\n3410 | \\tuint32_t m_nNumFramesWithDepth; // total frames submitted with depth by the current application\\r\\n3411 | };\\r\\n3412 | \\r\\n3413 | struct Compositor_StageRenderSettings\\r\\n3414 | {\\r\\n3415 | \\t/** Primary color is applied as a tint to (i.e. multiplied with) the model's texture */\\r\\n3416 | \\tHmdColor_t m_PrimaryColor;\\r\\n3417 | \\tHmdColor_t m_SecondaryColor;\\r\\n3418 | \\r\\n3419 | \\t/** Vignette radius is in meters and is used to fade to the specified secondary solid color over\\r\\n3420 | \\t* that 3D distance from the origin of the playspace. */\\r\\n3421 | \\tfloat m_flVignetteInnerRadius;\\r\\n3422 | \\tfloat m_flVignetteOuterRadius;\\r\\n3423 | \\r\\n3424 | \\t/** Fades to the secondary color based on view incidence.  This variable controls the linearity\\r\\n3425 | \\t* of the effect.  It is mutually exclusive with vignette.  Additionally, it treats the mesh as faceted. */\\r\\n3426 | \\tfloat m_flFresnelStrength;\\r\\n3427 | \\r\\n3428 | \\t/** Controls backface culling. */\\r\\n3429 | \\tbool m_bBackfaceCulling;\\r\\n3430 | \\r\\n3431 | \\t/** Converts the render model's texture to luma and applies to rgb equally.  This is useful to\\r\\n3432 | \\t* combat compression artifacts that can occur on desaturated source material. */\\r\\n3433 | \\tbool m_bGreyscale;\\r\\n3434 | \\r\\n3435 | \\t/** Renders mesh as a wireframe. */\\r\\n3436 | \\tbool m_bWireframe;\\r\\n3437 | };\\r\\n3438 | \\r\\n3439 | static inline Compositor_StageRenderSettings DefaultStageRenderSettings()\\r\\n3440 | {\\r\\n3441 | \\tCompositor_StageRenderSettings settings;\\r\\n3442 | \\tsettings.m_PrimaryColor.r = 1.0f;\\r\\n3443 | \\tsettings.m_PrimaryColor.g = 1.0f;\\r\\n3444 | \\tsettings.m_PrimaryColor.b = 1.0f;\\r\\n3445 | \\tsettings.m_PrimaryColor.a = 1.0f;\\r\\n3446 | \\tsettings.m_SecondaryColor.r = 1.0f;\\r\\n3447 | \\tsettings.m_SecondaryColor.g = 1.0f;\\r\\n3448 | \\tsettings.m_SecondaryColor.b = 1.0f;\\r\\n3449 | \\tsettings.m_SecondaryColor.a = 1.0f;\\r\\n3450 | \\tsettings.m_flVignetteInnerRadius = 0.0f;\\r\\n3451 | \\tsettings.m_flVignetteOuterRadius = 0.0f;\\r\\n3452 | \\tsettings.m_flFresnelStrength = 0.0f;\\r\\n3453 | \\tsettings.m_bBackfaceCulling = false;\\r\\n3454 | \\tsettings.m_bGreyscale = false;\\r\\n3455 | \\tsettings.m_bWireframe = false;\\r\\n3456 | \\treturn settings;\\r\\n3457 | }\\r\\n3458 | \\r\\n3459 | #pragma pack( pop )\\r\\n3460 | \\r\\n3461 | /** Allows the application to interact with the compositor */\\r\\n3462 | class IVRCompositor\\r\\n3463 | {\\r\\n3464 | public:\\r\\n3465 | \\t/** Sets tracking space returned by WaitGetPoses */\\r\\n3466 | \\tvirtual void SetTrackingSpace( ETrackingUniverseOrigin eOrigin ) = 0;\\r\\n3467 | \\r\\n3468 | \\t/** Gets current tracking space returned by WaitGetPoses */\\r\\n3469 | \\tvirtual ETrackingUniverseOrigin GetTrackingSpace() = 0;\\r\\n3470 | \\r\\n3471 | \\t/** Scene applications should call this function to get poses to render with (and optionally poses predicted an additional frame out to use for gameplay).\\r\\n3472 | \\t* This function will block until \\\"running start\\\" milliseconds before the start of the frame, and should be called at the last moment before needing to\\r\\n3473 | \\t* start rendering.\\r\\n3474 | \\t*\\r\\n3475 | \\t* Return codes:\\r\\n3476 | \\t*\\t- IsNotSceneApplication (make sure to call VR_Init with VRApplicaiton_Scene)\\r\\n3477 | \\t*\\t- DoNotHaveFocus (some other app has taken focus - this will throttle the call to 10hz to reduce the impact on that app)\\r\\n3478 | \\t*/\\r\\n3479 | \\tvirtual EVRCompositorError WaitGetPoses( VR_ARRAY_COUNT( unRenderPoseArrayCount ) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount,\\r\\n3480 | \\t\\tVR_ARRAY_COUNT( unGamePoseArrayCount ) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) = 0;\\r\\n3481 | \\r\\n3482 | \\t/** Get the last set of poses returned by WaitGetPoses. */\\r\\n3483 | \\tvirtual EVRCompositorError GetLastPoses( VR_ARRAY_COUNT( unRenderPoseArrayCount ) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount,\\r\\n3484 | \\t\\tVR_ARRAY_COUNT( unGamePoseArrayCount ) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) = 0;\\r\\n3485 | \\r\\n3486 | \\t/** Interface for accessing last set of poses returned by WaitGetPoses one at a time.\\r\\n3487 | \\t* Returns VRCompositorError_IndexOutOfRange if unDeviceIndex not less than k_unMaxTrackedDeviceCount otherwise VRCompositorError_None.\\r\\n3488 | \\t* It is okay to pass NULL for either pose if you only want one of the values. */\\r\\n3489 | \\tvirtual EVRCompositorError GetLastPoseForTrackedDeviceIndex( TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t *pOutputPose, TrackedDevicePose_t *pOutputGamePose ) = 0;\\r\\n3490 | \\r\\n3491 | \\t/** Updated scene texture to display. If pBounds is NULL the entire texture will be used.  If called from an OpenGL app, consider adding a glFlush after\\r\\n3492 | \\t* Submitting both frames to signal the driver to start processing, otherwise it may wait until the command buffer fills up, causing the app to miss frames.\\r\\n3493 | \\t*\\r\\n3494 | \\t* OpenGL dirty state:\\r\\n3495 | \\t*\\tglBindTexture\\r\\n3496 | \\t*\\r\\n3497 | \\t* Return codes:\\r\\n3498 | \\t*\\t- IsNotSceneApplication (make sure to call VR_Init with VRApplicaiton_Scene)\\r\\n3499 | \\t*\\t- DoNotHaveFocus (some other app has taken focus)\\r\\n3500 | \\t*\\t- TextureIsOnWrongDevice (application did not use proper AdapterIndex - see IVRSystem.GetDXGIOutputInfo)\\r\\n3501 | \\t*\\t- SharedTexturesNotSupported (application needs to call CreateDXGIFactory1 or later before creating DX device)\\r\\n3502 | \\t*\\t- TextureUsesUnsupportedFormat (scene textures must be compatible with DXGI sharing rules - e.g. uncompressed, no mips, etc.)\\r\\n3503 | \\t*\\t- InvalidTexture (usually means bad arguments passed in)\\r\\n3504 | \\t*\\t- AlreadySubmitted (app has submitted two left textures or two right textures in a single frame - i.e. before calling WaitGetPoses again)\\r\\n3505 | \\t*/\\r\\n3506 | \\tvirtual EVRCompositorError Submit( EVREye eEye, const Texture_t *pTexture, const VRTextureBounds_t* pBounds = 0, EVRSubmitFlags nSubmitFlags = Submit_Default ) = 0;\\r\\n3507 | \\tvirtual EVRCompositorError SubmitWithArrayIndex( EVREye eEye, const Texture_t *pTexture, uint32_t unTextureArrayIndex,\\r\\n3508 | \\t\\tconst VRTextureBounds_t *pBounds = 0, EVRSubmitFlags nSubmitFlags = Submit_Default ) = 0;\\r\\n3509 | \\r\\n3510 | \\t/** Clears the frame that was sent with the last call to Submit. This will cause the\\r\\n3511 | \\t* compositor to show the grid until Submit is called again. */\\r\\n3512 | \\tvirtual void ClearLastSubmittedFrame() = 0;\\r\\n3513 | \\r\\n3514 | \\t/** Call immediately after presenting your app's window (i.e. companion window) to unblock the compositor.\\r\\n3515 | \\t* This is an optional call, which only needs to be used if you can't instead call WaitGetPoses immediately after Present.\\r\\n3516 | \\t* For example, if your engine's render and game loop are not on separate threads, or blocking the render thread until 3ms before the next vsync would\\r\\n3517 | \\t* introduce a deadlock of some sort.  This function tells the compositor that you have finished all rendering after having Submitted buffers for both\\r\\n3518 | \\t* eyes, and it is free to start its rendering work.  This should only be called from the same thread you are rendering on. */\\r\\n3519 | \\tvirtual void PostPresentHandoff() = 0;\\r\\n3520 | \\r\\n3521 | \\t/** Returns true if timing data is filled it.  Sets oldest timing info if nFramesAgo is larger than the stored history.\\r\\n3522 | \\t* Be sure to set timing.size = sizeof(Compositor_FrameTiming) on struct passed in before calling this function. */\\r\\n3523 | \\tvirtual bool GetFrameTiming( Compositor_FrameTiming *pTiming, uint32_t unFramesAgo = 0 ) = 0;\\r\\n3524 | \\r\\n3525 | \\t/** Interface for copying a range of timing data.  Frames are returned in ascending order (oldest to newest) with the last being the most recent frame.\\r\\n3526 | \\t* Only the first entry's m_nSize needs to be set, as the rest will be inferred from that.  Returns total number of entries filled out. */\\r\\n3527 | \\tvirtual uint32_t GetFrameTimings( VR_ARRAY_COUNT( nFrames ) Compositor_FrameTiming *pTiming, uint32_t nFrames ) = 0;\\r\\n3528 | \\r\\n3529 | \\t/** Returns the time in seconds left in the current (as identified by FrameTiming's frameIndex) frame.\\r\\n3530 | \\t* Due to \\\"running start\\\", this value may roll over to the next frame before ever reaching 0.0. */\\r\\n3531 | \\tvirtual float GetFrameTimeRemaining() = 0;\\r\\n3532 | \\r\\n3533 | \\t/** Fills out stats accumulated for the last connected application.  Pass in sizeof( Compositor_CumulativeStats ) as second parameter. */\\r\\n3534 | \\tvirtual void GetCumulativeStats( Compositor_CumulativeStats *pStats, uint32_t nStatsSizeInBytes ) = 0;\\r\\n3535 | \\r\\n3536 | \\t/** Fades the view on the HMD to the specified color. The fade will take fSeconds, and the color values are between\\r\\n3537 | \\t* 0.0 and 1.0. This color is faded on top of the scene based on the alpha parameter. Removing the fade color instantly\\r\\n3538 | \\t* would be FadeToColor( 0.0, 0.0, 0.0, 0.0, 0.0 ).  Values are in un-premultiplied alpha space. */\\r\\n3539 | \\tvirtual void FadeToColor( float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground = false ) = 0;\\r\\n3540 | \\r\\n3541 | \\t/** Get current fade color value. */\\r\\n3542 | \\tvirtual HmdColor_t GetCurrentFadeColor( bool bBackground = false ) = 0;\\r\\n3543 | \\r\\n3544 | \\t/** Fading the Grid in or out in fSeconds */\\r\\n3545 | \\tvirtual void FadeGrid( float fSeconds, bool bFadeGridIn ) = 0;\\r\\n3546 | \\r\\n3547 | \\t/** Get current alpha value of grid. */\\r\\n3548 | \\tvirtual float GetCurrentGridAlpha() = 0;\\r\\n3549 | \\r\\n3550 | \\t/** Override the skybox used in the compositor (e.g. for during level loads when the app can't feed scene images fast enough)\\r\\n3551 | \\t* Order is Front, Back, Left, Right, Top, Bottom.  If only a single texture is passed, it is assumed in lat-long format.\\r\\n3552 | \\t* If two are passed, it is assumed a lat-long stereo pair. */\\r\\n3553 | \\tvirtual EVRCompositorError SetSkyboxOverride( VR_ARRAY_COUNT( unTextureCount ) const Texture_t *pTextures, uint32_t unTextureCount ) = 0;\\r\\n3554 | \\r\\n3555 | \\t/** Resets compositor skybox back to defaults. */\\r\\n3556 | \\tvirtual void ClearSkyboxOverride() = 0;\\r\\n3557 | \\r\\n3558 | \\t/** Brings the compositor window to the front. This is useful for covering any other window that may be on the HMD\\r\\n3559 | \\t* and is obscuring the compositor window. */\\r\\n3560 | \\tvirtual void CompositorBringToFront() = 0;\\r\\n3561 | \\r\\n3562 | \\t/** Pushes the compositor window to the back. This is useful for allowing other applications to draw directly to the HMD. */\\r\\n3563 | \\tvirtual void CompositorGoToBack() = 0;\\r\\n3564 | \\r\\n3565 | \\t/** DEPRECATED: Tells the compositor process to clean up and exit. You do not need to call this function at shutdown.\\r\\n3566 | \\t* Under normal circumstances the compositor will manage its own life cycle based on what applications are running. */\\r\\n3567 | \\tvirtual void CompositorQuit() = 0;\\r\\n3568 | \\r\\n3569 | \\t/** Return whether the compositor is fullscreen */\\r\\n3570 | \\tvirtual bool IsFullscreen() = 0;\\r\\n3571 | \\r\\n3572 | \\t/** Returns the process ID of the process that is currently rendering the scene */\\r\\n3573 | \\tvirtual uint32_t GetCurrentSceneFocusProcess() = 0;\\r\\n3574 | \\r\\n3575 | \\t/** Returns the process ID of the process that rendered the last frame (or 0 if the compositor itself rendered the frame.)\\r\\n3576 | \\t* Returns 0 when fading out from an app and the app's process Id when fading into an app. */\\r\\n3577 | \\tvirtual uint32_t GetLastFrameRenderer() = 0;\\r\\n3578 | \\r\\n3579 | \\t/** Returns true if the current process has the scene focus */\\r\\n3580 | \\tvirtual bool CanRenderScene() = 0;\\r\\n3581 | \\r\\n3582 | \\t/** DEPRECATED: Opens the headset view (as either a window or docked widget depending on user's preferences) that displays what the user\\r\\n3583 | \\t* sees in the headset. */\\r\\n3584 | \\tvirtual void ShowMirrorWindow() = 0;\\r\\n3585 | \\r\\n3586 | \\t/** DEPRECATED: Closes the headset view, either as a window or docked widget. */\\r\\n3587 | \\tvirtual void HideMirrorWindow() = 0;\\r\\n3588 | \\r\\n3589 | \\t/** DEPRECATED: Returns true if the headset view (either as a window or docked widget) is shown. */\\r\\n3590 | \\tvirtual bool IsMirrorWindowVisible() = 0;\\r\\n3591 | \\r\\n3592 | \\t/** Writes back buffer and stereo left/right pair from the application to a 'screenshots' folder in the SteamVR runtime root. */\\r\\n3593 | \\tvirtual void CompositorDumpImages() = 0;\\r\\n3594 | \\r\\n3595 | \\t/** Let an app know it should be rendering with low resources. */\\r\\n3596 | \\tvirtual bool ShouldAppRenderWithLowResources() = 0;\\r\\n3597 | \\r\\n3598 | \\t/** Override interleaved reprojection logic to force on. */\\r\\n3599 | \\tvirtual void ForceInterleavedReprojectionOn( bool bOverride ) = 0;\\r\\n3600 | \\r\\n3601 | \\t/** Force reconnecting to the compositor process. */\\r\\n3602 | \\tvirtual void ForceReconnectProcess() = 0;\\r\\n3603 | \\r\\n3604 | \\t/** Temporarily suspends rendering (useful for finer control over scene transitions). */\\r\\n3605 | \\tvirtual void SuspendRendering( bool bSuspend ) = 0;\\r\\n3606 | \\r\\n3607 | \\t/** Opens a shared D3D11 texture with the undistorted composited image for each eye.  Use ReleaseMirrorTextureD3D11 when finished\\r\\n3608 | \\t* instead of calling Release on the resource itself. */\\r\\n3609 | \\tvirtual vr::EVRCompositorError GetMirrorTextureD3D11( vr::EVREye eEye, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView ) = 0;\\r\\n3610 | \\tvirtual void ReleaseMirrorTextureD3D11( void *pD3D11ShaderResourceView ) = 0;\\r\\n3611 | \\r\\n3612 | \\t/** Access to mirror textures from OpenGL. */\\r\\n3613 | \\tvirtual vr::EVRCompositorError GetMirrorTextureGL( vr::EVREye eEye, vr::glUInt_t *pglTextureId, vr::glSharedTextureHandle_t *pglSharedTextureHandle ) = 0;\\r\\n3614 | \\tvirtual bool ReleaseSharedGLTexture( vr::glUInt_t glTextureId, vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0;\\r\\n3615 | \\tvirtual void LockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0;\\r\\n3616 | \\tvirtual void UnlockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0;\\r\\n3617 | \\r\\n3618 | \\t/** [Vulkan Only]\\r\\n3619 | \\t* return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing\\r\\n3620 | \\t* null.  The string will be a space separated list of-required instance extensions to enable in VkCreateInstance */\\r\\n3621 | \\tvirtual uint32_t GetVulkanInstanceExtensionsRequired( VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0;\\r\\n3622 | \\r\\n3623 | \\t/** [Vulkan only]\\r\\n3624 | \\t* return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing\\r\\n3625 | \\t* null.  The string will be a space separated list of required device extensions to enable in VkCreateDevice */\\r\\n3626 | \\tvirtual uint32_t GetVulkanDeviceExtensionsRequired( VkPhysicalDevice_T *pPhysicalDevice, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0;\\r\\n3627 | \\r\\n3628 | \\t/** [ Vulkan/D3D12 Only ]\\r\\n3629 | \\t* There are two purposes for SetExplicitTimingMode:\\r\\n3630 | \\t*\\t1. To get a more accurate GPU timestamp for when the frame begins in Vulkan/D3D12 applications.\\r\\n3631 | \\t*\\t2. (Optional) To avoid having WaitGetPoses access the Vulkan queue so that the queue can be accessed from\\r\\n3632 | \\t*\\tanother thread while WaitGetPoses is executing.\\r\\n3633 | \\t*\\r\\n3634 | \\t* More accurate GPU timestamp for the start of the frame is achieved by the application calling\\r\\n3635 | \\t* SubmitExplicitTimingData immediately before its first submission to the Vulkan/D3D12 queue.\\r\\n3636 | \\t* This is more accurate because normally this GPU timestamp is recorded during WaitGetPoses.  In D3D11,\\r\\n3637 | \\t* WaitGetPoses queues a GPU timestamp write, but it does not actually get submitted to the GPU until the\\r\\n3638 | \\t* application flushes.  By using SubmitExplicitTimingData, the timestamp is recorded at the same place for\\r\\n3639 | \\t* Vulkan/D3D12 as it is for D3D11, resulting in a more accurate GPU time measurement for the frame.\\r\\n3640 | \\t*\\r\\n3641 | \\t* Avoiding WaitGetPoses accessing the Vulkan queue can be achieved using SetExplicitTimingMode as well.  If this is desired,\\r\\n3642 | \\t* the application should set the timing mode to Explicit_ApplicationPerformsPostPresentHandoff and *MUST* call PostPresentHandoff\\r\\n3643 | \\t* itself. If these conditions are met, then WaitGetPoses is guaranteed not to access the queue.  Note that PostPresentHandoff\\r\\n3644 | \\t* and SubmitExplicitTimingData will access the queue, so only WaitGetPoses becomes safe for accessing the queue from another\\r\\n3645 | \\t* thread. */\\r\\n3646 | \\tvirtual void SetExplicitTimingMode( EVRCompositorTimingMode eTimingMode ) = 0;\\r\\n3647 | \\r\\n3648 | \\t/** [ Vulkan/D3D12 Only ]\\r\\n3649 | \\t* Submit explicit timing data.  When SetExplicitTimingMode is true, this must be called immediately before\\r\\n3650 | \\t* the application's first vkQueueSubmit (Vulkan) or ID3D12CommandQueue::ExecuteCommandLists (D3D12) of each frame.\\r\\n3651 | \\t* This function will insert a GPU timestamp write just before the application starts its rendering.  This function\\r\\n3652 | \\t* will perform a vkQueueSubmit on Vulkan so must not be done simultaneously with VkQueue operations on another thread.\\r\\n3653 | \\t* Returns VRCompositorError_RequestFailed if SetExplicitTimingMode is not enabled. */\\r\\n3654 | \\tvirtual EVRCompositorError SubmitExplicitTimingData() = 0;\\r\\n3655 | \\r\\n3656 | \\t/** Indicates whether or not motion smoothing is enabled by the user settings.\\r\\n3657 | \\t* If you want to know if motion smoothing actually triggered due to a late frame, check Compositor_FrameTiming\\r\\n3658 | \\t* m_nReprojectionFlags & VRCompositor_ReprojectionMotion instead. */\\r\\n3659 | \\tvirtual bool IsMotionSmoothingEnabled() = 0;\\r\\n3660 | \\r\\n3661 | \\t/** Indicates whether or not motion smoothing is supported by the current hardware. */\\r\\n3662 | \\tvirtual bool IsMotionSmoothingSupported() = 0;\\r\\n3663 | \\r\\n3664 | \\t/** Indicates whether or not the current scene focus app is currently loading.  This is inferred from its use of FadeGrid to\\r\\n3665 | \\t* explicitly fade to the compositor to cover up the fact that it cannot render at a sustained full framerate during this time. */\\r\\n3666 | \\tvirtual bool IsCurrentSceneFocusAppLoading() = 0;\\r\\n3667 | \\r\\n3668 | \\t/** Override the stage model used in the compositor to replace the grid.  RenderModelPath is a full path the an OBJ file to load.\\r\\n3669 | \\t* This file will be loaded asynchronously from disk and uploaded to the gpu by the runtime.  Once ready for rendering, the\\r\\n3670 | \\t* VREvent StageOverrideReady will be sent.  Use FadeToGrid to reveal.  Call ClearStageOverride to free the associated resources when finished. */\\r\\n3671 | \\tvirtual EVRCompositorError SetStageOverride_Async( const char *pchRenderModelPath, const HmdMatrix34_t *pTransform = 0,\\r\\n3672 | \\t\\tconst Compositor_StageRenderSettings *pRenderSettings = 0, uint32_t nSizeOfRenderSettings = 0 ) = 0;\\r\\n3673 | \\r\\n3674 | \\t/** Resets the stage to its default user specified setting. */\\r\\n3675 | \\tvirtual void ClearStageOverride() = 0;\\r\\n3676 | \\r\\n3677 | \\t/** Returns true if pBenchmarkResults is filled it.  Sets pBenchmarkResults with the result of the compositor benchmark.\\r\\n3678 | \\t* nSizeOfBenchmarkResults should be set to sizeof(Compositor_BenchmarkResults) */\\r\\n3679 | \\tvirtual bool GetCompositorBenchmarkResults( Compositor_BenchmarkResults *pBenchmarkResults, uint32_t nSizeOfBenchmarkResults ) = 0;\\r\\n3680 | \\r\\n3681 | \\t/** Returns the frame id associated with the poses last returned by WaitGetPoses.  Deltas between IDs correspond to number of headset vsync intervals. */\\r\\n3682 | \\tvirtual EVRCompositorError GetLastPosePredictionIDs( uint32_t *pRenderPosePredictionID, uint32_t *pGamePosePredictionID ) = 0;\\r\\n3683 | \\r\\n3684 | \\t/** Get the most up-to-date predicted (or recorded - up to 100ms old) set of poses for a given frame id. */\\r\\n3685 | \\tvirtual EVRCompositorError GetPosesForFrame( uint32_t unPosePredictionID, VR_ARRAY_COUNT( unPoseArrayCount ) TrackedDevicePose_t* pPoseArray, uint32_t unPoseArrayCount ) = 0;\\r\\n3686 | };\\r\\n3687 | \\r\\n3688 | static const char * const IVRCompositor_Version = \\\"IVRCompositor_028\\\";\\r\\n3689 | \\r\\n3690 | } // namespace vr\\r\\n3691 | \\r\\n3692 | \\r\\n3693 | \\r\\n3694 | // ivrheadsetview.h\\r\\n3695 | \\r\\n3696 | namespace vr\\r\\n3697 | {\\r\\n3698 | \\tenum HeadsetViewMode_t\\r\\n3699 | \\t{\\r\\n3700 | \\t\\tHeadsetViewMode_Left = 0,\\r\\n3701 | \\t\\tHeadsetViewMode_Right,\\r\\n3702 | \\t\\tHeadsetViewMode_Both\\r\\n3703 | \\t};\\r\\n3704 | \\r\\n3705 | \\tclass IVRHeadsetView\\r\\n3706 | \\t{\\r\\n3707 | \\tpublic:\\r\\n3708 | \\t\\t/** Sets the resolution in pixels to render the headset view. These values are clamped to k_unHeadsetViewMaxWidth\\r\\n3709 | \\t\\t* and k_unHeadsetViewMaxHeight respectively. For cropped views, the rendered output will be fit to aspect ratio\\r\\n3710 | \\t\\t* defined by the the specified dimensions. For uncropped views, the caller should use GetHeadsetViewAspectRation\\r\\n3711 | \\t\\t* to adjust the requested render size to avoid squashing or stretching, and then apply letterboxing to compensate\\r\\n3712 | \\t\\t* when displaying the results. */\\r\\n3713 | \\t\\tvirtual void SetHeadsetViewSize( uint32_t nWidth, uint32_t nHeight ) = 0;\\r\\n3714 | \\r\\n3715 | \\t\\t/** Gets the current resolution used to render the headset view. */\\r\\n3716 | \\t\\tvirtual void GetHeadsetViewSize( uint32_t *pnWidth, uint32_t *pnHeight ) = 0;\\r\\n3717 | \\r\\n3718 | \\t\\t/** Set the mode used to render the headset view. */\\r\\n3719 | \\t\\tvirtual void SetHeadsetViewMode( HeadsetViewMode_t eHeadsetViewMode ) = 0;\\r\\n3720 | \\r\\n3721 | \\t\\t/** Get the current mode used to render the headset view. */\\r\\n3722 | \\t\\tvirtual HeadsetViewMode_t GetHeadsetViewMode() = 0;\\r\\n3723 | \\r\\n3724 | \\t\\t/** Set whether or not the headset view should be rendered cropped to hide the hidden area mesh or not. */\\r\\n3725 | \\t\\tvirtual void SetHeadsetViewCropped( bool bCropped ) = 0;\\r\\n3726 | \\r\\n3727 | \\t\\t/** Get the current cropping status of the headset view. */\\r\\n3728 | \\t\\tvirtual bool GetHeadsetViewCropped() = 0;\\r\\n3729 | \\r\\n3730 | \\t\\t/** Get the aspect ratio (width:height) of the uncropped headset view (accounting for the current set mode). */\\r\\n3731 | \\t\\tvirtual float GetHeadsetViewAspectRatio() = 0;\\r\\n3732 | \\r\\n3733 | \\t\\t/** Set the range [0..1] that the headset view blends across the stereo overlapped area in cropped both mode. */\\r\\n3734 | \\t\\tvirtual void SetHeadsetViewBlendRange( float flStartPct, float flEndPct ) = 0;\\r\\n3735 | \\r\\n3736 | \\t\\t/** Get the current range [0..1] that the headset view blends across the stereo overlapped area in cropped both mode. */\\r\\n3737 | \\t\\tvirtual void GetHeadsetViewBlendRange( float *pStartPct, float *pEndPct ) = 0;\\r\\n3738 | \\t};\\r\\n3739 | \\r\\n3740 | \\tstatic const uint32_t k_unHeadsetViewMaxWidth = 3840;\\r\\n3741 | \\tstatic const uint32_t k_unHeadsetViewMaxHeight = 2160;\\r\\n3742 | \\tstatic const char * const k_pchHeadsetViewOverlayKey = \\\"system.HeadsetView\\\";\\r\\n3743 | \\r\\n3744 | \\tstatic const char * const IVRHeadsetView_Version = \\\"IVRHeadsetView_001\\\";\\r\\n3745 | \\r\\n3746 | \\t/** Returns the current IVRHeadsetView pointer or NULL the interface could not be found. */\\r\\n3747 | \\tVR_INTERFACE vr::IVRHeadsetView *VR_CALLTYPE VRHeadsetView();\\r\\n3748 | \\r\\n3749 | } // namespace vr\\r\\n3750 | \\r\\n3751 | \\r\\n3752 | // ivrnotifications.h\\r\\n3753 | \\r\\n3754 | namespace vr\\r\\n3755 | {\\r\\n3756 | \\r\\n3757 | #pragma pack( push, 8 )\\r\\n3758 | \\r\\n3759 | // Used for passing graphic data\\r\\n3760 | struct NotificationBitmap_t\\r\\n3761 | {\\r\\n3762 | \\tNotificationBitmap_t()\\r\\n3763 | \\t\\t: m_pImageData( nullptr )\\r\\n3764 | \\t\\t, m_nWidth( 0 )\\r\\n3765 | \\t\\t, m_nHeight( 0 )\\r\\n3766 | \\t\\t, m_nBytesPerPixel( 0 )\\r\\n3767 | \\t{\\r\\n3768 | \\t}\\r\\n3769 | \\r\\n3770 | \\tvoid *m_pImageData;\\r\\n3771 | \\tint32_t m_nWidth;\\r\\n3772 | \\tint32_t m_nHeight;\\r\\n3773 | \\tint32_t m_nBytesPerPixel;\\r\\n3774 | };\\r\\n3775 | \\r\\n3776 | \\r\\n3777 | /** Be aware that the notification type is used as 'priority' to pick the next notification */\\r\\n3778 | enum EVRNotificationType\\r\\n3779 | {\\r\\n3780 | \\t/** Transient notifications are automatically hidden after a period of time set by the user.\\r\\n3781 | \\t* They are used for things like information and chat messages that do not require user interaction. */\\r\\n3782 | \\tEVRNotificationType_Transient = 0,\\r\\n3783 | \\r\\n3784 | \\t/** Persistent notifications are shown to the user until they are hidden by calling RemoveNotification().\\r\\n3785 | \\t* They are used for things like phone calls and alarms that require user interaction. */\\r\\n3786 | \\tEVRNotificationType_Persistent = 1,\\r\\n3787 | \\r\\n3788 | \\t/** System notifications are shown no matter what. It is expected, that the ulUserValue is used as ID.\\r\\n3789 | \\t * If there is already a system notification in the queue with that ID it is not accepted into the queue\\r\\n3790 | \\t * to prevent spamming with system notification */\\r\\n3791 | \\tEVRNotificationType_Transient_SystemWithUserValue = 2,\\r\\n3792 | };\\r\\n3793 | \\r\\n3794 | enum EVRNotificationStyle\\r\\n3795 | {\\r\\n3796 | \\t/** Creates a notification with minimal external styling. */\\r\\n3797 | \\tEVRNotificationStyle_None = 0,\\r\\n3798 | \\r\\n3799 | \\t/** Used for notifications about overlay-level status. In Steam this is used for events like downloads completing. */\\r\\n3800 | \\tEVRNotificationStyle_Application = 100,\\r\\n3801 | \\r\\n3802 | \\t/** Used for notifications about contacts that are unknown or not available. In Steam this is used for friend invitations and offline friends. */\\r\\n3803 | \\tEVRNotificationStyle_Contact_Disabled = 200,\\r\\n3804 | \\r\\n3805 | \\t/** Used for notifications about contacts that are available but inactive. In Steam this is used for friends that are online but not playing a game. */\\r\\n3806 | \\tEVRNotificationStyle_Contact_Enabled = 201,\\r\\n3807 | \\r\\n3808 | \\t/** Used for notifications about contacts that are available and active. In Steam this is used for friends that are online and currently running a game. */\\r\\n3809 | \\tEVRNotificationStyle_Contact_Active = 202,\\r\\n3810 | };\\r\\n3811 | \\r\\n3812 | static const uint32_t k_unNotificationTextMaxSize = 256;\\r\\n3813 | \\r\\n3814 | typedef uint32_t VRNotificationId;\\r\\n3815 | \\r\\n3816 | \\r\\n3817 | \\r\\n3818 | #pragma pack( pop )\\r\\n3819 | \\r\\n3820 | /** Allows notification sources to interact with the VR system. */\\r\\n3821 | class IVRNotifications\\r\\n3822 | {\\r\\n3823 | public:\\r\\n3824 | \\t/** Create a notification and enqueue it to be shown to the user.\\r\\n3825 | \\t* An overlay handle is required to create a notification, as otherwise it would be impossible for a user to act on it.\\r\\n3826 | \\t* To create a two-line notification, use a line break ('\\\\n') to split the text into two lines.\\r\\n3827 | \\t* The pImage argument may be NULL, in which case the specified overlay's icon will be used instead. */\\r\\n3828 | \\tvirtual EVRNotificationError CreateNotification( VROverlayHandle_t ulOverlayHandle, uint64_t ulUserValue, EVRNotificationType type, const char *pchText, EVRNotificationStyle style, const NotificationBitmap_t *pImage, /* out */ VRNotificationId *pNotificationId ) = 0;\\r\\n3829 | \\r\\n3830 | \\t/** Destroy a notification, hiding it first if it currently shown to the user. */\\r\\n3831 | \\tvirtual EVRNotificationError RemoveNotification( VRNotificationId notificationId ) = 0;\\r\\n3832 | \\r\\n3833 | };\\r\\n3834 | \\r\\n3835 | static const char * const IVRNotifications_Version = \\\"IVRNotifications_002\\\";\\r\\n3836 | \\r\\n3837 | } // namespace vr\\r\\n3838 | \\r\\n3839 | \\r\\n3840 | \\r\\n3841 | // ivroverlay.h\\r\\n3842 | \\r\\n3843 | namespace vr\\r\\n3844 | {\\r\\n3845 | \\r\\n3846 | \\t/** The maximum length of an overlay key in bytes, counting the terminating null character. */\\r\\n3847 | \\tstatic const uint32_t k_unVROverlayMaxKeyLength = 128;\\r\\n3848 | \\r\\n3849 | \\t/** The maximum length of an overlay name in bytes, counting the terminating null character. */\\r\\n3850 | \\tstatic const uint32_t k_unVROverlayMaxNameLength = 128;\\r\\n3851 | \\r\\n3852 | \\t/** The maximum number of overlays that can exist in the system at one time. */\\r\\n3853 | \\tstatic const uint32_t k_unMaxOverlayCount = 128;\\r\\n3854 | \\r\\n3855 | \\t/** The maximum number of overlay intersection mask primitives per overlay */\\r\\n3856 | \\tstatic const uint32_t k_unMaxOverlayIntersectionMaskPrimitivesCount = 32;\\r\\n3857 | \\r\\n3858 | \\t/** Types of input supported by VR Overlays */\\r\\n3859 | \\tenum VROverlayInputMethod\\r\\n3860 | \\t{\\r\\n3861 | \\t\\tVROverlayInputMethod_None\\t\\t= 0, // No input events will be generated automatically for this overlay\\r\\n3862 | \\t\\tVROverlayInputMethod_Mouse\\t\\t= 1, // Tracked controllers will get mouse events automatically\\r\\n3863 | \\t\\t// VROverlayInputMethod_DualAnalog = 2, // No longer supported\\r\\n3864 | \\t};\\r\\n3865 | \\r\\n3866 | \\t/** Allows the caller to figure out which overlay transform getter to call. */\\r\\n3867 | \\tenum VROverlayTransformType\\r\\n3868 | \\t{\\r\\n3869 | \\t\\tVROverlayTransform_Invalid\\t\\t\\t\\t\\t= -1,\\r\\n3870 | \\t\\tVROverlayTransform_Absolute\\t\\t\\t\\t\\t= 0,\\r\\n3871 | \\t\\tVROverlayTransform_TrackedDeviceRelative\\t= 1,\\r\\n3872 | \\t\\t//VROverlayTransform_SystemOverlay\\t\\t\\t= 2, // Deleted from the SDK.\\r\\n3873 | \\t\\tVROverlayTransform_TrackedComponent \\t\\t= 3,\\r\\n3874 | \\t\\tVROverlayTransform_Cursor\\t\\t\\t\\t\\t= 4,\\r\\n3875 | \\t\\tVROverlayTransform_DashboardTab\\t\\t\\t\\t= 5,\\r\\n3876 | \\t\\tVROverlayTransform_DashboardThumb\\t\\t\\t= 6,\\r\\n3877 | \\t\\tVROverlayTransform_Mountable\\t\\t\\t\\t= 7,\\r\\n3878 | \\t\\tVROverlayTransform_Projection\\t\\t\\t\\t= 8,\\r\\n3879 | \\t\\tVROverlayTransform_Subview\\t\\t\\t\\t\\t= 9,\\r\\n3880 | \\t};\\r\\n3881 | \\r\\n3882 | \\t/** Overlay control settings */\\r\\n3883 | \\tenum VROverlayFlags\\r\\n3884 | \\t{\\r\\n3885 | \\t\\t// Set this flag on a dashboard overlay to prevent a tab from showing up for that overlay\\r\\n3886 | \\t\\tVROverlayFlags_NoDashboardTab = 1 << 3,\\r\\n3887 | \\r\\n3888 | \\t\\t// When this is set the overlay will receive VREvent_ScrollDiscrete events like a mouse wheel.\\r\\n3889 | \\t\\t// Requires mouse input mode.\\r\\n3890 | \\t\\tVROverlayFlags_SendVRDiscreteScrollEvents = 1 << 6,\\r\\n3891 | \\r\\n3892 | \\t\\t// Indicates that the overlay would like to receive\\r\\n3893 | \\t\\tVROverlayFlags_SendVRTouchpadEvents = 1 << 7,\\r\\n3894 | \\r\\n3895 | \\t\\t// If set this will render a vertical scroll wheel on the primary controller,\\r\\n3896 | \\t\\t//  only needed if not using VROverlayFlags_SendVRScrollEvents but you still want to represent a scroll wheel\\r\\n3897 | \\t\\tVROverlayFlags_ShowTouchPadScrollWheel = 1 << 8,\\r\\n3898 | \\r\\n3899 | \\t\\t// If this is set ownership and render access to the overlay are transferred\\r\\n3900 | \\t\\t// to the new scene process on a call to IVRApplications::LaunchInternalProcess\\r\\n3901 | \\t\\tVROverlayFlags_TransferOwnershipToInternalProcess = 1 << 9,\\r\\n3902 | \\r\\n3903 | \\t\\t// If set, renders 50% of the texture in each eye, side by side\\r\\n3904 | \\t\\tVROverlayFlags_SideBySide_Parallel = 1 << 10, // Texture is left/right\\r\\n3905 | \\t\\tVROverlayFlags_SideBySide_Crossed = 1 << 11, // Texture is crossed and right/left\\r\\n3906 | \\r\\n3907 | \\t\\tVROverlayFlags_Panorama = 1 << 12, // Texture is a panorama\\r\\n3908 | \\t\\tVROverlayFlags_StereoPanorama = 1 << 13, // Texture is a stereo panorama\\r\\n3909 | \\r\\n3910 | \\t\\t// If this is set on an overlay owned by the scene application that overlay\\r\\n3911 | \\t\\t// will be sorted with the \\\"Other\\\" overlays on top of all other scene overlays\\r\\n3912 | \\t\\tVROverlayFlags_SortWithNonSceneOverlays = 1 << 14,\\r\\n3913 | \\r\\n3914 | \\t\\t// If set, the overlay will be shown in the dashboard, otherwise it will be hidden.\\r\\n3915 | \\t\\tVROverlayFlags_VisibleInDashboard = 1 << 15,\\r\\n3916 | \\r\\n3917 | \\t\\t// If this is set and the overlay's input method is not none, the system-wide laser mouse\\r\\n3918 | \\t\\t// mode will be activated whenever this overlay is visible.\\r\\n3919 | \\t\\tVROverlayFlags_MakeOverlaysInteractiveIfVisible = 1 << 16,\\r\\n3920 | \\r\\n3921 | \\t\\t// If this is set the overlay will receive smooth VREvent_ScrollSmooth that emulate trackpad scrolling.\\r\\n3922 | \\t\\t// Requires mouse input mode.\\r\\n3923 | \\t\\tVROverlayFlags_SendVRSmoothScrollEvents = 1 << 17,\\r\\n3924 | \\r\\n3925 | \\t\\t// If this is set, the overlay texture will be protected content, preventing unauthorized reads.\\r\\n3926 | \\t\\tVROverlayFlags_ProtectedContent = 1 << 18,\\r\\n3927 | \\r\\n3928 | \\t\\t// If this is set, the laser mouse splat will not be drawn over this overlay. The overlay will\\r\\n3929 | \\t\\t// be responsible for drawing its own \\\"cursor\\\".\\r\\n3930 | \\t\\tVROverlayFlags_HideLaserIntersection = 1 << 19,\\r\\n3931 | \\r\\n3932 | \\t\\t// If this is set, clicking away from the overlay will cause it to receive a VREvent_Modal_Cancel event.\\r\\n3933 | \\t\\t// This is ignored for dashboard overlays.\\r\\n3934 | \\t\\tVROverlayFlags_WantsModalBehavior = 1 << 20,\\r\\n3935 | \\r\\n3936 | \\t\\t// If this is set, alpha composition assumes the texture is pre-multiplied\\r\\n3937 | \\t\\tVROverlayFlags_IsPremultiplied = 1 << 21,\\r\\n3938 | \\r\\n3939 | \\t\\t// If this is set, the alpha values of the overlay texture will be ignored\\r\\n3940 | \\t\\tVROverlayFlags_IgnoreTextureAlpha = 1 << 22,\\r\\n3941 | \\r\\n3942 | \\t\\t// If this is set, this overlay will have a control bar drawn underneath of it in the dashboard.\\r\\n3943 | \\t\\tVROverlayFlags_EnableControlBar = 1 << 23,\\r\\n3944 | \\r\\n3945 | \\t\\t// If this is set, the overlay control bar will provide a button to toggle the keyboard.\\r\\n3946 | \\t\\tVROverlayFlags_EnableControlBarKeyboard = 1 << 24,\\r\\n3947 | \\r\\n3948 | \\t\\t// If this is set, the overlay control bar will provide a \\\"close\\\" button which will send a\\r\\n3949 | \\t\\t// VREvent_OverlayClosed event to the overlay when pressed. Applications that use this flag are responsible\\r\\n3950 | \\t\\t// for responding to the event with something that approximates \\\"closing\\\" behavior, such as destroying their\\r\\n3951 | \\t\\t// overlay and/or shutting down their application.\\r\\n3952 | \\t\\tVROverlayFlags_EnableControlBarClose = 1 << 25,\\r\\n3953 | \\r\\n3954 | \\t\\t// Do not use\\r\\n3955 | \\t\\tVROverlayFlags_Reserved = 1 << 26,\\r\\n3956 | \\r\\n3957 | \\t\\t// If this is set, click stabilization will be applied to the laser interaction so that clicks more reliably\\r\\n3958 | \\t\\t// trigger on the user's intended target\\r\\n3959 | \\t\\tVROverlayFlags_EnableClickStabilization = 1 << 27,\\r\\n3960 | \\r\\n3961 | \\t\\t// If this is set, laser mouse pointer events may be sent for the secondary laser. These events will have\\r\\n3962 | \\t\\t// cursorIndex set to 0 for the primary laser and 1 for the secondary.\\r\\n3963 | \\t\\tVROverlayFlags_MultiCursor = 1 << 28,\\r\\n3964 | \\t};\\r\\n3965 | \\r\\n3966 | \\tenum VRMessageOverlayResponse\\r\\n3967 | \\t{\\r\\n3968 | \\t\\tVRMessageOverlayResponse_ButtonPress_0 = 0,\\r\\n3969 | \\t\\tVRMessageOverlayResponse_ButtonPress_1 = 1,\\r\\n3970 | \\t\\tVRMessageOverlayResponse_ButtonPress_2 = 2,\\r\\n3971 | \\t\\tVRMessageOverlayResponse_ButtonPress_3 = 3,\\r\\n3972 | \\t\\tVRMessageOverlayResponse_CouldntFindSystemOverlay = 4,\\r\\n3973 | \\t\\tVRMessageOverlayResponse_CouldntFindOrCreateClientOverlay= 5,\\r\\n3974 | \\t\\tVRMessageOverlayResponse_ApplicationQuit = 6\\r\\n3975 | \\t};\\r\\n3976 | \\r\\n3977 | \\tstruct VROverlayIntersectionParams_t\\r\\n3978 | \\t{\\r\\n3979 | \\t\\tHmdVector3_t vSource;\\r\\n3980 | \\t\\tHmdVector3_t vDirection;\\r\\n3981 | \\t\\tETrackingUniverseOrigin eOrigin;\\r\\n3982 | \\t};\\r\\n3983 | \\r\\n3984 | \\tstruct VROverlayIntersectionResults_t\\r\\n3985 | \\t{\\r\\n3986 | \\t\\tHmdVector3_t vPoint;\\r\\n3987 | \\t\\tHmdVector3_t vNormal;\\r\\n3988 | \\t\\tHmdVector2_t vUVs;\\r\\n3989 | \\t\\tfloat fDistance;\\r\\n3990 | \\t};\\r\\n3991 | \\r\\n3992 | \\t// Input modes for the Big Picture gamepad text entry\\r\\n3993 | \\tenum EGamepadTextInputMode\\r\\n3994 | \\t{\\r\\n3995 | \\t\\tk_EGamepadTextInputModeNormal = 0,\\r\\n3996 | \\t\\tk_EGamepadTextInputModePassword = 1,\\r\\n3997 | \\t\\tk_EGamepadTextInputModeSubmit = 2,\\r\\n3998 | \\t};\\r\\n3999 | \\r\\n4000 | \\t// Controls number of allowed lines for the Big Picture gamepad text entry\\r\\n4001 | \\tenum EGamepadTextInputLineMode\\r\\n4002 | \\t{\\r\\n4003 | \\t\\tk_EGamepadTextInputLineModeSingleLine = 0,\\r\\n4004 | \\t\\tk_EGamepadTextInputLineModeMultipleLines = 1\\r\\n4005 | \\t};\\r\\n4006 | \\r\\n4007 | \\tenum EVROverlayIntersectionMaskPrimitiveType\\r\\n4008 | \\t{\\r\\n4009 | \\t\\tOverlayIntersectionPrimitiveType_Rectangle,\\r\\n4010 | \\t\\tOverlayIntersectionPrimitiveType_Circle,\\r\\n4011 | \\t};\\r\\n4012 | \\r\\n4013 | \\tstruct IntersectionMaskRectangle_t\\r\\n4014 | \\t{\\r\\n4015 | \\t\\tfloat m_flTopLeftX;\\r\\n4016 | \\t\\tfloat m_flTopLeftY;\\r\\n4017 | \\t\\tfloat m_flWidth;\\r\\n4018 | \\t\\tfloat m_flHeight;\\r\\n4019 | \\t};\\r\\n4020 | \\r\\n4021 | \\tstruct IntersectionMaskCircle_t\\r\\n4022 | \\t{\\r\\n4023 | \\t\\tfloat m_flCenterX;\\r\\n4024 | \\t\\tfloat m_flCenterY;\\r\\n4025 | \\t\\tfloat m_flRadius;\\r\\n4026 | \\t};\\r\\n4027 | \\r\\n4028 | \\t/** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py and openvr_api_flat.h.py */\\r\\n4029 | \\ttypedef union\\r\\n4030 | \\t{\\r\\n4031 | \\t\\tIntersectionMaskRectangle_t m_Rectangle;\\r\\n4032 | \\t\\tIntersectionMaskCircle_t m_Circle;\\r\\n4033 | \\t} VROverlayIntersectionMaskPrimitive_Data_t;\\r\\n4034 | \\r\\n4035 | \\tstruct VROverlayIntersectionMaskPrimitive_t\\r\\n4036 | \\t{\\r\\n4037 | \\t\\tEVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType;\\r\\n4038 | \\t\\tVROverlayIntersectionMaskPrimitive_Data_t m_Primitive;\\r\\n4039 | \\t};\\r\\n4040 | \\r\\n4041 | \\tenum EKeyboardFlags\\r\\n4042 | \\t{\\r\\n4043 | \\t\\t/** Makes the keyboard send key events immediately instead of accumulating a buffer */\\r\\n4044 | \\t\\tKeyboardFlag_Minimal = 1 << 0,\\r\\n4045 | \\t\\t/** Makes the keyboard take all focus and dismiss when clicking off the panel */\\r\\n4046 | \\t\\tKeyboardFlag_Modal = 1 << 1,\\r\\n4047 | \\t\\t/** Shows arrow keys on the keyboard when in minimal mode. Buffered (non-minimal) mode always has them. In minimal\\r\\n4048 | \\t\\t * mode, when arrow keys are pressed, they send ANSI escape sequences (e.g. \\\"\\\\x1b[D\\\" for left arrow). */\\r\\n4049 | \\t\\tKeyboardFlag_ShowArrowKeys = 1 << 2,\\r\\n4050 | \\t\\t/** Shows the hide keyboard button instead of a Done button. The Done key sends a VREvent_KeyboardDone when\\r\\n4051 | \\t\\t * clicked. Hide only sends the Closed event. */\\r\\n4052 | \\t\\tKeyboardFlag_HideDoneKey = 1 << 3,\\r\\n4053 | \\t};\\r\\n4054 | \\r\\n4055 | \\t/** Defines the project used in an overlay that is using SetOverlayTransformProjection */\\r\\n4056 | \\tstruct VROverlayProjection_t\\r\\n4057 | \\t{\\r\\n4058 | \\t\\t/** Tangent of the sides of the frustum */\\r\\n4059 | \\t\\tfloat fLeft;\\r\\n4060 | \\t\\tfloat fRight;\\r\\n4061 | \\t\\tfloat fTop;\\r\\n4062 | \\t\\tfloat fBottom;\\r\\n4063 | \\t};\\r\\n4064 | \\r\\n4065 | \\tclass IVROverlay\\r\\n4066 | \\t{\\r\\n4067 | \\tpublic:\\r\\n4068 | \\r\\n4069 | \\t\\t// ---------------------------------------------\\r\\n4070 | \\t\\t// Overlay management methods\\r\\n4071 | \\t\\t// ---------------------------------------------\\r\\n4072 | \\r\\n4073 | \\t\\t/** Finds an existing overlay with the specified key. */\\r\\n4074 | \\t\\tvirtual EVROverlayError FindOverlay( const char *pchOverlayKey, VROverlayHandle_t * pOverlayHandle ) = 0;\\r\\n4075 | \\r\\n4076 | \\t\\t/** Creates a new named overlay. All overlays start hidden and with default settings. */\\r\\n4077 | \\t\\tvirtual EVROverlayError CreateOverlay( const char *pchOverlayKey, const char *pchOverlayName, VROverlayHandle_t * pOverlayHandle ) = 0;\\r\\n4078 | \\r\\n4079 | \\t\\t/** Destroys the specified overlay. When an application calls VR_Shutdown all overlays created by that app are\\r\\n4080 | \\t\\t* automatically destroyed. */\\r\\n4081 | \\t\\tvirtual EVROverlayError DestroyOverlay( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4082 | \\r\\n4083 | \\t\\t/** Fills the provided buffer with the string key of the overlay. Returns the size of buffer required to store the key, including\\r\\n4084 | \\t\\t* the terminating null character. k_unVROverlayMaxKeyLength will be enough bytes to fit the string. */\\r\\n4085 | \\t\\tvirtual uint32_t GetOverlayKey( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) = 0;\\r\\n4086 | \\r\\n4087 | \\t\\t/** Fills the provided buffer with the friendly name of the overlay. Returns the size of buffer required to store the key, including\\r\\n4088 | \\t\\t* the terminating null character. k_unVROverlayMaxNameLength will be enough bytes to fit the string. */\\r\\n4089 | \\t\\tvirtual uint32_t GetOverlayName( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) = 0;\\r\\n4090 | \\r\\n4091 | \\t\\t/** set the name to use for this overlay */\\r\\n4092 | \\t\\tvirtual EVROverlayError SetOverlayName( VROverlayHandle_t ulOverlayHandle, const char *pchName ) = 0;\\r\\n4093 | \\r\\n4094 | \\t\\t/** Gets the raw image data from an overlay. Overlay image data is always returned as RGBA data, 4 bytes per pixel. If the buffer is not large enough, width and height\\r\\n4095 | \\t\\t* will be set and VROverlayError_ArrayTooSmall is returned. */\\r\\n4096 | \\t\\tvirtual EVROverlayError GetOverlayImageData( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unBufferSize, uint32_t *punWidth, uint32_t *punHeight ) = 0;\\r\\n4097 | \\r\\n4098 | \\t\\t/** returns a string that corresponds with the specified overlay error. The string will be the name\\r\\n4099 | \\t\\t* of the error enum value for all valid error codes */\\r\\n4100 | \\t\\tvirtual const char *GetOverlayErrorNameFromEnum( EVROverlayError error ) = 0;\\r\\n4101 | \\r\\n4102 | \\t\\t// ---------------------------------------------\\r\\n4103 | \\t\\t// Overlay rendering methods\\r\\n4104 | \\t\\t// ---------------------------------------------\\r\\n4105 | \\r\\n4106 | \\t\\t/** Sets the pid that is allowed to render to this overlay (the creator pid is always allow to render),\\r\\n4107 | \\t\\t*\\tby default this is the pid of the process that made the overlay */\\r\\n4108 | \\t\\tvirtual EVROverlayError SetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle, uint32_t unPID ) = 0;\\r\\n4109 | \\r\\n4110 | \\t\\t/** Gets the pid that is allowed to render to this overlay */\\r\\n4111 | \\t\\tvirtual uint32_t GetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4112 | \\r\\n4113 | \\t\\t/** Specify flag setting for a given overlay */\\r\\n4114 | \\t\\tvirtual EVROverlayError SetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled ) = 0;\\r\\n4115 | \\r\\n4116 | \\t\\t/** Sets flag setting for a given overlay */\\r\\n4117 | \\t\\tvirtual EVROverlayError GetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool *pbEnabled ) = 0;\\r\\n4118 | \\r\\n4119 | \\t\\t/** Gets all the flags for a given overlay */\\r\\n4120 | \\t\\tvirtual EVROverlayError GetOverlayFlags( VROverlayHandle_t ulOverlayHandle, uint32_t *pFlags ) = 0;\\r\\n4121 | \\r\\n4122 | \\t\\t/** Sets the color tint of the overlay quad. Use 0.0 to 1.0 per channel. */\\r\\n4123 | \\t\\tvirtual EVROverlayError SetOverlayColor( VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue ) = 0;\\r\\n4124 | \\r\\n4125 | \\t\\t/** Gets the color tint of the overlay quad. */\\r\\n4126 | \\t\\tvirtual EVROverlayError GetOverlayColor( VROverlayHandle_t ulOverlayHandle, float *pfRed, float *pfGreen, float *pfBlue ) = 0;\\r\\n4127 | \\r\\n4128 | \\t\\t/** Sets the alpha of the overlay quad. Use 1.0 for 100 percent opacity to 0.0 for 0 percent opacity. */\\r\\n4129 | \\t\\tvirtual EVROverlayError SetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float fAlpha ) = 0;\\r\\n4130 | \\r\\n4131 | \\t\\t/** Gets the alpha of the overlay quad. By default overlays are rendering at 100 percent alpha (1.0). */\\r\\n4132 | \\t\\tvirtual EVROverlayError GetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float *pfAlpha ) = 0;\\r\\n4133 | \\r\\n4134 | \\t\\t/** Sets the aspect ratio of the texels in the overlay. 1.0 means the texels are square. 2.0 means the texels\\r\\n4135 | \\t\\t* are twice as wide as they are tall. Defaults to 1.0. */\\r\\n4136 | \\t\\tvirtual EVROverlayError SetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float fTexelAspect ) = 0;\\r\\n4137 | \\r\\n4138 | \\t\\t/** Gets the aspect ratio of the texels in the overlay. Defaults to 1.0 */\\r\\n4139 | \\t\\tvirtual EVROverlayError GetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float *pfTexelAspect ) = 0;\\r\\n4140 | \\r\\n4141 | \\t\\t/** Sets the rendering sort order for the overlay. Overlays are rendered this order:\\r\\n4142 | \\t\\t*      Overlays owned by the scene application\\r\\n4143 | \\t\\t*      Overlays owned by some other application\\r\\n4144 | \\t\\t*\\r\\n4145 | \\t\\t*\\tWithin a category overlays are rendered lowest sort order to highest sort order. Overlays with the same\\r\\n4146 | \\t\\t*\\tsort order are rendered back to front base on distance from the HMD.\\r\\n4147 | \\t\\t*\\r\\n4148 | \\t\\t*\\tSubview overlays are always drawn immediately on top of their parent overlay, and the sort order is\\r\\n4149 | \\t\\t*\\tonly relative to their peer subviews for that overlay.\\r\\n4150 | \\t\\t*\\r\\n4151 | \\t\\t*\\tSort order defaults to 0. */\\r\\n4152 | \\t\\tvirtual EVROverlayError SetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder ) = 0;\\r\\n4153 | \\r\\n4154 | \\t\\t/** Gets the sort order of the overlay. See SetOverlaySortOrder for how this works. */\\r\\n4155 | \\t\\tvirtual EVROverlayError GetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t *punSortOrder ) = 0;\\r\\n4156 | \\r\\n4157 | \\t\\t/** Sets the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across */\\r\\n4158 | \\t\\tvirtual EVROverlayError SetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float fWidthInMeters ) = 0;\\r\\n4159 | \\r\\n4160 | \\t\\t/** Returns the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across */\\r\\n4161 | \\t\\tvirtual EVROverlayError GetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float *pfWidthInMeters ) = 0;\\r\\n4162 | \\r\\n4163 | \\t\\t/** Use to draw overlay as a curved surface. Curvature is a percentage from (0..1] where 1 is a fully closed cylinder.\\r\\n4164 | \\t\\t* For a specific radius, curvature can be computed as: overlay.width / (2 PI r). */\\r\\n4165 | \\t\\tvirtual EVROverlayError SetOverlayCurvature( VROverlayHandle_t ulOverlayHandle, float fCurvature ) = 0;\\r\\n4166 | \\r\\n4167 | \\t\\t/** Returns the curvature of the overlay as a percentage from (0..1] where 1 is a fully closed cylinder. */\\r\\n4168 | \\t\\tvirtual EVROverlayError GetOverlayCurvature( VROverlayHandle_t ulOverlayHandle, float *pfCurvature ) = 0;\\r\\n4169 | \\r\\n4170 | \\t\\t/** Sets the pitch angle (in radians) of the overlay before curvature is applied -- to form a fan or disk. */\\r\\n4171 | \\t\\tvirtual EVROverlayError SetOverlayPreCurvePitch( VROverlayHandle_t ulOverlayHandle, float fRadians ) = 0;\\r\\n4172 | \\r\\n4173 | \\t\\t/** Returns the overlay's set pre-curve pitch angle (in radians). */\\r\\n4174 | \\t\\tvirtual EVROverlayError GetOverlayPreCurvePitch( VROverlayHandle_t ulOverlayHandle, float *pfRadians ) = 0;\\r\\n4175 | \\r\\n4176 | \\t\\t/** Sets the colorspace the overlay texture's data is in.  Defaults to 'auto'.\\r\\n4177 | \\t\\t* If the texture needs to be resolved, you should call SetOverlayTexture with the appropriate colorspace instead. */\\r\\n4178 | \\t\\tvirtual EVROverlayError SetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace ) = 0;\\r\\n4179 | \\r\\n4180 | \\t\\t/** Gets the overlay's current colorspace setting. */\\r\\n4181 | \\t\\tvirtual EVROverlayError GetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace *peTextureColorSpace ) = 0;\\r\\n4182 | \\r\\n4183 | \\t\\t/** Sets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner. */\\r\\n4184 | \\t\\tvirtual EVROverlayError SetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, const VRTextureBounds_t *pOverlayTextureBounds ) = 0;\\r\\n4185 | \\r\\n4186 | \\t\\t/** Gets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner. */\\r\\n4187 | \\t\\tvirtual EVROverlayError GetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, VRTextureBounds_t *pOverlayTextureBounds ) = 0;\\r\\n4188 | \\r\\n4189 | \\t\\t/** Returns the transform type of this overlay. */\\r\\n4190 | \\t\\tvirtual EVROverlayError GetOverlayTransformType( VROverlayHandle_t ulOverlayHandle, VROverlayTransformType *peTransformType ) = 0;\\r\\n4191 | \\r\\n4192 | \\t\\t/** Sets the transform to absolute tracking origin. */\\r\\n4193 | \\t\\tvirtual EVROverlayError SetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) = 0;\\r\\n4194 | \\r\\n4195 | \\t\\t/** Gets the transform if it is absolute. Returns an error if the transform is some other type. */\\r\\n4196 | \\t\\tvirtual EVROverlayError GetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin *peTrackingOrigin, HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) = 0;\\r\\n4197 | \\r\\n4198 | \\t\\t/** Sets the transform to relative to the transform of the specified tracked device. */\\r\\n4199 | \\t\\tvirtual EVROverlayError SetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, const HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) = 0;\\r\\n4200 | \\r\\n4201 | \\t\\t/** Gets the transform if it is relative to a tracked device. Returns an error if the transform is some other type. */\\r\\n4202 | \\t\\tvirtual EVROverlayError GetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punTrackedDevice, HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) = 0;\\r\\n4203 | \\r\\n4204 | \\t\\t/** Sets the transform to draw the overlay on a rendermodel component mesh instead of a quad. This will only draw when the system is\\r\\n4205 | \\t\\t* drawing the device. Overlays with this transform type cannot receive mouse events. */\\r\\n4206 | \\t\\tvirtual EVROverlayError SetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, const char *pchComponentName ) = 0;\\r\\n4207 | \\r\\n4208 | \\t\\t/** Gets the transform information when the overlay is rendering on a component. */\\r\\n4209 | \\t\\tvirtual EVROverlayError GetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, VR_OUT_STRING() char *pchComponentName, uint32_t unComponentNameSize ) = 0;\\r\\n4210 | \\r\\n4211 | \\t\\t/** Sets the hotspot for the specified overlay when that overlay is used as a cursor. These are in texture space with 0,0 in the upper left corner of\\r\\n4212 | \\t\\t* the texture and 1,1 in the lower right corner of the texture. */\\r\\n4213 | \\t\\tvirtual EVROverlayError SetOverlayTransformCursor( VROverlayHandle_t ulCursorOverlayHandle, const HmdVector2_t *pvHotspot ) = 0;\\r\\n4214 | \\r\\n4215 | \\t\\t/** Gets cursor hotspot/transform for the specified overlay */\\r\\n4216 | \\t\\tvirtual vr::EVROverlayError GetOverlayTransformCursor( VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvHotspot ) = 0;\\r\\n4217 | \\r\\n4218 | \\t\\t/** Sets the overlay as a projection overlay */\\r\\n4219 | \\t\\tvirtual vr::EVROverlayError SetOverlayTransformProjection( VROverlayHandle_t ulOverlayHandle,\\r\\n4220 | \\t\\t\\tETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t* pmatTrackingOriginToOverlayTransform,\\r\\n4221 | \\t\\t\\tconst VROverlayProjection_t *pProjection, vr::EVREye eEye ) = 0;\\r\\n4222 | \\r\\n4223 | \\t\\t/** Shows the VR overlay. Not applicable for Dashboard Overlays. */\\r\\n4224 | \\t\\tvirtual EVROverlayError ShowOverlay( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4225 | \\r\\n4226 | \\t\\t/** Hides the VR overlay. Not applicable for Dashboard Overlays. */\\r\\n4227 | \\t\\tvirtual EVROverlayError HideOverlay( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4228 | \\r\\n4229 | \\t\\t/** Returns true if the overlay is currently visible, applicable for all overlay types except Dashboard Thumbnail overlays. VREvent_OverlayShown and VREvent_OverlayHidden reflect changes to this value. */\\r\\n4230 | \\t\\tvirtual bool IsOverlayVisible( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4231 | \\r\\n4232 | \\t\\t/** Get the transform in 3d space associated with a specific 2d point in the overlay's coordinate space (where 0,0 is the lower left). -Z points out of the overlay */\\r\\n4233 | \\t\\tvirtual EVROverlayError GetTransformForOverlayCoordinates( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform ) = 0;\\r\\n4234 | \\r\\n4235 | \\t\\t/** This function will block until the top of each frame, and can therefore be used to synchronize with the runtime's update rate.\\r\\n4236 | \\t\\t* Note: In non-async mode, some signals may be dropped due to scene app performance, so passing a timeout of 1000/refresh rate\\r\\n4237 | \\t\\t* may be useful depending on the overlay app's desired behavior. */\\r\\n4238 | \\t\\tvirtual EVROverlayError WaitFrameSync( uint32_t nTimeoutMs ) = 0;\\r\\n4239 | \\r\\n4240 | \\t\\t// ---------------------------------------------\\r\\n4241 | \\t\\t// Overlay input methods\\r\\n4242 | \\t\\t// ---------------------------------------------\\r\\n4243 | \\r\\n4244 | \\t\\t/** Returns true and fills the event with the next event on the overlay's event queue, if there is one.\\r\\n4245 | \\t\\t* If there are no events this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */\\r\\n4246 | \\t\\tvirtual bool PollNextOverlayEvent( VROverlayHandle_t ulOverlayHandle, VREvent_t *pEvent, uint32_t uncbVREvent ) = 0;\\r\\n4247 | \\r\\n4248 | \\t\\t/** Returns the current input settings for the specified overlay. */\\r\\n4249 | \\t\\tvirtual EVROverlayError GetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod *peInputMethod ) = 0;\\r\\n4250 | \\r\\n4251 | \\t\\t/** Sets the input settings for the specified overlay. */\\r\\n4252 | \\t\\tvirtual EVROverlayError SetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod ) = 0;\\r\\n4253 | \\r\\n4254 | \\t\\t/** Gets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is\\r\\n4255 | \\t\\t* typically the size of the underlying UI in pixels. */\\r\\n4256 | \\t\\tvirtual EVROverlayError GetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvecMouseScale ) = 0;\\r\\n4257 | \\r\\n4258 | \\t\\t/** Sets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is\\r\\n4259 | \\t\\t* typically the size of the underlying UI in pixels (not in world space). */\\r\\n4260 | \\t\\tvirtual EVROverlayError SetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, const HmdVector2_t *pvecMouseScale ) = 0;\\r\\n4261 | \\r\\n4262 | \\t\\t/** Computes the overlay-space pixel coordinates of where the ray intersects the overlay with the\\r\\n4263 | \\t\\t* specified settings. Returns false if there is no intersection. */\\r\\n4264 | \\t\\tvirtual bool ComputeOverlayIntersection( VROverlayHandle_t ulOverlayHandle, const VROverlayIntersectionParams_t *pParams, VROverlayIntersectionResults_t *pResults ) = 0;\\r\\n4265 | \\r\\n4266 | \\t\\t/** Returns true if the specified overlay is the hover target. An overlay is the hover target when it is the last overlay \\\"moused over\\\"\\r\\n4267 | \\t\\t* by the virtual mouse pointer */\\r\\n4268 | \\t\\tvirtual bool IsHoverTargetOverlay( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4269 | \\r\\n4270 | \\t\\t/** Sets a list of primitives to be used for controller ray intersection\\r\\n4271 | \\t\\t* typically the size of the underlying UI in pixels (not in world space). */\\r\\n4272 | \\t\\tvirtual EVROverlayError SetOverlayIntersectionMask( VROverlayHandle_t ulOverlayHandle, VROverlayIntersectionMaskPrimitive_t *pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize = sizeof( VROverlayIntersectionMaskPrimitive_t ) ) = 0;\\r\\n4273 | \\r\\n4274 | \\t\\t/** Triggers a haptic event on the laser mouse controller for the specified overlay */\\r\\n4275 | \\t\\tvirtual EVROverlayError TriggerLaserMouseHapticVibration( VROverlayHandle_t ulOverlayHandle, float fDurationSeconds, float fFrequency, float fAmplitude ) = 0;\\r\\n4276 | \\r\\n4277 | \\t\\t/** Sets the cursor to use for the specified overlay. This will be drawn instead of the generic blob when the laser mouse is pointed at the specified overlay */\\r\\n4278 | \\t\\tvirtual EVROverlayError SetOverlayCursor( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulCursorHandle ) = 0;\\r\\n4279 | \\r\\n4280 | \\t\\t/** Sets the override cursor position to use for this overlay in overlay mouse coordinates. This position will be used to draw the cursor\\r\\n4281 | \\t\\t* instead of whatever the laser mouse cursor position is. */\\r\\n4282 | \\t\\tvirtual EVROverlayError SetOverlayCursorPositionOverride( VROverlayHandle_t ulOverlayHandle, const HmdVector2_t *pvCursor ) = 0;\\r\\n4283 | \\r\\n4284 | \\t\\t/** Clears the override cursor position for this overlay */\\r\\n4285 | \\t\\tvirtual EVROverlayError ClearOverlayCursorPositionOverride( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4286 | \\r\\n4287 | \\t\\t// ---------------------------------------------\\r\\n4288 | \\t\\t// Overlay texture methods\\r\\n4289 | \\t\\t// ---------------------------------------------\\r\\n4290 | \\r\\n4291 | \\t\\t/** Texture to draw for the overlay. This function can only be called by the overlay's creator or renderer process (see SetOverlayRenderingPid) .\\r\\n4292 | \\t\\t*\\r\\n4293 | \\t\\t* OpenGL dirty state:\\r\\n4294 | \\t\\t*\\tglBindTexture\\r\\n4295 | \\t\\t*/\\r\\n4296 | \\t\\tvirtual EVROverlayError SetOverlayTexture( VROverlayHandle_t ulOverlayHandle, const Texture_t *pTexture ) = 0;\\r\\n4297 | \\r\\n4298 | \\t\\t/** Use this to tell the overlay system to release the texture set for this overlay. */\\r\\n4299 | \\t\\tvirtual EVROverlayError ClearOverlayTexture( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4300 | \\r\\n4301 | \\t\\t/** Separate interface for providing the data as a stream of bytes, but there is an upper bound on data\\r\\n4302 | \\t\\t* that can be sent. This function can only be called by the overlay's renderer process. */\\r\\n4303 | \\t\\tvirtual EVROverlayError SetOverlayRaw( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unBytesPerPixel ) = 0;\\r\\n4304 | \\r\\n4305 | \\t\\t/** Separate interface for providing the image through a filename: can be png or jpg, and should not be bigger than 1920x1080.\\r\\n4306 | \\t\\t* This function can only be called by the overlay's renderer process */\\r\\n4307 | \\t\\tvirtual EVROverlayError SetOverlayFromFile( VROverlayHandle_t ulOverlayHandle, const char *pchFilePath ) = 0;\\r\\n4308 | \\r\\n4309 | \\t\\t/** Get the native texture handle/device for an overlay you have created.\\r\\n4310 | \\t\\t* On windows this handle will be a ID3D11ShaderResourceView with a ID3D11Texture2D bound.\\r\\n4311 | \\t\\t*\\r\\n4312 | \\t\\t* The texture will always be sized to match the backing texture you supplied in SetOverlayTexture above.\\r\\n4313 | \\t\\t*\\r\\n4314 | \\t\\t* You MUST call ReleaseNativeOverlayHandle() with pNativeTextureHandle once you are done with this texture.\\r\\n4315 | \\t\\t*\\r\\n4316 | \\t\\t* pNativeTextureHandle is an OUTPUT, it will be a pointer to a ID3D11ShaderResourceView *.\\r\\n4317 | \\t\\t* pNativeTextureRef is an INPUT and should be a ID3D11Resource *. The device used by pNativeTextureRef will be used to bind pNativeTextureHandle.\\r\\n4318 | \\t\\t*/\\r\\n4319 | \\t\\tvirtual EVROverlayError GetOverlayTexture( VROverlayHandle_t ulOverlayHandle, void **pNativeTextureHandle, void *pNativeTextureRef, uint32_t *pWidth, uint32_t *pHeight, uint32_t *pNativeFormat, ETextureType *pAPIType, EColorSpace *pColorSpace, VRTextureBounds_t *pTextureBounds ) = 0;\\r\\n4320 | \\r\\n4321 | \\t\\t/** Release the pNativeTextureHandle provided from the GetOverlayTexture call, this allows the system to free the underlying GPU resources for this object,\\r\\n4322 | \\t\\t* so only do it once you stop rendering this texture.\\r\\n4323 | \\t\\t*/\\r\\n4324 | \\t\\tvirtual EVROverlayError ReleaseNativeOverlayHandle( VROverlayHandle_t ulOverlayHandle, void *pNativeTextureHandle ) = 0;\\r\\n4325 | \\r\\n4326 | \\t\\t/** Get the size of the overlay texture */\\r\\n4327 | \\t\\tvirtual EVROverlayError GetOverlayTextureSize( VROverlayHandle_t ulOverlayHandle, uint32_t *pWidth, uint32_t *pHeight ) = 0;\\r\\n4328 | \\r\\n4329 | \\t\\t// ----------------------------------------------\\r\\n4330 | \\t\\t// Dashboard Overlay Methods\\r\\n4331 | \\t\\t// ----------------------------------------------\\r\\n4332 | \\r\\n4333 | \\t\\t/** Creates a dashboard overlay and returns its handle */\\r\\n4334 | \\t\\tvirtual EVROverlayError CreateDashboardOverlay( const char *pchOverlayKey, const char *pchOverlayFriendlyName, VROverlayHandle_t * pMainHandle, VROverlayHandle_t *pThumbnailHandle ) = 0;\\r\\n4335 | \\r\\n4336 | \\t\\t/** Returns true if the dashboard is visible */\\r\\n4337 | \\t\\tvirtual bool IsDashboardVisible() = 0;\\r\\n4338 | \\r\\n4339 | \\t\\t/** returns true if the dashboard is visible and the specified overlay is the active system Overlay */\\r\\n4340 | \\t\\tvirtual bool IsActiveDashboardOverlay( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4341 | \\r\\n4342 | \\t\\t/** Sets the dashboard overlay to only appear when the specified process ID has scene focus */\\r\\n4343 | \\t\\tvirtual EVROverlayError SetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId ) = 0;\\r\\n4344 | \\r\\n4345 | \\t\\t/** Gets the process ID that this dashboard overlay requires to have scene focus */\\r\\n4346 | \\t\\tvirtual EVROverlayError GetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t *punProcessId ) = 0;\\r\\n4347 | \\r\\n4348 | \\t\\t/** Shows the dashboard. */\\r\\n4349 | \\t\\tvirtual void ShowDashboard( const char *pchOverlayToShow ) = 0;\\r\\n4350 | \\r\\n4351 | \\t\\t/** Returns the tracked device index that has the laser pointer in the dashboard, or the last one that was used. */\\r\\n4352 | \\t\\tvirtual vr::TrackedDeviceIndex_t GetPrimaryDashboardDevice() = 0;\\r\\n4353 | \\r\\n4354 | \\t\\t// ---------------------------------------------\\r\\n4355 | \\t\\t// Keyboard methods\\r\\n4356 | \\t\\t// ---------------------------------------------\\r\\n4357 | \\r\\n4358 | \\t\\t/** Show the virtual keyboard to accept input. In most cases, you should pass KeyboardFlag_Modal to enable modal overlay\\r\\n4359 | \\t\\t* behavior on the keyboard itself. See EKeyboardFlags for more. */\\r\\n4360 | \\t\\tvirtual EVROverlayError ShowKeyboard( EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, uint32_t unFlags,\\r\\n4361 | \\t\\t\\tconst char *pchDescription, uint32_t unCharMax, const char *pchExistingText, uint64_t uUserValue ) = 0;\\r\\n4362 | \\r\\n4363 | \\t\\t/** Show the virtual keyboard to accept input for an overlay. In most cases, you should pass KeyboardFlag_Modal to enable modal\\r\\n4364 | \\t\\t* overlay behavior on the keyboard itself. See EKeyboardFlags for more. */\\r\\n4365 | \\t\\tvirtual EVROverlayError ShowKeyboardForOverlay( VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode,\\r\\n4366 | \\t\\t\\tEGamepadTextInputLineMode eLineInputMode, uint32_t unFlags, const char *pchDescription, uint32_t unCharMax,\\r\\n4367 | \\t\\t\\tconst char *pchExistingText, uint64_t uUserValue ) = 0;\\r\\n4368 | \\r\\n4369 | \\t\\t/** Get the text that was entered into the text input **/\\r\\n4370 | \\t\\tvirtual uint32_t GetKeyboardText( VR_OUT_STRING() char *pchText, uint32_t cchText ) = 0;\\r\\n4371 | \\r\\n4372 | \\t\\t/** Hide the virtual keyboard **/\\r\\n4373 | \\t\\tvirtual void HideKeyboard() = 0;\\r\\n4374 | \\r\\n4375 | \\t\\t/** Set the position of the keyboard in world space **/\\r\\n4376 | \\t\\tvirtual void SetKeyboardTransformAbsolute( ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToKeyboardTransform ) = 0;\\r\\n4377 | \\r\\n4378 | \\t\\t/** Set the position of the keyboard in overlay space by telling it to avoid a rectangle in the overlay. Rectangle coords have (0,0) in the bottom left **/\\r\\n4379 | \\t\\tvirtual void SetKeyboardPositionForOverlay( VROverlayHandle_t ulOverlayHandle, HmdRect2_t avoidRect ) = 0;\\r\\n4380 | \\r\\n4381 | \\t\\t// ---------------------------------------------\\r\\n4382 | \\t\\t// Message box methods\\r\\n4383 | \\t\\t// ---------------------------------------------\\r\\n4384 | \\r\\n4385 | \\t\\t/** Show the message overlay. This will block and return you a result. **/\\r\\n4386 | \\t\\tvirtual VRMessageOverlayResponse ShowMessageOverlay( const char* pchText, const char* pchCaption, const char* pchButton0Text, const char* pchButton1Text = nullptr, const char* pchButton2Text = nullptr, const char* pchButton3Text = nullptr ) = 0;\\r\\n4387 | \\r\\n4388 | \\t\\t/** If the calling process owns the overlay and it's open, this will close it. **/\\r\\n4389 | \\t\\tvirtual void CloseMessageOverlay() = 0;\\r\\n4390 | \\t};\\r\\n4391 | \\r\\n4392 | \\tstatic const char * const IVROverlay_Version = \\\"IVROverlay_027\\\";\\r\\n4393 | \\r\\n4394 | } // namespace vr\\r\\n4395 | \\r\\n4396 | // ivroverlayview.h\\r\\n4397 | \\r\\n4398 | namespace vr\\r\\n4399 | {\\r\\n4400 | \\tstruct VROverlayView_t\\r\\n4401 | \\t{\\r\\n4402 | \\t\\tVROverlayHandle_t overlayHandle;\\r\\n4403 | \\t\\tTexture_t texture;\\r\\n4404 | \\t\\tVRTextureBounds_t textureBounds;\\r\\n4405 | \\t};\\r\\n4406 | \\r\\n4407 | \\tenum EDeviceType\\r\\n4408 | \\t{\\r\\n4409 | \\t\\tDeviceType_Invalid           = -1, // Invalid handle\\r\\n4410 | \\t\\tDeviceType_DirectX11         = 0, // Handle is an ID3D11Device\\r\\n4411 | \\t\\tDeviceType_Vulkan            = 1, // Handle is a pointer to a VRVulkanDevice_t structure\\r\\n4412 | \\t};\\r\\n4413 | \\r\\n4414 | \\tstruct VRVulkanDevice_t\\r\\n4415 | \\t{\\r\\n4416 | \\t\\tVkInstance_T *m_pInstance;\\r\\n4417 | \\t\\tVkDevice_T *m_pDevice;\\r\\n4418 | \\t\\tVkPhysicalDevice_T *m_pPhysicalDevice;\\r\\n4419 | \\t\\tVkQueue_T *m_pQueue;\\r\\n4420 | \\t\\tuint32_t m_uQueueFamilyIndex;\\r\\n4421 | \\t};\\r\\n4422 | \\r\\n4423 | \\tstruct VRNativeDevice_t\\r\\n4424 | \\t{\\r\\n4425 | \\t\\tvoid *handle; // See EDeviceType definition above\\r\\n4426 | \\t\\tEDeviceType eType;\\r\\n4427 | \\t};\\r\\n4428 | \\r\\n4429 | \\tclass IVROverlayView\\r\\n4430 | \\t{\\r\\n4431 | \\tpublic:\\r\\n4432 | \\t\\t/** Acquire an OverlayView_t from an overlay handle\\r\\n4433 | \\t\\t*\\r\\n4434 | \\t\\t* The overlay view can be used to sample the contents directly by a native API. The\\r\\n4435 | \\t\\t* contents of the OverlayView_t will remain unchanged through the lifetime of the\\r\\n4436 | \\t\\t* OverlayView_t.\\r\\n4437 | \\t\\t*\\r\\n4438 | \\t\\t* The caller acquires read privileges over the OverlayView_t, but should not\\r\\n4439 | \\t\\t* write to it.\\r\\n4440 | \\t\\t*\\r\\n4441 | \\t\\t* AcquireOverlayView() may be called on the same ulOverlayHandle multiple times to\\r\\n4442 | \\t\\t* refresh the image contents. In this case the caller is strongly encouraged to re-use\\r\\n4443 | \\t\\t* the same pOverlayView for all re-acquisition calls.\\r\\n4444 | \\t\\t*\\r\\n4445 | \\t\\t* If the producer has not yet queued an image, AcquireOverlayView will return success,\\r\\n4446 | \\t\\t* and the Texture_t will have the expected ETextureType. However, the Texture_t->handle\\r\\n4447 | \\t\\t* will be nullptr. Once the producer generates the first overlay frame, Texture_t->handle\\r\\n4448 | \\t\\t* will become a valid handle.\\r\\n4449 | \\t\\t*/\\r\\n4450 | \\t\\tvirtual EVROverlayError AcquireOverlayView(VROverlayHandle_t ulOverlayHandle, VRNativeDevice_t *pNativeDevice, VROverlayView_t *pOverlayView, uint32_t unOverlayViewSize ) = 0;\\r\\n4451 | \\r\\n4452 | \\t\\t/** Release an acquired OverlayView_t\\r\\n4453 | \\t\\t*\\r\\n4454 | \\t\\t* Denotes that pOverlayView will no longer require access to the resources it acquired in\\r\\n4455 | \\t\\t* all previous calls to AcquireOverlayView().\\r\\n4456 | \\t\\t*\\r\\n4457 | \\t\\t* All OverlayView_t*'s provided to AcquireOverlayView() as pOverlayViews must be\\r\\n4458 | \\t\\t* passed into ReleaseOverlayView() in order for the underlying GPU resources to be freed.\\r\\n4459 | \\t\\t*/\\r\\n4460 | \\t\\tvirtual EVROverlayError ReleaseOverlayView(VROverlayView_t *pOverlayView) = 0;\\r\\n4461 | \\r\\n4462 | \\t\\t/** Posts an overlay event */\\r\\n4463 | \\t\\tvirtual void PostOverlayEvent(VROverlayHandle_t ulOverlayHandle, const VREvent_t *pvrEvent) = 0;\\r\\n4464 | \\r\\n4465 | \\t\\t/** Determines whether this process is permitted to view an overlay's content. */\\r\\n4466 | \\t\\tvirtual bool IsViewingPermitted( VROverlayHandle_t ulOverlayHandle ) = 0;\\r\\n4467 | \\r\\n4468 | \\t};\\r\\n4469 | \\r\\n4470 | \\tstatic const char * const IVROverlayView_Version = \\\"IVROverlayView_003\\\";\\r\\n4471 | \\r\\n4472 | }\\r\\n4473 | \\r\\n4474 | // ivrrendermodels.h\\r\\n4475 | \\r\\n4476 | namespace vr\\r\\n4477 | {\\r\\n4478 | \\r\\n4479 | static const char * const k_pch_Controller_Component_GDC2015 = \\\"gdc2015\\\";\\t\\t\\t// Canonical coordinate system of the gdc 2015 wired controller, provided for backwards compatibility\\r\\n4480 | static const char * const k_pch_Controller_Component_Base = \\\"base\\\";\\t\\t\\t\\t\\t// For controllers with an unambiguous 'base'.\\r\\n4481 | static const char * const k_pch_Controller_Component_Tip = \\\"tip\\\";\\t\\t\\t\\t\\t// OpenVR: For controllers with an unambiguous 'tip' (used for 'laser-pointing')\\r\\n4482 | static const char * const k_pch_Controller_Component_OpenXR_Aim= \\\"openxr_aim\\\";      // OpenXR: For controllers with an unambiguous 'tip' (used for 'laser-pointing')\\r\\n4483 | static const char * const k_pch_Controller_Component_HandGrip = \\\"handgrip\\\";\\t\\t\\t// OpenVR: Neutral, ambidextrous hand-pose when holding controller. On plane between neutrally posed index finger and thumb\\r\\n4484 | static const char * const k_pch_Controller_Component_OpenXR_Grip = \\\"openxr_grip\\\";\\t\\t\\t// OpenXR: Neutral, ambidextrous hand-pose when holding controller. On plane between neutrally posed index finger and thumb\\r\\n4485 | static const char * const k_pch_Controller_Component_OpenXR_HandModel = \\\"openxr_handmodel\\\";\\t// OpenXR: Pose that can be used to place hand models & visuals that aren't reliant on the physical shape of a controller\\r\\n4486 | static const char * const k_pch_Controller_Component_Status = \\\"status\\\";\\t\\t\\t\\t\\t\\t// 1:1 aspect ratio status area, with canonical [0,1] uv mapping\\r\\n4487 | \\r\\n4488 | #pragma pack( push, 8 )\\r\\n4489 | \\r\\n4490 | /** Errors that can occur with the VR compositor */\\r\\n4491 | enum EVRRenderModelError\\r\\n4492 | {\\r\\n4493 | \\tVRRenderModelError_None = 0,\\r\\n4494 | \\tVRRenderModelError_Loading = 100,\\r\\n4495 | \\tVRRenderModelError_NotSupported = 200,\\r\\n4496 | \\tVRRenderModelError_InvalidArg = 300,\\r\\n4497 | \\tVRRenderModelError_InvalidModel = 301,\\r\\n4498 | \\tVRRenderModelError_NoShapes = 302,\\r\\n4499 | \\tVRRenderModelError_MultipleShapes = 303,\\r\\n4500 | \\tVRRenderModelError_TooManyVertices = 304,\\r\\n4501 | \\tVRRenderModelError_MultipleTextures = 305,\\r\\n4502 | \\tVRRenderModelError_BufferTooSmall = 306,\\r\\n4503 | \\tVRRenderModelError_NotEnoughNormals = 307,\\r\\n4504 | \\tVRRenderModelError_NotEnoughTexCoords = 308,\\r\\n4505 | \\r\\n4506 | \\tVRRenderModelError_InvalidTexture = 400,\\r\\n4507 | };\\r\\n4508 | \\r\\n4509 | enum EVRRenderModelTextureFormat\\r\\n4510 | {\\r\\n4511 | \\tVRRenderModelTextureFormat_RGBA8_SRGB = 0, // RGBA with 8 bits per channel per pixel. Data size is width * height * 4ub\\r\\n4512 | \\tVRRenderModelTextureFormat_BC2,\\r\\n4513 | \\tVRRenderModelTextureFormat_BC4,\\r\\n4514 | \\tVRRenderModelTextureFormat_BC7,\\r\\n4515 | \\tVRRenderModelTextureFormat_BC7_SRGB,\\r\\n4516 | \\tVRRenderModelTextureFormat_RGBA16_FLOAT,\\r\\n4517 | };\\r\\n4518 | \\r\\n4519 | /** A single vertex in a render model */\\r\\n4520 | struct RenderModel_Vertex_t\\r\\n4521 | {\\r\\n4522 | \\tHmdVector3_t vPosition;\\t\\t// position in meters in device space\\r\\n4523 | \\tHmdVector3_t vNormal;\\r\\n4524 | \\tfloat rfTextureCoord[2];\\r\\n4525 | };\\r\\n4526 | \\r\\n4527 | /** A texture map for use on a render model */\\r\\n4528 | #if defined(__linux__) || defined(__APPLE__)\\r\\n4529 | // This structure was originally defined mis-packed on Linux, preserved for\\r\\n4530 | // compatibility.\\r\\n4531 | #pragma pack( push, 4 )\\r\\n4532 | #endif\\r\\n4533 | \\r\\n4534 | struct RenderModel_TextureMap_t\\r\\n4535 | {\\r\\n4536 | \\tuint16_t unWidth, unHeight; // width and height of the texture map in pixels\\r\\n4537 | \\tconst uint8_t *rubTextureMapData;\\t// Map texture data.\\r\\n4538 | \\tEVRRenderModelTextureFormat format; // Refer to EVRRenderModelTextureFormat\\r\\n4539 | \\tuint16_t unMipLevels;\\r\\n4540 | };\\r\\n4541 | #if defined(__linux__) || defined(__APPLE__)\\r\\n4542 | #pragma pack( pop )\\r\\n4543 | #endif\\r\\n4544 | \\r\\n4545 | /**  Session unique texture identifier. Rendermodels which share the same texture will have the same id.\\r\\n4546 | IDs <0 denote the texture is not present */\\r\\n4547 | \\r\\n4548 | typedef int32_t TextureID_t;\\r\\n4549 | \\r\\n4550 | const TextureID_t INVALID_TEXTURE_ID = -1;\\r\\n4551 | \\r\\n4552 | #if defined(__linux__) || defined(__APPLE__)\\r\\n4553 | // This structure was originally defined mis-packed on Linux, preserved for\\r\\n4554 | // compatibility.\\r\\n4555 | #pragma pack( push, 4 )\\r\\n4556 | #endif\\r\\n4557 | \\r\\n4558 | struct RenderModel_t\\r\\n4559 | {\\r\\n4560 | \\tconst RenderModel_Vertex_t *rVertexData;\\t// Vertex data for the mesh\\r\\n4561 | \\tuint32_t unVertexCount;\\t\\t\\t\\t\\t\\t// Number of vertices in the vertex data\\r\\n4562 | \\tconst uint16_t *rIndexData;\\t\\t\\t\\t\\t// Indices into the vertex data for each triangle\\r\\n4563 | \\tuint32_t unTriangleCount;\\t\\t\\t\\t\\t// Number of triangles in the mesh. Index count is 3 * TriangleCount\\r\\n4564 | \\tTextureID_t diffuseTextureId;\\t\\t\\t\\t// Session unique texture identifier. Rendermodels which share the same texture will have the same id. <0 == texture not present\\r\\n4565 | };\\r\\n4566 | #if defined(__linux__) || defined(__APPLE__)\\r\\n4567 | #pragma pack( pop )\\r\\n4568 | #endif\\r\\n4569 | \\r\\n4570 | \\r\\n4571 | struct RenderModel_ControllerMode_State_t\\r\\n4572 | {\\r\\n4573 | \\tbool bScrollWheelVisible; // is this controller currently set to be in a scroll wheel mode\\r\\n4574 | };\\r\\n4575 | \\r\\n4576 | #pragma pack( pop )\\r\\n4577 | \\r\\n4578 | class IVRRenderModels\\r\\n4579 | {\\r\\n4580 | public:\\r\\n4581 | \\r\\n4582 | \\t/** Loads and returns a render model for use in the application. pchRenderModelName should be a render model name\\r\\n4583 | \\t* from the Prop_RenderModelName_String property or an absolute path name to a render model on disk.\\r\\n4584 | \\t*\\r\\n4585 | \\t* The resulting render model is valid until VR_Shutdown() is called or until FreeRenderModel() is called. When the\\r\\n4586 | \\t* application is finished with the render model it should call FreeRenderModel() to free the memory associated\\r\\n4587 | \\t* with the model.\\r\\n4588 | \\t*\\r\\n4589 | \\t* The method returns VRRenderModelError_Loading while the render model is still being loaded.\\r\\n4590 | \\t* The method returns VRRenderModelError_None once loaded successfully, otherwise will return an error. */\\r\\n4591 | \\tvirtual EVRRenderModelError LoadRenderModel_Async( const char *pchRenderModelName, RenderModel_t **ppRenderModel ) = 0;\\r\\n4592 | \\r\\n4593 | \\t/** Frees a previously returned render model\\r\\n4594 | \\t*   It is safe to call this on a null ptr. */\\r\\n4595 | \\tvirtual void FreeRenderModel( RenderModel_t *pRenderModel ) = 0;\\r\\n4596 | \\r\\n4597 | \\t/** Loads and returns a texture for use in the application. */\\r\\n4598 | \\tvirtual EVRRenderModelError LoadTexture_Async( TextureID_t textureId, RenderModel_TextureMap_t **ppTexture ) = 0;\\r\\n4599 | \\r\\n4600 | \\t/** Frees a previously returned texture\\r\\n4601 | \\t*   It is safe to call this on a null ptr. */\\r\\n4602 | \\tvirtual void FreeTexture( RenderModel_TextureMap_t *pTexture ) = 0;\\r\\n4603 | \\r\\n4604 | \\t/** Creates a D3D11 texture and loads data into it. */\\r\\n4605 | \\tvirtual EVRRenderModelError LoadTextureD3D11_Async( TextureID_t textureId, void *pD3D11Device, void **ppD3D11Texture2D ) = 0;\\r\\n4606 | \\r\\n4607 | \\t/** Helper function to copy the bits into an existing texture. */\\r\\n4608 | \\tvirtual EVRRenderModelError LoadIntoTextureD3D11_Async( TextureID_t textureId, void *pDstTexture ) = 0;\\r\\n4609 | \\r\\n4610 | \\t/** Use this to free textures created with LoadTextureD3D11_Async instead of calling Release on them. */\\r\\n4611 | \\tvirtual void FreeTextureD3D11( void *pD3D11Texture2D ) = 0;\\r\\n4612 | \\r\\n4613 | \\t/** Use this to get the names of available render models.  Index does not correlate to a tracked device index, but\\r\\n4614 | \\t* is only used for iterating over all available render models.  If the index is out of range, this function will return 0.\\r\\n4615 | \\t* Otherwise, it will return the size of the buffer required for the name. */\\r\\n4616 | \\tvirtual uint32_t GetRenderModelName( uint32_t unRenderModelIndex, VR_OUT_STRING() char *pchRenderModelName, uint32_t unRenderModelNameLen ) = 0;\\r\\n4617 | \\r\\n4618 | \\t/** Returns the number of available render models. */\\r\\n4619 | \\tvirtual uint32_t GetRenderModelCount() = 0;\\r\\n4620 | \\r\\n4621 | \\r\\n4622 | \\t/** Returns the number of components of the specified render model.\\r\\n4623 | \\t*  Components are useful when client application wish to draw, label, or otherwise interact with components of tracked objects.\\r\\n4624 | \\t*  Examples controller components:\\r\\n4625 | \\t*   renderable things such as triggers, buttons\\r\\n4626 | \\t*   non-renderable things which include coordinate systems such as 'tip', 'base', a neutral controller agnostic hand-pose\\r\\n4627 | \\t*   If all controller components are enumerated and rendered, it will be equivalent to drawing the traditional render model\\r\\n4628 | \\t*   Returns 0 if components not supported, >0 otherwise */\\r\\n4629 | \\tvirtual uint32_t GetComponentCount( const char *pchRenderModelName ) = 0;\\r\\n4630 | \\r\\n4631 | \\t/** Use this to get the names of available components.  Index does not correlate to a tracked device index, but\\r\\n4632 | \\t* is only used for iterating over all available components.  If the index is out of range, this function will return 0.\\r\\n4633 | \\t* Otherwise, it will return the size of the buffer required for the name. */\\r\\n4634 | \\tvirtual uint32_t GetComponentName( const char *pchRenderModelName, uint32_t unComponentIndex, VR_OUT_STRING( ) char *pchComponentName, uint32_t unComponentNameLen ) = 0;\\r\\n4635 | \\r\\n4636 | \\t/** Get the button mask for all buttons associated with this component\\r\\n4637 | \\t*   If no buttons (or axes) are associated with this component, return 0\\r\\n4638 | \\t*   Note: multiple components may be associated with the same button. Ex: two grip buttons on a single controller.\\r\\n4639 | \\t*   Note: A single component may be associated with multiple buttons. Ex: A trackpad which also provides \\\"D-pad\\\" functionality */\\r\\n4640 | \\tvirtual uint64_t GetComponentButtonMask( const char *pchRenderModelName, const char *pchComponentName ) = 0;\\r\\n4641 | \\r\\n4642 | \\t/** Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel.\\r\\n4643 | \\t* If the component name is out of range, this function will return 0.\\r\\n4644 | \\t* Otherwise, it will return the size of the buffer required for the name. */\\r\\n4645 | \\tvirtual uint32_t GetComponentRenderModelName( const char *pchRenderModelName, const char *pchComponentName, VR_OUT_STRING( ) char *pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen ) = 0;\\r\\n4646 | \\r\\n4647 | \\t/** Use this to query information about the component, as a function of the controller state.\\r\\n4648 | \\t*\\r\\n4649 | \\t* For dynamic controller components (ex: trigger) values will reflect component motions\\r\\n4650 | \\t* For static components this will return a consistent value independent of the VRControllerState_t\\r\\n4651 | \\t*\\r\\n4652 | \\t* If the pchRenderModelName or pchComponentName is invalid, this will return false (and transforms will be set to identity).\\r\\n4653 | \\t* Otherwise, return true\\r\\n4654 | \\t* Note: For dynamic objects, visibility may be dynamic. (I.e., true/false will be returned based on controller state and controller mode state ) */\\r\\n4655 | \\tvirtual bool GetComponentStateForDevicePath( const char *pchRenderModelName, const char *pchComponentName, vr::VRInputValueHandle_t devicePath, const vr::RenderModel_ControllerMode_State_t *pState, vr::RenderModel_ComponentState_t *pComponentState ) = 0;\\r\\n4656 | \\r\\n4657 | \\t/** This version of GetComponentState takes a controller state block instead of an action origin. This function is deprecated. You should use the new input system and GetComponentStateForDevicePath instead. */\\r\\n4658 | \\tvirtual bool GetComponentState( const char *pchRenderModelName, const char *pchComponentName, const vr::VRControllerState_t *pControllerState, const RenderModel_ControllerMode_State_t *pState, RenderModel_ComponentState_t *pComponentState ) = 0;\\r\\n4659 | \\r\\n4660 | \\t/** Returns true if the render model has a component with the specified name */\\r\\n4661 | \\tvirtual bool RenderModelHasComponent( const char *pchRenderModelName, const char *pchComponentName ) = 0;\\r\\n4662 | \\r\\n4663 | \\t/** Returns the URL of the thumbnail image for this rendermodel */\\r\\n4664 | \\tvirtual uint32_t GetRenderModelThumbnailURL( const char *pchRenderModelName, VR_OUT_STRING() char *pchThumbnailURL, uint32_t unThumbnailURLLen, vr::EVRRenderModelError *peError ) = 0;\\r\\n4665 | \\r\\n4666 | \\t/** Provides a render model path that will load the unskinned model if the model name provided has been replace by the user. If the model\\r\\n4667 | \\t* hasn't been replaced the path value will still be a valid path to load the model. Pass this to LoadRenderModel_Async, etc. to load the\\r\\n4668 | \\t* model. */\\r\\n4669 | \\tvirtual uint32_t GetRenderModelOriginalPath( const char *pchRenderModelName, VR_OUT_STRING() char *pchOriginalPath, uint32_t unOriginalPathLen, vr::EVRRenderModelError *peError ) = 0;\\r\\n4670 | \\r\\n4671 | \\t/** Returns a string for a render model error */\\r\\n4672 | \\tvirtual const char *GetRenderModelErrorNameFromEnum( vr::EVRRenderModelError error ) = 0;\\r\\n4673 | };\\r\\n4674 | \\r\\n4675 | static const char * const IVRRenderModels_Version = \\\"IVRRenderModels_006\\\";\\r\\n4676 | \\r\\n4677 | }\\r\\n4678 | \\r\\n4679 | \\r\\n4680 | // ivrextendeddisplay.h\\r\\n4681 | \\r\\n4682 | namespace vr\\r\\n4683 | {\\r\\n4684 | \\r\\n4685 | \\t/** NOTE: Use of this interface is not recommended in production applications. It will not work for displays which use\\r\\n4686 | \\t* direct-to-display mode. Creating our own window is also incompatible with the VR compositor and is not available when the compositor is running. */\\r\\n4687 | \\tclass IVRExtendedDisplay\\r\\n4688 | \\t{\\r\\n4689 | \\tpublic:\\r\\n4690 | \\r\\n4691 | \\t\\t/** Size and position that the window needs to be on the VR display. */\\r\\n4692 | \\t\\tvirtual void GetWindowBounds( int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0;\\r\\n4693 | \\r\\n4694 | \\t\\t/** Gets the viewport in the frame buffer to draw the output of the distortion into */\\r\\n4695 | \\t\\tvirtual void GetEyeOutputViewport( EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0;\\r\\n4696 | \\r\\n4697 | \\t\\t/** [D3D10/11 Only]\\r\\n4698 | \\t\\t* Returns the adapter index and output index that the user should pass into EnumAdapters and EnumOutputs\\r\\n4699 | \\t\\t* to create the device and swap chain in DX10 and DX11. If an error occurs both indices will be set to -1.\\r\\n4700 | \\t\\t*/\\r\\n4701 | \\t\\tvirtual void GetDXGIOutputInfo( int32_t *pnAdapterIndex, int32_t *pnAdapterOutputIndex ) = 0;\\r\\n4702 | \\r\\n4703 | \\t};\\r\\n4704 | \\r\\n4705 | \\tstatic const char * const IVRExtendedDisplay_Version = \\\"IVRExtendedDisplay_001\\\";\\r\\n4706 | \\r\\n4707 | }\\r\\n4708 | \\r\\n4709 | \\r\\n4710 | // ivrtrackedcamera.h\\r\\n4711 | \\r\\n4712 | namespace vr\\r\\n4713 | {\\r\\n4714 | \\r\\n4715 | class IVRTrackedCamera\\r\\n4716 | {\\r\\n4717 | public:\\r\\n4718 | \\t/** Returns a string for an error */\\r\\n4719 | \\tvirtual const char *GetCameraErrorNameFromEnum( vr::EVRTrackedCameraError eCameraError ) = 0;\\r\\n4720 | \\r\\n4721 | \\t/** For convenience, same as tracked property request Prop_HasCamera_Bool */\\r\\n4722 | \\tvirtual vr::EVRTrackedCameraError HasCamera( vr::TrackedDeviceIndex_t nDeviceIndex, bool *pHasCamera ) = 0;\\r\\n4723 | \\r\\n4724 | \\t/** Gets size of the image frame. */\\r\\n4725 | \\tvirtual vr::EVRTrackedCameraError GetCameraFrameSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pnWidth, uint32_t *pnHeight, uint32_t *pnFrameBufferSize ) = 0;\\r\\n4726 | \\r\\n4727 | \\tvirtual vr::EVRTrackedCameraError GetCameraIntrinsics( vr::TrackedDeviceIndex_t nDeviceIndex, uint32_t nCameraIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::HmdVector2_t *pFocalLength, vr::HmdVector2_t *pCenter ) = 0;\\r\\n4728 | \\r\\n4729 | \\tvirtual vr::EVRTrackedCameraError GetCameraProjection( vr::TrackedDeviceIndex_t nDeviceIndex, uint32_t nCameraIndex, vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection ) = 0;\\r\\n4730 | \\r\\n4731 | \\t/** Acquiring streaming service permits video streaming for the caller. Releasing hints the system that video services do not need to be maintained for this client.\\r\\n4732 | \\t* If the camera has not already been activated, a one time spin up may incur some auto exposure as well as initial streaming frame delays.\\r\\n4733 | \\t* The camera should be considered a global resource accessible for shared consumption but not exclusive to any caller.\\r\\n4734 | \\t* The camera may go inactive due to lack of active consumers or headset idleness. */\\r\\n4735 | \\tvirtual vr::EVRTrackedCameraError AcquireVideoStreamingService( vr::TrackedDeviceIndex_t nDeviceIndex, vr::TrackedCameraHandle_t *pHandle ) = 0;\\r\\n4736 | \\tvirtual vr::EVRTrackedCameraError ReleaseVideoStreamingService( vr::TrackedCameraHandle_t hTrackedCamera ) = 0;\\r\\n4737 | \\r\\n4738 | \\t/** Copies the image frame into a caller's provided buffer. The image data is currently provided as RGBA data, 4 bytes per pixel.\\r\\n4739 | \\t* A caller can provide null for the framebuffer or frameheader if not desired. Requesting the frame header first, followed by the frame buffer allows\\r\\n4740 | \\t* the caller to determine if the frame as advanced per the frame header sequence.\\r\\n4741 | \\t* If there is no frame available yet, due to initial camera spinup or re-activation, the error will be VRTrackedCameraError_NoFrameAvailable.\\r\\n4742 | \\t* Ideally a caller should be polling at ~16ms intervals */\\r\\n4743 | \\tvirtual vr::EVRTrackedCameraError GetVideoStreamFrameBuffer( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pFrameBuffer, uint32_t nFrameBufferSize, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0;\\r\\n4744 | \\r\\n4745 | \\t/** Gets size of the image frame. */\\r\\n4746 | \\tvirtual vr::EVRTrackedCameraError GetVideoStreamTextureSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::VRTextureBounds_t *pTextureBounds, uint32_t *pnWidth, uint32_t *pnHeight ) = 0;\\r\\n4747 | \\r\\n4748 | \\t/** Access a shared D3D11 texture for the specified tracked camera stream.\\r\\n4749 | \\t* The camera frame type VRTrackedCameraFrameType_Undistorted is not supported directly as a shared texture. It is an interior subregion of the shared texture VRTrackedCameraFrameType_MaximumUndistorted.\\r\\n4750 | \\t* Instead, use GetVideoStreamTextureSize() with VRTrackedCameraFrameType_Undistorted to determine the proper interior subregion bounds along with GetVideoStreamTextureD3D11() with\\r\\n4751 | \\t* VRTrackedCameraFrameType_MaximumUndistorted to provide the texture. The VRTrackedCameraFrameType_MaximumUndistorted will yield an image where the invalid regions are decoded\\r\\n4752 | \\t* by the alpha channel having a zero component. The valid regions all have a non-zero alpha component. The subregion as described by VRTrackedCameraFrameType_Undistorted\\r\\n4753 | \\t* guarantees a rectangle where all pixels are valid. */\\r\\n4754 | \\tvirtual vr::EVRTrackedCameraError GetVideoStreamTextureD3D11( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0;\\r\\n4755 | \\r\\n4756 | \\t/** Access a shared GL texture for the specified tracked camera stream */\\r\\n4757 | \\tvirtual vr::EVRTrackedCameraError GetVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, vr::glUInt_t *pglTextureId, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0;\\r\\n4758 | \\tvirtual vr::EVRTrackedCameraError ReleaseVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::glUInt_t glTextureId ) = 0;\\r\\n4759 | \\tvirtual void SetCameraTrackingSpace( vr::ETrackingUniverseOrigin eUniverse ) = 0;\\r\\n4760 | \\tvirtual vr::ETrackingUniverseOrigin GetCameraTrackingSpace( ) = 0;\\r\\n4761 | };\\r\\n4762 | \\r\\n4763 | static const char * const IVRTrackedCamera_Version = \\\"IVRTrackedCamera_006\\\";\\r\\n4764 | \\r\\n4765 | } // namespace vr\\r\\n4766 | \\r\\n4767 | \\r\\n4768 | // ivrscreenshots.h\\r\\n4769 | \\r\\n4770 | namespace vr\\r\\n4771 | {\\r\\n4772 | \\r\\n4773 | /** Errors that can occur with the VR compositor */\\r\\n4774 | enum EVRScreenshotError\\r\\n4775 | {\\r\\n4776 | \\tVRScreenshotError_None\\t\\t\\t\\t\\t\\t\\t= 0,\\r\\n4777 | \\tVRScreenshotError_RequestFailed\\t\\t\\t\\t\\t= 1,\\r\\n4778 | \\tVRScreenshotError_IncompatibleVersion\\t\\t\\t= 100,\\r\\n4779 | \\tVRScreenshotError_NotFound\\t\\t\\t\\t\\t\\t= 101,\\r\\n4780 | \\tVRScreenshotError_BufferTooSmall\\t\\t\\t\\t= 102,\\r\\n4781 | \\tVRScreenshotError_ScreenshotAlreadyInProgress\\t= 108,\\r\\n4782 | };\\r\\n4783 | \\r\\n4784 | /** Allows the application to generate screenshots */\\r\\n4785 | class IVRScreenshots\\r\\n4786 | {\\r\\n4787 | public:\\r\\n4788 | \\t/** Request a screenshot of the requested type.\\r\\n4789 | \\t *  A request of the VRScreenshotType_Stereo type will always\\r\\n4790 | \\t *  work. Other types will depend on the underlying application\\r\\n4791 | \\t *  support.\\r\\n4792 | \\t *  The first file name is for the preview image and should be a\\r\\n4793 | \\t *  regular screenshot (ideally from the left eye). The second\\r\\n4794 | \\t *  is the VR screenshot in the correct format. They should be\\r\\n4795 | \\t *  in the same aspect ratio.  Formats per type:\\r\\n4796 | \\t *  VRScreenshotType_Mono: the VR filename is ignored (can be\\r\\n4797 | \\t *  nullptr), this is a normal flat single shot.\\r\\n4798 | \\t *  VRScreenshotType_Stereo:  The VR image should be a\\r\\n4799 | \\t *  side-by-side with the left eye image on the left.\\r\\n4800 | \\t *  VRScreenshotType_Cubemap: The VR image should be six square\\r\\n4801 | \\t *  images composited horizontally.\\r\\n4802 | \\t *  VRScreenshotType_StereoPanorama: above/below with left eye\\r\\n4803 | \\t *  panorama being the above image.  Image is typically square\\r\\n4804 | \\t *  with the panorama being 2x horizontal.\\r\\n4805 | \\t *\\r\\n4806 | \\t *  Note that the VR dashboard will call this function when\\r\\n4807 | \\t *  the user presses the screenshot binding (currently System\\r\\n4808 | \\t *  Button + Trigger).  If Steam is running, the destination\\r\\n4809 | \\t *  file names will be in %TEMP% and will be copied into\\r\\n4810 | \\t *  Steam's screenshot library for the running application\\r\\n4811 | \\t *  once SubmitScreenshot() is called.\\r\\n4812 | \\t *  If Steam is not running, the paths will be in the user's\\r\\n4813 | \\t *  documents folder under Documents\\\\SteamVR\\\\Screenshots.\\r\\n4814 | \\t *  Other VR applications can call this to initiate a\\r\\n4815 | \\t *  screenshot outside of user control.\\r\\n4816 | \\t *  The destination file names do not need an extension,\\r\\n4817 | \\t *  will be replaced with the correct one for the format\\r\\n4818 | \\t *  which is currently .png. */\\r\\n4819 | \\tvirtual vr::EVRScreenshotError RequestScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, vr::EVRScreenshotType type, const char *pchPreviewFilename, const char *pchVRFilename ) = 0;\\r\\n4820 | \\r\\n4821 | \\t/** Called by the running VR application to indicate that it\\r\\n4822 | \\t *  wishes to be in charge of screenshots.  If the\\r\\n4823 | \\t *  application does not call this, the Compositor will only\\r\\n4824 | \\t *  support VRScreenshotType_Stereo screenshots that will be\\r\\n4825 | \\t *  captured without notification to the running app.\\r\\n4826 | \\t *  Once hooked your application will receive a\\r\\n4827 | \\t *  VREvent_RequestScreenshot event when the user presses the\\r\\n4828 | \\t *  buttons to take a screenshot. */\\r\\n4829 | \\tvirtual vr::EVRScreenshotError HookScreenshot( VR_ARRAY_COUNT( numTypes ) const vr::EVRScreenshotType *pSupportedTypes, int numTypes ) = 0;\\r\\n4830 | \\r\\n4831 | \\t/** When your application receives a\\r\\n4832 | \\t *  VREvent_RequestScreenshot event, call these functions to get\\r\\n4833 | \\t *  the details of the screenshot request. */\\r\\n4834 | \\tvirtual vr::EVRScreenshotType GetScreenshotPropertyType( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotError *pError ) = 0;\\r\\n4835 | \\r\\n4836 | \\t/** Get the filename for the preview or vr image (see\\r\\n4837 | \\t *  vr::EScreenshotPropertyFilenames).  The return value is\\r\\n4838 | \\t *  the size of the string.   */\\r\\n4839 |  \\tvirtual uint32_t GetScreenshotPropertyFilename( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotPropertyFilenames filenameType, VR_OUT_STRING() char *pchFilename, uint32_t cchFilename, vr::EVRScreenshotError *pError ) = 0;\\r\\n4840 | \\r\\n4841 | \\t/** Call this if the application is taking the screen shot\\r\\n4842 | \\t *  will take more than a few ms processing. This will result\\r\\n4843 | \\t *  in an overlay being presented that shows a completion\\r\\n4844 | \\t *  bar. */\\r\\n4845 | \\tvirtual vr::EVRScreenshotError UpdateScreenshotProgress( vr::ScreenshotHandle_t screenshotHandle, float flProgress ) = 0;\\r\\n4846 | \\r\\n4847 | \\t/** Tells the compositor to take an internal screenshot of\\r\\n4848 | \\t *  type VRScreenshotType_Stereo. It will take the current\\r\\n4849 | \\t *  submitted scene textures of the running application and\\r\\n4850 | \\t *  write them into the preview image and a side-by-side file\\r\\n4851 | \\t *  for the VR image.\\r\\n4852 | \\t *  This is similar to request screenshot, but doesn't ever\\r\\n4853 | \\t *  talk to the application, just takes the shot and submits. */\\r\\n4854 | \\tvirtual vr::EVRScreenshotError TakeStereoScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename ) = 0;\\r\\n4855 | \\r\\n4856 | \\t/** Submit the completed screenshot.  If Steam is running\\r\\n4857 | \\t *  this will call into the Steam client and upload the\\r\\n4858 | \\t *  screenshot to the screenshots section of the library for\\r\\n4859 | \\t *  the running application.  If Steam is not running, this\\r\\n4860 | \\t *  function will display a notification to the user that the\\r\\n4861 | \\t *  screenshot was taken. The paths should be full paths with\\r\\n4862 | \\t *  extensions.\\r\\n4863 | \\t *  File paths should be absolute including extensions.\\r\\n4864 | \\t *  screenshotHandle can be k_unScreenshotHandleInvalid if this\\r\\n4865 | \\t *  was a new shot taking by the app to be saved and not\\r\\n4866 | \\t *  initiated by a user (achievement earned or something) */\\r\\n4867 | \\tvirtual vr::EVRScreenshotError SubmitScreenshot( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotType type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename ) = 0;\\r\\n4868 | };\\r\\n4869 | \\r\\n4870 | static const char * const IVRScreenshots_Version = \\\"IVRScreenshots_001\\\";\\r\\n4871 | \\r\\n4872 | } // namespace vr\\r\\n4873 | \\r\\n4874 | \\r\\n4875 | \\r\\n4876 | // ivrresources.h\\r\\n4877 | \\r\\n4878 | namespace vr\\r\\n4879 | {\\r\\n4880 | \\r\\n4881 | class IVRResources\\r\\n4882 | {\\r\\n4883 | public:\\r\\n4884 | \\r\\n4885 | \\t// ------------------------------------\\r\\n4886 | \\t// Shared Resource Methods\\r\\n4887 | \\t// ------------------------------------\\r\\n4888 | \\r\\n4889 | \\t/** Loads the specified resource into the provided buffer if large enough.\\r\\n4890 | \\t* Returns the size in bytes of the buffer required to hold the specified resource. */\\r\\n4891 | \\tvirtual uint32_t LoadSharedResource( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen ) = 0;\\r\\n4892 | \\r\\n4893 | \\t/** Provides the full path to the specified resource. Resource names can include named directories for\\r\\n4894 | \\t* drivers and other things, and this resolves all of those and returns the actual physical path.\\r\\n4895 | \\t* pchResourceTypeDirectory is the subdirectory of resources to look in. */\\r\\n4896 | \\tvirtual uint32_t GetResourceFullPath( const char *pchResourceName, const char *pchResourceTypeDirectory, VR_OUT_STRING() char *pchPathBuffer, uint32_t unBufferLen ) = 0;\\r\\n4897 | };\\r\\n4898 | \\r\\n4899 | static const char * const IVRResources_Version = \\\"IVRResources_001\\\";\\r\\n4900 | \\r\\n4901 | \\r\\n4902 | }\\r\\n4903 | \\r\\n4904 | // ivrdrivermanager.h\\r\\n4905 | \\r\\n4906 | namespace vr\\r\\n4907 | {\\r\\n4908 | \\r\\n4909 | class IVRDriverManager\\r\\n4910 | {\\r\\n4911 | public:\\r\\n4912 | \\tvirtual uint32_t GetDriverCount() const = 0;\\r\\n4913 | \\r\\n4914 | \\t/** Returns the length of the number of bytes necessary to hold this string including the trailing null. */\\r\\n4915 | \\tvirtual uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0;\\r\\n4916 | \\r\\n4917 | \\tvirtual DriverHandle_t GetDriverHandle( const char *pchDriverName ) = 0;\\r\\n4918 | \\r\\n4919 | \\tvirtual bool IsEnabled( vr::DriverId_t nDriver ) const = 0;\\r\\n4920 | };\\r\\n4921 | \\r\\n4922 | static const char * const IVRDriverManager_Version = \\\"IVRDriverManager_001\\\";\\r\\n4923 | \\r\\n4924 | } // namespace vr\\r\\n4925 | \\r\\n4926 | \\r\\n4927 | \\r\\n4928 | // ivrinput.h\\r\\n4929 | \\r\\n4930 | namespace vr\\r\\n4931 | {\\r\\n4932 | \\t// Maximum number of characters in an action name, including the trailing null\\r\\n4933 | \\tstatic const uint32_t k_unMaxActionNameLength = 64;\\r\\n4934 | \\r\\n4935 | \\t// Maximum number of characters in an action set name, including the trailing null\\r\\n4936 | \\tstatic const uint32_t k_unMaxActionSetNameLength = 64;\\r\\n4937 | \\r\\n4938 | \\t// Maximum number of origins for an action\\r\\n4939 | \\tstatic const uint32_t k_unMaxActionOriginCount = 16;\\r\\n4940 | \\r\\n4941 | \\t// Maximum number of characters in a bone name, including the trailing null\\r\\n4942 | \\tstatic const uint32_t k_unMaxBoneNameLength = 32;\\r\\n4943 | \\r\\n4944 | \\tenum EVRSkeletalTransformSpace\\r\\n4945 | \\t{\\r\\n4946 | \\t\\tVRSkeletalTransformSpace_Model = 0,\\r\\n4947 | \\t\\tVRSkeletalTransformSpace_Parent = 1\\r\\n4948 | \\t};\\r\\n4949 | \\r\\n4950 | \\tenum EVRSkeletalReferencePose\\r\\n4951 | \\t{\\r\\n4952 | \\t\\tVRSkeletalReferencePose_BindPose = 0,\\r\\n4953 | \\t\\tVRSkeletalReferencePose_OpenHand,\\r\\n4954 | \\t\\tVRSkeletalReferencePose_Fist,\\r\\n4955 | \\t\\tVRSkeletalReferencePose_GripLimit\\r\\n4956 | \\t};\\r\\n4957 | \\r\\n4958 | \\tenum EVRFinger\\r\\n4959 | \\t{\\r\\n4960 | \\t\\tVRFinger_Thumb = 0,\\r\\n4961 | \\t\\tVRFinger_Index,\\r\\n4962 | \\t\\tVRFinger_Middle,\\r\\n4963 | \\t\\tVRFinger_Ring,\\r\\n4964 | \\t\\tVRFinger_Pinky,\\r\\n4965 | \\t\\tVRFinger_Count\\r\\n4966 | \\t};\\r\\n4967 | \\r\\n4968 | \\tenum EVRFingerSplay\\r\\n4969 | \\t{\\r\\n4970 | \\t\\tVRFingerSplay_Thumb_Index = 0,\\r\\n4971 | \\t\\tVRFingerSplay_Index_Middle,\\r\\n4972 | \\t\\tVRFingerSplay_Middle_Ring,\\r\\n4973 | \\t\\tVRFingerSplay_Ring_Pinky,\\r\\n4974 | \\t\\tVRFingerSplay_Count\\r\\n4975 | \\t};\\r\\n4976 | \\r\\n4977 | \\tenum EVRSummaryType\\r\\n4978 | \\t{\\r\\n4979 | \\t\\t// The skeletal summary data will match the animated bone transforms for the action.\\r\\n4980 | \\t\\tVRSummaryType_FromAnimation = 0,\\r\\n4981 | \\r\\n4982 | \\t\\t// The skeletal summary data will include unprocessed data directly from the device when available.\\r\\n4983 | \\t\\t// This data is generally less latent than the data that is computed from the animations.\\r\\n4984 | \\t\\tVRSummaryType_FromDevice = 1,\\r\\n4985 | \\t};\\r\\n4986 | \\r\\n4987 | \\tenum EVRInputFilterCancelType\\r\\n4988 | \\t{\\r\\n4989 | \\t\\tVRInputFilterCancel_Timers = 0,\\r\\n4990 | \\t\\tVRInputFilterCancel_Momentum = 1,\\r\\n4991 | \\t};\\r\\n4992 | \\r\\n4993 | \\tenum EVRInputStringBits\\r\\n4994 | \\t{\\r\\n4995 | \\t\\tVRInputString_Hand = 0x01,\\r\\n4996 | \\t\\tVRInputString_ControllerType = 0x02,\\r\\n4997 | \\t\\tVRInputString_InputSource = 0x04,\\r\\n4998 | \\r\\n4999 | \\t\\tVRInputString_All = 0xFFFFFFFF\\r\\n5000 | \\t};\\r\\n5001 | \\r\\n5002 | \\tstruct InputAnalogActionData_t\\r\\n5003 | \\t{\\r\\n5004 | \\t\\t/** Whether or not this action is currently available to be bound in the active action set */\\r\\n5005 | \\t\\tbool bActive;\\r\\n5006 | \\r\\n5007 | \\t\\t/** The origin that caused this action's current state */\\r\\n5008 | \\t\\tVRInputValueHandle_t activeOrigin;\\r\\n5009 | \\r\\n5010 | \\t\\t/** The current state of this action; will be delta updates for mouse actions */\\r\\n5011 | \\t\\tfloat x, y, z;\\r\\n5012 | \\r\\n5013 | \\t\\t/** Deltas since the previous call to UpdateActionState() */\\r\\n5014 | \\t\\tfloat deltaX, deltaY, deltaZ;\\r\\n5015 | \\r\\n5016 | \\t\\t/** Time relative to now when this event happened. Will be negative to indicate a past time. */\\r\\n5017 | \\t\\tfloat fUpdateTime;\\r\\n5018 | \\t};\\r\\n5019 | \\r\\n5020 | \\tstruct InputDigitalActionData_t\\r\\n5021 | \\t{\\r\\n5022 | \\t\\t/** Whether or not this action is currently available to be bound in the active action set */\\r\\n5023 | \\t\\tbool bActive;\\r\\n5024 | \\r\\n5025 | \\t\\t/** The origin that caused this action's current state */\\r\\n5026 | \\t\\tVRInputValueHandle_t activeOrigin;\\r\\n5027 | \\r\\n5028 | \\t\\t/** The current state of this action; will be true if currently pressed */\\r\\n5029 | \\t\\tbool bState;\\r\\n5030 | \\r\\n5031 | \\t\\t/** This is true if the state has changed since the last frame */\\r\\n5032 | \\t\\tbool bChanged;\\r\\n5033 | \\r\\n5034 | \\t\\t/** Time relative to now when this event happened. Will be negative to indicate a past time. */\\r\\n5035 | \\t\\tfloat fUpdateTime;\\r\\n5036 | \\t};\\r\\n5037 | \\r\\n5038 | \\tstruct InputPoseActionData_t\\r\\n5039 | \\t{\\r\\n5040 | \\t\\t/** Whether or not this action is currently available to be bound in the active action set */\\r\\n5041 | \\t\\tbool bActive;\\r\\n5042 | \\r\\n5043 | \\t\\t/** The origin that caused this action's current state */\\r\\n5044 | \\t\\tVRInputValueHandle_t activeOrigin;\\r\\n5045 | \\r\\n5046 | \\t\\t/** The current state of this action */\\r\\n5047 | \\t\\tTrackedDevicePose_t pose;\\r\\n5048 | \\t};\\r\\n5049 | \\r\\n5050 | \\tstruct InputSkeletalActionData_t\\r\\n5051 | \\t{\\r\\n5052 | \\t\\t/** Whether or not this action is currently available to be bound in the active action set */\\r\\n5053 | \\t\\tbool bActive;\\r\\n5054 | \\r\\n5055 | \\t\\t/** The origin that caused this action's current state */\\r\\n5056 | \\t\\tVRInputValueHandle_t activeOrigin;\\r\\n5057 | \\t};\\r\\n5058 | \\r\\n5059 | \\tstruct InputOriginInfo_t\\r\\n5060 | \\t{\\r\\n5061 | \\t\\tVRInputValueHandle_t devicePath;\\r\\n5062 | \\t\\tTrackedDeviceIndex_t trackedDeviceIndex;\\r\\n5063 | \\t\\tchar rchRenderModelComponentName[128];\\r\\n5064 | \\t};\\r\\n5065 | \\r\\n5066 | \\tstruct InputBindingInfo_t\\r\\n5067 | \\t{\\r\\n5068 | \\t\\tchar rchDevicePathName[128];\\r\\n5069 | \\t\\tchar rchInputPathName[128];\\r\\n5070 | \\t\\tchar rchModeName[128];\\r\\n5071 | \\t\\tchar rchSlotName[128];\\r\\n5072 | \\t\\tchar rchInputSourceType[ 32 ];\\r\\n5073 | \\t};\\r\\n5074 | \\r\\n5075 | \\t// * Experimental global action set priority *\\r\\n5076 | \\t// These constants are part of the experimental support in SteamVR for overlay\\r\\n5077 | \\t// apps selectively overriding input in the base scene application. This may be\\r\\n5078 | \\t// useful for overlay applications that need to use part or all of a controller\\r\\n5079 | \\t// without taking away all input to the game. This system must be enabled by the\\r\\n5080 | \\t// \\\"Experimental overlay input overrides\\\" setting in the developer section of\\r\\n5081 | \\t// SteamVR settings.\\r\\n5082 | \\t//\\r\\n5083 | \\t// To use this system, set the nPriority field of an action set to any number in\\r\\n5084 | \\t// this range.\\r\\n5085 | \\tstatic const int32_t k_nActionSetOverlayGlobalPriorityMin\\t= 0x01000000;\\r\\n5086 | \\tstatic const int32_t k_nActionSetOverlayGlobalPriorityMax\\t= 0x01FFFFFF;\\r\\n5087 | \\r\\n5088 | \\tstatic const int32_t k_nActionSetPriorityReservedMin\\t\\t= 0x02000000;\\r\\n5089 | \\r\\n5090 | \\tstruct VRActiveActionSet_t\\r\\n5091 | \\t{\\r\\n5092 | \\t\\t/** This is the handle of the action set to activate for this frame. */\\r\\n5093 | \\t\\tVRActionSetHandle_t ulActionSet;\\r\\n5094 | \\r\\n5095 | \\t\\t/** This is the handle of a device path that this action set should be active for. To\\r\\n5096 | \\t\\t* activate for all devices, set this to k_ulInvalidInputValueHandle. */\\r\\n5097 | \\t\\tVRInputValueHandle_t ulRestrictedToDevice;\\r\\n5098 | \\r\\n5099 | \\t\\t/** The action set to activate for all devices other than ulRestrictedDevice. If\\r\\n5100 | \\t\\t* ulRestrictedToDevice is set to k_ulInvalidInputValueHandle, this parameter is\\r\\n5101 | \\t\\t* ignored. */\\r\\n5102 | \\t\\tVRActionSetHandle_t ulSecondaryActionSet;\\r\\n5103 | \\r\\n5104 | \\t\\t// This field is ignored\\r\\n5105 | \\t\\tuint32_t unPadding;\\r\\n5106 | \\r\\n5107 | \\t\\t/** The priority of this action set relative to other action sets. Any inputs\\r\\n5108 | \\t\\t* bound to a source (e.g. trackpad, joystick, trigger) will disable bindings in\\r\\n5109 | \\t\\t* other active action sets with a smaller priority.\\r\\n5110 | \\t\\t*\\r\\n5111 | \\t\\t* Overlay applications (i.e. ApplicationType_Overlay) may set their action set priority\\r\\n5112 | \\t\\t* to a value between k_nActionSetOverlayGlobalPriorityMin and k_nActionSetOverlayGlobalPriorityMax\\r\\n5113 | \\t\\t* to cause any inputs bound to a source used by that action set to be disabled in scene applications.\\r\\n5114 | \\t\\t*\\r\\n5115 | \\t\\t* No action set priority may value may be larger than k_nActionSetPriorityReservedMin\\r\\n5116 | \\t\\t*/\\r\\n5117 | \\t\\tint32_t nPriority;\\r\\n5118 | \\t};\\r\\n5119 | \\r\\n5120 | \\t/** Contains summary information about the current skeletal pose */\\r\\n5121 | \\tstruct VRSkeletalSummaryData_t\\r\\n5122 | \\t{\\r\\n5123 | \\t\\t/** The amount that each finger is 'curled' inwards towards the palm.  In the case of the thumb,\\r\\n5124 | \\t\\t* this represents how much the thumb is wrapped around the fist.\\r\\n5125 | \\t\\t* 0 means straight, 1 means fully curled */\\r\\n5126 | \\t\\tfloat\\tflFingerCurl[ VRFinger_Count ];\\r\\n5127 | \\r\\n5128 | \\t\\t/** The amount that each pair of adjacent fingers are separated.\\r\\n5129 | \\t\\t* 0 means the digits are touching, 1 means they are fully separated.\\r\\n5130 | \\t\\t*/\\r\\n5131 | \\t\\tfloat\\tflFingerSplay[ VRFingerSplay_Count ];\\r\\n5132 | \\t};\\r\\n5133 | \\r\\n5134 | \\r\\n5135 | \\tclass IVRInput\\r\\n5136 | \\t{\\r\\n5137 | \\tpublic:\\r\\n5138 | \\r\\n5139 | \\t\\t// ---------------  Handle management   --------------- //\\r\\n5140 | \\r\\n5141 | \\t\\t/** Sets the path to the action manifest JSON file that is used by this application. If this information\\r\\n5142 | \\t\\t* was set on the Steam partner site, calls to this function are ignored. If the Steam partner site\\r\\n5143 | \\t\\t* setting and the path provided by this call are different, VRInputError_MismatchedActionManifest is returned.\\r\\n5144 | \\t\\t* This call must be made before the first call to UpdateActionState or IVRSystem::PollNextEvent. */\\r\\n5145 | \\t\\tvirtual EVRInputError SetActionManifestPath( const char *pchActionManifestPath ) = 0;\\r\\n5146 | \\r\\n5147 | \\t\\t/** Returns a handle for an action set. This handle is used for all performance-sensitive calls. */\\r\\n5148 | \\t\\tvirtual EVRInputError GetActionSetHandle( const char *pchActionSetName, VRActionSetHandle_t *pHandle ) = 0;\\r\\n5149 | \\r\\n5150 | \\t\\t/** Returns a handle for an action. This handle is used for all performance-sensitive calls. */\\r\\n5151 | \\t\\tvirtual EVRInputError GetActionHandle( const char *pchActionName, VRActionHandle_t *pHandle ) = 0;\\r\\n5152 | \\r\\n5153 | \\t\\t/** Returns a handle for any path in the input system. E.g. /user/hand/right */\\r\\n5154 | \\t\\tvirtual EVRInputError GetInputSourceHandle( const char *pchInputSourcePath, VRInputValueHandle_t *pHandle ) = 0;\\r\\n5155 | \\r\\n5156 | \\r\\n5157 | \\r\\n5158 | \\t\\t// --------------- Reading action state ------------------- //\\r\\n5159 | \\r\\n5160 | \\t\\t/** Reads the current state into all actions. After this call, the results of Get*Action calls\\r\\n5161 | \\t\\t* will be the same until the next call to UpdateActionState. */\\r\\n5162 | \\t\\tvirtual EVRInputError UpdateActionState( VR_ARRAY_COUNT( unSetCount ) VRActiveActionSet_t *pSets, uint32_t unSizeOfVRSelectedActionSet_t, uint32_t unSetCount ) = 0;\\r\\n5163 | \\r\\n5164 | \\t\\t/** Reads the state of a digital action given its handle. This will return VRInputError_WrongType if the type of\\r\\n5165 | \\t\\t* action is something other than digital */\\r\\n5166 | \\t\\tvirtual EVRInputError GetDigitalActionData( VRActionHandle_t action, InputDigitalActionData_t *pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice ) = 0;\\r\\n5167 | \\r\\n5168 | \\t\\t/** Reads the state of an analog action given its handle. This will return VRInputError_WrongType if the type of\\r\\n5169 | \\t\\t* action is something other than analog */\\r\\n5170 | \\t\\tvirtual EVRInputError GetAnalogActionData( VRActionHandle_t action, InputAnalogActionData_t *pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice ) = 0;\\r\\n5171 | \\r\\n5172 | \\t\\t/** Reads the state of a pose action given its handle for the number of seconds relative to now. This\\r\\n5173 | \\t\\t* will generally be called with negative times from the fUpdateTime fields in other actions. */\\r\\n5174 | \\t\\tvirtual EVRInputError GetPoseActionDataRelativeToNow( VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, float fPredictedSecondsFromNow, InputPoseActionData_t *pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice ) = 0;\\r\\n5175 | \\r\\n5176 | \\t\\t/** Reads the state of a pose action given its handle. The returned values will match the values returned\\r\\n5177 | \\t\\t* by the last call to IVRCompositor::WaitGetPoses(). */\\r\\n5178 | \\t\\tvirtual EVRInputError GetPoseActionDataForNextFrame( VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, InputPoseActionData_t *pActionData, uint32_t unActionDataSize, VRInputValueHandle_t ulRestrictToDevice ) = 0;\\r\\n5179 | \\r\\n5180 | \\t\\t/** Reads the state of a skeletal action given its handle. */\\r\\n5181 | \\t\\tvirtual EVRInputError GetSkeletalActionData( VRActionHandle_t action, InputSkeletalActionData_t *pActionData, uint32_t unActionDataSize ) = 0;\\r\\n5182 | \\r\\n5183 | \\t\\t/** Returns the current dominant hand for the user for this application. This function will only return success for applications\\r\\n5184 | \\t\\t* which include \\\"supports_dominant_hand_setting\\\": true in their action manifests. The dominant hand will only change after\\r\\n5185 | \\t\\t* a call to UpdateActionState, and the action data returned after that point will use the new dominant hand. */\\r\\n5186 | \\t\\tvirtual EVRInputError GetDominantHand( ETrackedControllerRole *peDominantHand ) = 0;\\r\\n5187 | \\r\\n5188 | \\t\\t/** Sets the dominant hand for the user for this application. */\\r\\n5189 | \\t\\tvirtual EVRInputError SetDominantHand( ETrackedControllerRole eDominantHand ) = 0;\\r\\n5190 | \\r\\n5191 | \\t\\t// ---------------  Static Skeletal Data ------------------- //\\r\\n5192 | \\r\\n5193 | \\t\\t/** Reads the number of bones in skeleton associated with the given action */\\r\\n5194 | \\t\\tvirtual EVRInputError GetBoneCount( VRActionHandle_t action, uint32_t* pBoneCount ) = 0;\\r\\n5195 | \\r\\n5196 | \\t\\t/** Fills the given array with the index of each bone's parent in the skeleton associated with the given action */\\r\\n5197 | \\t\\tvirtual EVRInputError GetBoneHierarchy( VRActionHandle_t action, VR_ARRAY_COUNT( unIndexArayCount ) BoneIndex_t* pParentIndices, uint32_t unIndexArayCount ) = 0;\\r\\n5198 | \\r\\n5199 | \\t\\t/** Fills the given buffer with the name of the bone at the given index in the skeleton associated with the given action */\\r\\n5200 | \\t\\tvirtual EVRInputError GetBoneName( VRActionHandle_t action, BoneIndex_t nBoneIndex, VR_OUT_STRING() char* pchBoneName, uint32_t unNameBufferSize ) = 0;\\r\\n5201 | \\r\\n5202 | \\t\\t/** Fills the given buffer with the transforms for a specific static skeletal reference pose */\\r\\n5203 | \\t\\tvirtual EVRInputError GetSkeletalReferenceTransforms( VRActionHandle_t action, EVRSkeletalTransformSpace eTransformSpace, EVRSkeletalReferencePose eReferencePose, VR_ARRAY_COUNT( unTransformArrayCount ) VRBoneTransform_t *pTransformArray, uint32_t unTransformArrayCount ) = 0;\\r\\n5204 | \\r\\n5205 | \\t\\t/** Reads the level of accuracy to which the controller is able to track the user to recreate a skeletal pose */\\r\\n5206 | \\t\\tvirtual EVRInputError GetSkeletalTrackingLevel( VRActionHandle_t action, EVRSkeletalTrackingLevel* pSkeletalTrackingLevel ) = 0;\\r\\n5207 | \\r\\n5208 | \\t\\t// ---------------  Dynamic Skeletal Data ------------------- //\\r\\n5209 | \\r\\n5210 | \\t\\t/** Reads the state of the skeletal bone data associated with this action and copies it into the given buffer. */\\r\\n5211 | \\t\\tvirtual EVRInputError GetSkeletalBoneData( VRActionHandle_t action, EVRSkeletalTransformSpace eTransformSpace, EVRSkeletalMotionRange eMotionRange, VR_ARRAY_COUNT( unTransformArrayCount ) VRBoneTransform_t *pTransformArray, uint32_t unTransformArrayCount ) = 0;\\r\\n5212 | \\r\\n5213 | \\t\\t/** Reads summary information about the current pose of the skeleton associated with the given action.   */\\r\\n5214 | \\t\\tvirtual EVRInputError GetSkeletalSummaryData( VRActionHandle_t action, EVRSummaryType eSummaryType, VRSkeletalSummaryData_t * pSkeletalSummaryData ) = 0;\\r\\n5215 | \\r\\n5216 | \\t\\t/** Reads the state of the skeletal bone data in a compressed form that is suitable for\\r\\n5217 | \\t\\t* sending over the network. The required buffer size will never exceed ( sizeof(VR_BoneTransform_t)*boneCount + 2).\\r\\n5218 | \\t\\t* Usually the size will be much smaller. */\\r\\n5219 | \\t\\tvirtual EVRInputError GetSkeletalBoneDataCompressed( VRActionHandle_t action, EVRSkeletalMotionRange eMotionRange, VR_OUT_BUFFER_COUNT( unCompressedSize ) void *pvCompressedData, uint32_t unCompressedSize, uint32_t *punRequiredCompressedSize ) = 0;\\r\\n5220 | \\r\\n5221 | \\t\\t/** Turns a compressed buffer from GetSkeletalBoneDataCompressed and turns it back into a bone transform array. */\\r\\n5222 | \\t\\tvirtual EVRInputError DecompressSkeletalBoneData( const void *pvCompressedBuffer, uint32_t unCompressedBufferSize, EVRSkeletalTransformSpace eTransformSpace, VR_ARRAY_COUNT( unTransformArrayCount ) VRBoneTransform_t *pTransformArray, uint32_t unTransformArrayCount ) = 0;\\r\\n5223 | \\r\\n5224 | \\t\\t// --------------- Haptics ------------------- //\\r\\n5225 | \\r\\n5226 | \\t\\t/** Triggers a haptic event as described by the specified action */\\r\\n5227 | \\t\\tvirtual EVRInputError TriggerHapticVibrationAction( VRActionHandle_t action, float fStartSecondsFromNow, float fDurationSeconds, float fFrequency, float fAmplitude, VRInputValueHandle_t ulRestrictToDevice ) = 0;\\r\\n5228 | \\r\\n5229 | \\t\\t// --------------- Action Origins ---------------- //\\r\\n5230 | \\r\\n5231 | \\t\\t/** Retrieve origin handles for an action */\\r\\n5232 | \\t\\tvirtual EVRInputError GetActionOrigins( VRActionSetHandle_t actionSetHandle, VRActionHandle_t digitalActionHandle, VR_ARRAY_COUNT( originOutCount ) VRInputValueHandle_t *originsOut, uint32_t originOutCount ) = 0;\\r\\n5233 | \\r\\n5234 | \\t\\t/** Retrieves the name of the origin in the current language. unStringSectionsToInclude is a bitfield of values in EVRInputStringBits that allows the\\r\\n5235 | \\t\\t\\tapplication to specify which parts of the origin's information it wants a string for. */\\r\\n5236 | \\t\\tvirtual EVRInputError GetOriginLocalizedName( VRInputValueHandle_t origin, VR_OUT_STRING() char *pchNameArray, uint32_t unNameArraySize, int32_t unStringSectionsToInclude ) = 0;\\r\\n5237 | \\r\\n5238 | \\t\\t/** Retrieves useful information for the origin of this action */\\r\\n5239 | \\t\\tvirtual EVRInputError GetOriginTrackedDeviceInfo( VRInputValueHandle_t origin, InputOriginInfo_t *pOriginInfo, uint32_t unOriginInfoSize ) = 0;\\r\\n5240 | \\r\\n5241 | \\t\\t/** Retrieves useful information about the bindings for an action */\\r\\n5242 | \\t\\tvirtual EVRInputError GetActionBindingInfo( VRActionHandle_t action, VR_ARRAY_COUNT( unBindingInfoCount ) InputBindingInfo_t *pOriginInfo, uint32_t unBindingInfoSize, uint32_t unBindingInfoCount, uint32_t *punReturnedBindingInfoCount ) = 0;\\r\\n5243 | \\r\\n5244 | \\t\\t/** Shows the current binding for the action in-headset */\\r\\n5245 | \\t\\tvirtual EVRInputError ShowActionOrigins( VRActionSetHandle_t actionSetHandle, VRActionHandle_t ulActionHandle ) = 0;\\r\\n5246 | \\r\\n5247 | \\t\\t/** Shows the current binding all the actions in the specified action sets */\\r\\n5248 | \\t\\tvirtual EVRInputError ShowBindingsForActionSet( VR_ARRAY_COUNT( unSetCount ) VRActiveActionSet_t *pSets, uint32_t unSizeOfVRSelectedActionSet_t, uint32_t unSetCount, VRInputValueHandle_t originToHighlight ) = 0;\\r\\n5249 | \\r\\n5250 | \\t\\t/** Use this to query what action on the component returned by GetOriginTrackedDeviceInfo would trigger this binding. */\\r\\n5251 | \\t\\tvirtual EVRInputError GetComponentStateForBinding( const char *pchRenderModelName, const char *pchComponentName,\\r\\n5252 | \\t\\t\\tconst InputBindingInfo_t *pOriginInfo, uint32_t unBindingInfoSize, uint32_t unBindingInfoCount,\\r\\n5253 | \\t\\t\\tvr::RenderModel_ComponentState_t *pComponentState ) = 0;\\r\\n5254 | \\r\\n5255 | \\r\\n5256 | \\t\\t// --------------- Legacy Input ------------------- //\\r\\n5257 | \\t\\tvirtual bool IsUsingLegacyInput() = 0;\\r\\n5258 | \\r\\n5259 | \\r\\n5260 | \\t\\t// --------------- Utilities ------------------- //\\r\\n5261 | \\r\\n5262 | \\t\\t/** Opens the binding user interface. If no app key is provided it will use the key from the calling process.\\r\\n5263 | \\t\\t* If no set is provided it will open to the root of the app binding page. */\\r\\n5264 | \\t\\tvirtual EVRInputError OpenBindingUI( const char* pchAppKey, VRActionSetHandle_t ulActionSetHandle, VRInputValueHandle_t ulDeviceHandle, bool bShowOnDesktop ) = 0;\\r\\n5265 | \\r\\n5266 | \\t\\t/** Returns the variant set in the current bindings. If the binding doesn't include a variant setting, this function\\r\\n5267 | \\t\\t* will return an empty string */\\r\\n5268 | \\t\\tvirtual EVRInputError GetBindingVariant( vr::VRInputValueHandle_t ulDevicePath,\\r\\n5269 | \\t\\t\\tVR_OUT_STRING() char *pchVariantArray, uint32_t unVariantArraySize ) = 0;\\r\\n5270 | \\r\\n5271 | \\t};\\r\\n5272 | \\r\\n5273 | \\tstatic const char * const IVRInput_Version = \\\"IVRInput_010\\\";\\r\\n5274 | \\r\\n5275 | } // namespace vr\\r\\n5276 | \\r\\n5277 | // ivriobuffer.h\\r\\n5278 | \\r\\n5279 | namespace vr\\r\\n5280 | {\\r\\n5281 | \\r\\n5282 | typedef uint64_t IOBufferHandle_t;\\r\\n5283 | static const uint64_t k_ulInvalidIOBufferHandle = 0;\\r\\n5284 | \\r\\n5285 | \\tenum EIOBufferError\\r\\n5286 | \\t{\\r\\n5287 | \\t\\tIOBuffer_Success                  = 0,\\r\\n5288 | \\t\\tIOBuffer_OperationFailed          = 100,\\r\\n5289 | \\t\\tIOBuffer_InvalidHandle            = 101,\\r\\n5290 | \\t\\tIOBuffer_InvalidArgument          = 102,\\r\\n5291 | \\t\\tIOBuffer_PathExists               = 103,\\r\\n5292 | \\t\\tIOBuffer_PathDoesNotExist         = 104,\\r\\n5293 | \\t\\tIOBuffer_Permission               = 105,\\r\\n5294 | \\t};\\r\\n5295 | \\r\\n5296 | \\tenum EIOBufferMode\\r\\n5297 | \\t{\\r\\n5298 | \\t\\tIOBufferMode_Read                 = 0x0001,\\r\\n5299 | \\t\\tIOBufferMode_Write                = 0x0002,\\r\\n5300 | \\t\\tIOBufferMode_Create               = 0x0200,\\r\\n5301 | \\t};\\r\\n5302 | \\r\\n5303 | \\t// ----------------------------------------------------------------------------------------------\\r\\n5304 | \\t// Purpose:\\r\\n5305 | \\t// ----------------------------------------------------------------------------------------------\\r\\n5306 | \\tclass IVRIOBuffer\\r\\n5307 | \\t{\\r\\n5308 | \\tpublic:\\r\\n5309 | \\t\\t/** opens an existing or creates a new IOBuffer of unSize bytes */\\r\\n5310 | \\t\\tvirtual vr::EIOBufferError Open( const char *pchPath, vr::EIOBufferMode mode, uint32_t unElementSize, uint32_t unElements, vr::IOBufferHandle_t *pulBuffer ) = 0;\\r\\n5311 | \\r\\n5312 | \\t\\t/** closes a previously opened or created buffer */\\r\\n5313 | \\t\\tvirtual vr::EIOBufferError Close( vr::IOBufferHandle_t ulBuffer ) = 0;\\r\\n5314 | \\r\\n5315 | \\t\\t/** reads up to unBytes from buffer into *pDst, returning number of bytes read in *punRead */\\r\\n5316 | \\t\\tvirtual vr::EIOBufferError Read( vr::IOBufferHandle_t ulBuffer, void *pDst, uint32_t unBytes, uint32_t *punRead ) = 0;\\r\\n5317 | \\r\\n5318 | \\t\\t/** writes unBytes of data from *pSrc into a buffer. */\\r\\n5319 | \\t\\tvirtual vr::EIOBufferError Write( vr::IOBufferHandle_t ulBuffer, void *pSrc, uint32_t unBytes ) = 0;\\r\\n5320 | \\r\\n5321 | \\t\\t/** retrieves the property container of an buffer. */\\r\\n5322 | \\t\\tvirtual vr::PropertyContainerHandle_t PropertyContainer( vr::IOBufferHandle_t ulBuffer ) = 0;\\r\\n5323 | \\r\\n5324 | \\t\\t/** inexpensively checks for readers to allow writers to fast-fail potentially expensive copies and writes. */\\r\\n5325 | \\t\\tvirtual bool HasReaders( vr::IOBufferHandle_t ulBuffer ) = 0;\\r\\n5326 | \\t};\\r\\n5327 | \\r\\n5328 | \\tstatic const char * const IVRIOBuffer_Version = \\\"IVRIOBuffer_002\\\";\\r\\n5329 | }\\r\\n5330 | \\r\\n5331 | // ivrspatialanchors.h\\r\\n5332 | \\r\\n5333 | namespace vr\\r\\n5334 | {\\r\\n5335 | \\tstatic const SpatialAnchorHandle_t k_ulInvalidSpatialAnchorHandle = 0;\\r\\n5336 | \\r\\n5337 | \\tstruct SpatialAnchorPose_t\\r\\n5338 | \\t{\\r\\n5339 | \\t\\tHmdMatrix34_t mAnchorToAbsoluteTracking;\\r\\n5340 | \\t};\\r\\n5341 | \\r\\n5342 | \\tclass IVRSpatialAnchors\\r\\n5343 | \\t{\\r\\n5344 | \\tpublic:\\r\\n5345 | \\r\\n5346 | \\t\\t/** Returns a handle for an spatial anchor described by \\\"descriptor\\\".  On success, pHandle\\r\\n5347 | \\t\\t* will contain a handle valid for this session.  Caller can wait for an event or occasionally\\r\\n5348 | \\t\\t* poll GetSpatialAnchorPose() to find the virtual coordinate associated with this anchor. */\\r\\n5349 | \\t\\tvirtual EVRSpatialAnchorError CreateSpatialAnchorFromDescriptor( const char *pchDescriptor, SpatialAnchorHandle_t *pHandleOut ) = 0;\\r\\n5350 | \\r\\n5351 | \\t\\t/** Returns a handle for an new spatial anchor at pPose.  On success, pHandle\\r\\n5352 | \\t\\t* will contain a handle valid for this session.  Caller can wait for an event or occasionally\\r\\n5353 | \\t\\t* poll GetSpatialAnchorDescriptor() to find the permanent descriptor for this pose.\\r\\n5354 | \\t\\t* The result of GetSpatialAnchorPose() may evolve from this initial position if the driver chooses\\r\\n5355 | \\t\\t* to update it.\\r\\n5356 | \\t\\t* The anchor will be associated with the driver that provides unDeviceIndex, and the driver may use that specific\\r\\n5357 | \\t\\t* device as a hint for how to best create the anchor.\\r\\n5358 | \\t\\t* The eOrigin must match whatever tracking origin you are working in (seated/standing/raw).\\r\\n5359 | \\t\\t* This should be called when the user is close to (and ideally looking at/interacting with) the target physical\\r\\n5360 | \\t\\t* location.  At that moment, the driver will have the most information about how to recover that physical point\\r\\n5361 | \\t\\t* in the future, and the quality of the anchor (when the descriptor is re-used) will be highest.\\r\\n5362 | \\t\\t* The caller may decide to apply offsets from this initial pose, but is advised to stay relatively close to the\\r\\n5363 | \\t\\t* original pose location for highest fidelity. */\\r\\n5364 | \\t\\tvirtual EVRSpatialAnchorError CreateSpatialAnchorFromPose( TrackedDeviceIndex_t unDeviceIndex, ETrackingUniverseOrigin eOrigin, SpatialAnchorPose_t *pPose, SpatialAnchorHandle_t *pHandleOut ) = 0;\\r\\n5365 | \\r\\n5366 | \\t\\t/** Get the pose for a given handle.  This is intended to be cheap enough to call every frame (or fairly often)\\r\\n5367 | \\t\\t* so that the driver can refine this position when it has more information available. */\\r\\n5368 | \\t\\tvirtual EVRSpatialAnchorError GetSpatialAnchorPose( SpatialAnchorHandle_t unHandle, ETrackingUniverseOrigin eOrigin, SpatialAnchorPose_t *pPoseOut ) = 0;\\r\\n5369 | \\r\\n5370 | \\t\\t/** Get the descriptor for a given handle.  This will be empty for handles where the driver has not\\r\\n5371 | \\t\\t* yet built a descriptor.  It will be the application-supplied descriptor for previously saved anchors\\r\\n5372 | \\t\\t* that the application is requesting poses for.  If the driver has called UpdateSpatialAnchorDescriptor()\\r\\n5373 | \\t\\t* already in this session, it will be the descriptor provided by the driver.\\r\\n5374 | \\t\\t* Returns true if the descriptor fits into the buffer, else false.  Buffer size should be at least\\r\\n5375 | \\t\\t* k_unMaxSpatialAnchorDescriptorSize. */\\r\\n5376 | \\t\\tvirtual EVRSpatialAnchorError GetSpatialAnchorDescriptor( SpatialAnchorHandle_t unHandle, VR_OUT_STRING() char *pchDescriptorOut, uint32_t *punDescriptorBufferLenInOut ) = 0;\\r\\n5377 | \\r\\n5378 | \\t};\\r\\n5379 | \\r\\n5380 | \\tstatic const char * const IVRSpatialAnchors_Version = \\\"IVRSpatialAnchors_001\\\";\\r\\n5381 | \\r\\n5382 | } // namespace vr\\r\\n5383 | \\r\\n5384 | // ivrrawimudata.h\\r\\n5385 | \\r\\n5386 | namespace vr\\r\\n5387 | {\\r\\n5388 | \\t/** Interface for accessing raw IMU data */\\r\\n5389 | \\tclass IVRRawIMUData\\r\\n5390 | \\t{\\r\\n5391 | \\tpublic:\\r\\n5392 | \\t\\t/** Get raw gyroscope data in radians per second */\\r\\n5393 | \\t\\tvirtual bool GetRawGyroscopeData(float* x, float* y, float* z) = 0;\\r\\n5394 | \\t\\t\\r\\n5395 | \\t\\t/** Get raw accelerometer data in meters per second squared */\\r\\n5396 | \\t\\tvirtual bool GetRawAccelerometerData(float* x, float* y, float* z) = 0;\\r\\n5397 | \\t\\t\\r\\n5398 | \\t\\t/** Get the timestamp of the last IMU sample in seconds */\\r\\n5399 | \\t\\tvirtual bool GetIMUSampleTimestamp(double* timestamp) = 0;\\r\\n5400 | \\t\\t\\r\\n5401 | \\t\\t/** Get a full IMU sample containing both gyroscope and accelerometer data */\\r\\n5402 | \\t\\tvirtual bool GetIMUSample(vr::ImuSample_t* pSample) = 0;\\r\\n5403 | \\t};\\r\\n5404 | \\r\\n5405 | \\tstatic const char* const IVRRawIMUData_Version = \\\"IVRRawIMUData_001\\\";\\r\\n5406 | \\t\\r\\n5407 | } // namespace vr\\r\\n5408 | \\r\\n5409 | // ivrdebug.h\\r\\n5410 | \\r\\n5411 | namespace vr\\r\\n5412 | {\\r\\n5413 | \\tenum EVRDebugError\\r\\n5414 | \\t{\\r\\n5415 | \\t\\tVRDebugError_Success = 0,\\r\\n5416 | \\t\\tVRDebugError_BadParameter\\r\\n5417 | \\t};\\r\\n5418 | \\r\\n5419 | \\t/** Handle for vr profiler events */\\r\\n5420 | \\ttypedef uint64_t VrProfilerEventHandle_t;\\r\\n5421 | \\r\\n5422 | \\tclass IVRDebug\\r\\n5423 | \\t{\\r\\n5424 | \\tpublic:\\r\\n5425 | \\r\\n5426 | \\t\\t/** Create a vr profiler discrete event (point)\\r\\n5427 | \\t\\t* The event will be associated with the message provided in pchMessage, and the current\\r\\n5428 | \\t\\t* time will be used as the event timestamp. */\\r\\n5429 | \\t\\tvirtual EVRDebugError EmitVrProfilerEvent( const char *pchMessage ) = 0;\\r\\n5430 | \\r\\n5431 | \\t\\t/** Create an vr profiler duration event (line)\\r\\n5432 | \\t\\t* The current time will be used as the timestamp for the start of the line.\\r\\n5433 | \\t\\t* On success, pHandleOut will contain a handle valid for terminating this event. */\\r\\n5434 | \\t\\tvirtual EVRDebugError BeginVrProfilerEvent( VrProfilerEventHandle_t *pHandleOut ) = 0;\\r\\n5435 | \\r\\n5436 | \\t\\t/** Terminate a vr profiler event\\r\\n5437 | \\t\\t* The event associated with hHandle will be considered completed when this method is called.\\r\\n5438 | \\t\\t* The current time will be used assocaited to the termination time of the event, and\\r\\n5439 | \\t\\t* pchMessage will be used as the event title. */\\r\\n5440 | \\t\\tvirtual EVRDebugError FinishVrProfilerEvent( VrProfilerEventHandle_t hHandle, const char *pchMessage ) = 0;\\r\\n5441 | \\r\\n5442 | \\t\\t/** Sends a request to the driver for the specified device and returns the response. The maximum response size is 32k,\\r\\n5443 | \\t\\t* but this method can be called with a smaller buffer. If the response exceeds the size of the buffer, it is truncated.\\r\\n5444 | \\t\\t* The size of the response including its terminating null is returned. */\\r\\n5445 | \\t\\tvirtual uint32_t DriverDebugRequest( vr::TrackedDeviceIndex_t unDeviceIndex, const char *pchRequest, VR_OUT_STRING() char *pchResponseBuffer, uint32_t unResponseBufferSize ) = 0;\\r\\n5446 | \\r\\n5447 | \\t};\\r\\n5448 | \\r\\n5449 | \\tstatic const char * const IVRDebug_Version = \\\"IVRDebug_001\\\";\\r\\n5450 | \\r\\n5451 | } // namespace vr\\r\\n5452 | // End\\r\\n5453 | \\r\\n5454 | #endif // _OPENVR_API\\r\\n5455 | \\r\\n5456 | \\r\\n5457 | \\r\\n5458 | namespace vr\\r\\n5459 | {\\r\\n5460 | #if !defined( OPENVR_INTERFACE_INTERNAL )\\r\\n5461 | \\r\\n5462 | \\t/** Finds the active installation of the VR API and initializes it. The provided path must be absolute\\r\\n5463 | \\t* or relative to the current working directory. These are the local install versions of the equivalent\\r\\n5464 | \\t* functions in steamvr.h and will work without a local Steam install.\\r\\n5465 | \\t*\\r\\n5466 | \\t* This path is to the \\\"root\\\" of the VR API install. That's the directory with\\r\\n5467 | \\t* the \\\"drivers\\\" directory and a platform (i.e. \\\"win32\\\") directory in it, not the directory with the DLL itself.\\r\\n5468 | \\t*\\r\\n5469 | \\t* pStartupInfo is reserved for future use.\\r\\n5470 | \\t*/\\r\\n5471 | \\tinline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType, const char *pStartupInfo = nullptr );\\r\\n5472 | \\r\\n5473 | \\t/** unloads vrclient.dll. Any interface pointers from the interface are\\r\\n5474 | \\t* invalid after this point */\\r\\n5475 | \\tinline void VR_Shutdown();\\r\\n5476 | \\r\\n5477 | \\t/** Returns true if there is an HMD attached. This check is as lightweight as possible and\\r\\n5478 | \\t* can be called outside of VR_Init/VR_Shutdown. It should be used when an application wants\\r\\n5479 | \\t* to know if initializing VR is a possibility but isn't ready to take that step yet.\\r\\n5480 | \\t*/\\r\\n5481 | \\tVR_INTERFACE bool VR_CALLTYPE VR_IsHmdPresent();\\r\\n5482 | \\r\\n5483 | \\t/** Returns true if the OpenVR runtime is installed. */\\r\\n5484 | \\tVR_INTERFACE bool VR_CALLTYPE VR_IsRuntimeInstalled();\\r\\n5485 | \\r\\n5486 | \\t/** Returns where the OpenVR runtime is installed. */\\r\\n5487 | \\tVR_INTERFACE bool VR_GetRuntimePath( VR_OUT_STRING() char *pchPathBuffer, uint32_t unBufferSize, uint32_t *punRequiredBufferSize );\\r\\n5488 | \\t\\r\\n5489 | \\t/** Returns the name of the enum value for an EVRInitError. This function may be called outside of VR_Init()/VR_Shutdown(). */\\r\\n5490 | \\tVR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsSymbol( EVRInitError error );\\r\\n5491 | \\r\\n5492 | \\t/** Returns an English string for an EVRInitError. Applications should call VR_GetVRInitErrorAsSymbol instead and\\r\\n5493 | \\t* use that as a key to look up their own localized error message. This function may be called outside of VR_Init()/VR_Shutdown(). */\\r\\n5494 | \\tVR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsEnglishDescription( EVRInitError error );\\r\\n5495 | \\r\\n5496 | \\t/** Returns the interface of the specified version. This method must be called after VR_Init. The\\r\\n5497 | \\t* pointer returned is valid until VR_Shutdown is called.\\r\\n5498 | \\t*/\\r\\n5499 | \\tVR_INTERFACE void *VR_CALLTYPE VR_GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError );\\r\\n5500 | \\r\\n5501 | \\t/** Returns whether the interface of the specified version exists.\\r\\n5502 | \\t*/\\r\\n5503 | \\tVR_INTERFACE bool VR_CALLTYPE VR_IsInterfaceVersionValid( const char *pchInterfaceVersion );\\r\\n5504 | \\r\\n5505 | \\t/** Returns a token that represents whether the VR interface handles need to be reloaded */\\r\\n5506 | \\tVR_INTERFACE uint32_t VR_CALLTYPE VR_GetInitToken();\\r\\n5507 | \\r\\n5508 | \\t// These typedefs allow old enum names from SDK 0.9.11 to be used in applications.\\r\\n5509 | \\t// They will go away in the future.\\r\\n5510 | \\ttypedef EVRInitError HmdError;\\r\\n5511 | \\ttypedef EVREye Hmd_Eye;\\r\\n5512 | \\ttypedef EColorSpace ColorSpace;\\r\\n5513 | \\ttypedef ETrackingResult HmdTrackingResult;\\r\\n5514 | \\ttypedef ETrackedDeviceClass TrackedDeviceClass;\\r\\n5515 | \\ttypedef ETrackingUniverseOrigin TrackingUniverseOrigin;\\r\\n5516 | \\ttypedef ETrackedDeviceProperty TrackedDeviceProperty;\\r\\n5517 | \\ttypedef ETrackedPropertyError TrackedPropertyError;\\r\\n5518 | \\ttypedef EVRSubmitFlags VRSubmitFlags_t;\\r\\n5519 | \\ttypedef EVRState VRState_t;\\r\\n5520 | \\ttypedef ECollisionBoundsStyle CollisionBoundsStyle_t;\\r\\n5521 | \\ttypedef EVROverlayError VROverlayError;\\r\\n5522 | \\ttypedef EVRFirmwareError VRFirmwareError;\\r\\n5523 | \\ttypedef EVRCompositorError VRCompositorError;\\r\\n5524 | \\ttypedef EVRScreenshotError VRScreenshotsError;\\r\\n5525 | \\r\\n5526 | \\tinline uint32_t &VRToken()\\r\\n5527 | \\t{\\r\\n5528 | \\t\\tstatic uint32_t token;\\r\\n5529 | \\t\\treturn token;\\r\\n5530 | \\t}\\r\\n5531 | \\r\\n5532 | \\tclass COpenVRContext\\r\\n5533 | \\t{\\r\\n5534 | \\tpublic:\\r\\n5535 | \\t\\tCOpenVRContext() { Clear(); }\\r\\n5536 | \\t\\tvoid Clear();\\r\\n5537 | \\r\\n5538 | \\t\\tinline void CheckClear()\\r\\n5539 | \\t\\t{\\r\\n5540 | \\t\\t\\tif ( VRToken() != VR_GetInitToken() )\\r\\n5541 | \\t\\t\\t{\\r\\n5542 | \\t\\t\\t\\tClear();\\r\\n5543 | \\t\\t\\t\\tVRToken() = VR_GetInitToken();\\r\\n5544 | \\t\\t\\t}\\r\\n5545 | \\t\\t}\\r\\n5546 | \\r\\n5547 | \\t\\tIVRSystem *VRSystem()\\r\\n5548 | \\t\\t{\\r\\n5549 | \\t\\t\\tCheckClear();\\r\\n5550 | \\t\\t\\tif ( m_pVRSystem == nullptr )\\r\\n5551 | \\t\\t\\t{\\r\\n5552 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5553 | \\t\\t\\t\\tm_pVRSystem = ( IVRSystem * )VR_GetGenericInterface( IVRSystem_Version, &eError );\\r\\n5554 | \\t\\t\\t}\\r\\n5555 | \\t\\t\\treturn m_pVRSystem;\\r\\n5556 | \\t\\t}\\r\\n5557 | \\t\\tIVRChaperone *VRChaperone()\\r\\n5558 | \\t\\t{\\r\\n5559 | \\t\\t\\tCheckClear();\\r\\n5560 | \\t\\t\\tif ( m_pVRChaperone == nullptr )\\r\\n5561 | \\t\\t\\t{\\r\\n5562 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5563 | \\t\\t\\t\\tm_pVRChaperone = ( IVRChaperone * )VR_GetGenericInterface( IVRChaperone_Version, &eError );\\r\\n5564 | \\t\\t\\t}\\r\\n5565 | \\t\\t\\treturn m_pVRChaperone;\\r\\n5566 | \\t\\t}\\r\\n5567 | \\r\\n5568 | \\t\\tIVRChaperoneSetup *VRChaperoneSetup()\\r\\n5569 | \\t\\t{\\r\\n5570 | \\t\\t\\tCheckClear();\\r\\n5571 | \\t\\t\\tif ( m_pVRChaperoneSetup == nullptr )\\r\\n5572 | \\t\\t\\t{\\r\\n5573 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5574 | \\t\\t\\t\\tm_pVRChaperoneSetup = ( IVRChaperoneSetup * )VR_GetGenericInterface( IVRChaperoneSetup_Version, &eError );\\r\\n5575 | \\t\\t\\t}\\r\\n5576 | \\t\\t\\treturn m_pVRChaperoneSetup;\\r\\n5577 | \\t\\t}\\r\\n5578 | \\r\\n5579 | \\t\\tIVRCompositor *VRCompositor()\\r\\n5580 | \\t\\t{\\r\\n5581 | \\t\\t\\tCheckClear();\\r\\n5582 | \\t\\t\\tif ( m_pVRCompositor == nullptr )\\r\\n5583 | \\t\\t\\t{\\r\\n5584 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5585 | \\t\\t\\t\\tm_pVRCompositor = ( IVRCompositor * )VR_GetGenericInterface( IVRCompositor_Version, &eError );\\r\\n5586 | \\t\\t\\t}\\r\\n5587 | \\t\\t\\treturn m_pVRCompositor;\\r\\n5588 | \\t\\t}\\r\\n5589 | \\r\\n5590 | \\t\\tIVROverlay *VROverlay()\\r\\n5591 | \\t\\t{\\r\\n5592 | \\t\\t\\tCheckClear();\\r\\n5593 | \\t\\t\\tif ( m_pVROverlay == nullptr )\\r\\n5594 | \\t\\t\\t{\\r\\n5595 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5596 | \\t\\t\\t\\tm_pVROverlay = ( IVROverlay * )VR_GetGenericInterface( IVROverlay_Version, &eError );\\r\\n5597 | \\t\\t\\t}\\r\\n5598 | \\t\\t\\treturn m_pVROverlay;\\r\\n5599 | \\t\\t}\\r\\n5600 | \\r\\n5601 | \\t\\tIVROverlayView *VROverlayView()\\r\\n5602 | \\t\\t{\\r\\n5603 | \\t\\t\\tCheckClear();\\r\\n5604 | \\t\\t\\tif ( m_pVROverlayView == nullptr )\\r\\n5605 | \\t\\t\\t{\\r\\n5606 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5607 | \\t\\t\\t\\tm_pVROverlayView = ( IVROverlayView * ) VR_GetGenericInterface( IVROverlayView_Version, &eError );\\r\\n5608 | \\t\\t\\t}\\r\\n5609 | \\t\\t\\treturn m_pVROverlayView;\\r\\n5610 | \\t\\t}\\r\\n5611 | \\r\\n5612 | \\t\\tIVRHeadsetView *VRHeadsetView()\\r\\n5613 | \\t\\t{\\r\\n5614 | \\t\\t\\tCheckClear();\\r\\n5615 | \\t\\t\\tif ( m_pVRHeadsetView == nullptr )\\r\\n5616 | \\t\\t\\t{\\r\\n5617 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5618 | \\t\\t\\t\\tm_pVRHeadsetView = ( IVRHeadsetView * ) VR_GetGenericInterface( IVRHeadsetView_Version, &eError );\\r\\n5619 | \\t\\t\\t}\\r\\n5620 | \\t\\t\\treturn m_pVRHeadsetView;\\r\\n5621 | \\t\\t}\\r\\n5622 | \\r\\n5623 | \\t\\tIVRResources *VRResources()\\r\\n5624 | \\t\\t{\\r\\n5625 | \\t\\t\\tCheckClear();\\r\\n5626 | \\t\\t\\tif ( m_pVRResources == nullptr )\\r\\n5627 | \\t\\t\\t{\\r\\n5628 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5629 | \\t\\t\\t\\tm_pVRResources = (IVRResources *)VR_GetGenericInterface( IVRResources_Version, &eError );\\r\\n5630 | \\t\\t\\t}\\r\\n5631 | \\t\\t\\treturn m_pVRResources;\\r\\n5632 | \\t\\t}\\r\\n5633 | \\r\\n5634 | \\t\\tIVRScreenshots *VRScreenshots()\\r\\n5635 | \\t\\t{\\r\\n5636 | \\t\\t\\tCheckClear();\\r\\n5637 | \\t\\t\\tif ( m_pVRScreenshots == nullptr )\\r\\n5638 | \\t\\t\\t{\\r\\n5639 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5640 | \\t\\t\\t\\tm_pVRScreenshots = ( IVRScreenshots * )VR_GetGenericInterface( IVRScreenshots_Version, &eError );\\r\\n5641 | \\t\\t\\t}\\r\\n5642 | \\t\\t\\treturn m_pVRScreenshots;\\r\\n5643 | \\t\\t}\\r\\n5644 | \\r\\n5645 | \\t\\tIVRRenderModels *VRRenderModels()\\r\\n5646 | \\t\\t{\\r\\n5647 | \\t\\t\\tCheckClear();\\r\\n5648 | \\t\\t\\tif ( m_pVRRenderModels == nullptr )\\r\\n5649 | \\t\\t\\t{\\r\\n5650 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5651 | \\t\\t\\t\\tm_pVRRenderModels = ( IVRRenderModels * )VR_GetGenericInterface( IVRRenderModels_Version, &eError );\\r\\n5652 | \\t\\t\\t}\\r\\n5653 | \\t\\t\\treturn m_pVRRenderModels;\\r\\n5654 | \\t\\t}\\r\\n5655 | \\r\\n5656 | \\t\\tIVRExtendedDisplay *VRExtendedDisplay()\\r\\n5657 | \\t\\t{\\r\\n5658 | \\t\\t\\tCheckClear();\\r\\n5659 | \\t\\t\\tif ( m_pVRExtendedDisplay == nullptr )\\r\\n5660 | \\t\\t\\t{\\r\\n5661 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5662 | \\t\\t\\t\\tm_pVRExtendedDisplay = ( IVRExtendedDisplay * )VR_GetGenericInterface( IVRExtendedDisplay_Version, &eError );\\r\\n5663 | \\t\\t\\t}\\r\\n5664 | \\t\\t\\treturn m_pVRExtendedDisplay;\\r\\n5665 | \\t\\t}\\r\\n5666 | \\r\\n5667 | \\t\\tIVRSettings *VRSettings()\\r\\n5668 | \\t\\t{\\r\\n5669 | \\t\\t\\tCheckClear();\\r\\n5670 | \\t\\t\\tif ( m_pVRSettings == nullptr )\\r\\n5671 | \\t\\t\\t{\\r\\n5672 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5673 | \\t\\t\\t\\tm_pVRSettings = ( IVRSettings * )VR_GetGenericInterface( IVRSettings_Version, &eError );\\r\\n5674 | \\t\\t\\t}\\r\\n5675 | \\t\\t\\treturn m_pVRSettings;\\r\\n5676 | \\t\\t}\\r\\n5677 | \\r\\n5678 | \\t\\tIVRApplications *VRApplications()\\r\\n5679 | \\t\\t{\\r\\n5680 | \\t\\t\\tCheckClear();\\r\\n5681 | \\t\\t\\tif ( m_pVRApplications == nullptr )\\r\\n5682 | \\t\\t\\t{\\r\\n5683 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5684 | \\t\\t\\t\\tm_pVRApplications = ( IVRApplications * )VR_GetGenericInterface( IVRApplications_Version, &eError );\\r\\n5685 | \\t\\t\\t}\\r\\n5686 | \\t\\t\\treturn m_pVRApplications;\\r\\n5687 | \\t\\t}\\r\\n5688 | \\r\\n5689 | \\t\\tIVRTrackedCamera *VRTrackedCamera()\\r\\n5690 | \\t\\t{\\r\\n5691 | \\t\\t\\tCheckClear();\\r\\n5692 | \\t\\t\\tif ( m_pVRTrackedCamera == nullptr )\\r\\n5693 | \\t\\t\\t{\\r\\n5694 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5695 | \\t\\t\\t\\tm_pVRTrackedCamera = ( IVRTrackedCamera * )VR_GetGenericInterface( IVRTrackedCamera_Version, &eError );\\r\\n5696 | \\t\\t\\t}\\r\\n5697 | \\t\\t\\treturn m_pVRTrackedCamera;\\r\\n5698 | \\t\\t}\\r\\n5699 | \\r\\n5700 | \\t\\tIVRDriverManager *VRDriverManager()\\r\\n5701 | \\t\\t{\\r\\n5702 | \\t\\t\\tCheckClear();\\r\\n5703 | \\t\\t\\tif ( !m_pVRDriverManager )\\r\\n5704 | \\t\\t\\t{\\r\\n5705 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5706 | \\t\\t\\t\\tm_pVRDriverManager = ( IVRDriverManager * )VR_GetGenericInterface( IVRDriverManager_Version, &eError );\\r\\n5707 | \\t\\t\\t}\\r\\n5708 | \\t\\t\\treturn m_pVRDriverManager;\\r\\n5709 | \\t\\t}\\r\\n5710 | \\r\\n5711 | \\t\\tIVRInput *VRInput()\\r\\n5712 | \\t\\t{\\r\\n5713 | \\t\\t\\tCheckClear();\\r\\n5714 | \\t\\t\\tif ( !m_pVRInput )\\r\\n5715 | \\t\\t\\t{\\r\\n5716 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5717 | \\t\\t\\t\\tm_pVRInput = (IVRInput *)VR_GetGenericInterface( IVRInput_Version, &eError );\\r\\n5718 | \\t\\t\\t}\\r\\n5719 | \\t\\t\\treturn m_pVRInput;\\r\\n5720 | \\t\\t}\\r\\n5721 | \\r\\n5722 | \\t\\tIVRIOBuffer *VRIOBuffer()\\r\\n5723 | \\t\\t{\\r\\n5724 | \\t\\t\\tif ( !m_pVRIOBuffer )\\r\\n5725 | \\t\\t\\t{\\r\\n5726 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5727 | \\t\\t\\t\\tm_pVRIOBuffer = ( IVRIOBuffer * )VR_GetGenericInterface( IVRIOBuffer_Version, &eError );\\r\\n5728 | \\t\\t\\t}\\r\\n5729 | \\t\\t\\treturn m_pVRIOBuffer;\\r\\n5730 | \\t\\t}\\r\\n5731 | \\r\\n5732 | \\t\\tIVRSpatialAnchors *VRSpatialAnchors()\\r\\n5733 | \\t\\t{\\r\\n5734 | \\t\\t\\tCheckClear();\\r\\n5735 | \\t\\t\\tif ( !m_pVRSpatialAnchors )\\r\\n5736 | \\t\\t\\t{\\r\\n5737 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5738 | \\t\\t\\t\\tm_pVRSpatialAnchors = (IVRSpatialAnchors *)VR_GetGenericInterface( IVRSpatialAnchors_Version, &eError );\\r\\n5739 | \\t\\t\\t}\\r\\n5740 | \\t\\t\\treturn m_pVRSpatialAnchors;\\r\\n5741 | \\t\\t}\\r\\n5742 | \\r\\n5743 | \\t\\tIVRDebug *VRDebug()\\r\\n5744 | \\t\\t{\\r\\n5745 | \\t\\t\\tCheckClear();\\r\\n5746 | \\t\\t\\tif ( !m_pVRDebug )\\r\\n5747 | \\t\\t\\t{\\r\\n5748 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5749 | \\t\\t\\t\\tm_pVRDebug = (IVRDebug *)VR_GetGenericInterface( IVRDebug_Version, &eError );\\r\\n5750 | \\t\\t\\t}\\r\\n5751 | \\t\\t\\treturn m_pVRDebug;\\r\\n5752 | \\t\\t}\\r\\n5753 | \\r\\n5754 | \\t\\tIVRNotifications *VRNotifications()\\r\\n5755 | \\t\\t{\\r\\n5756 | \\t\\t\\tCheckClear();\\r\\n5757 | \\t\\t\\tif ( !m_pVRNotifications )\\r\\n5758 | \\t\\t\\t{\\r\\n5759 | \\t\\t\\t\\tEVRInitError eError;\\r\\n5760 | \\t\\t\\t\\tm_pVRNotifications = ( IVRNotifications * )VR_GetGenericInterface( IVRNotifications_Version, &eError );\\r\\n5761 | \\t\\t\\t}\\r\\n5762 | \\t\\t\\treturn m_pVRNotifications;\\r\\n5763 | \\t\\t}\\r\\n5764 | \\t\\t\\r\\n5765 | \\tprivate:\\r\\n5766 | \\t\\tIVRSystem\\t\\t\\t*m_pVRSystem;\\r\\n5767 | \\t\\tIVRChaperone\\t\\t*m_pVRChaperone;\\r\\n5768 | \\t\\tIVRChaperoneSetup\\t*m_pVRChaperoneSetup;\\r\\n5769 | \\t\\tIVRCompositor\\t\\t*m_pVRCompositor;\\r\\n5770 | \\t\\tIVRHeadsetView\\t\\t*m_pVRHeadsetView;\\r\\n5771 | \\t\\tIVROverlay\\t\\t\\t*m_pVROverlay;\\r\\n5772 | \\t\\tIVROverlayView\\t\\t*m_pVROverlayView;\\r\\n5773 | \\t\\tIVRResources\\t\\t*m_pVRResources;\\r\\n5774 | \\t\\tIVRRenderModels\\t\\t*m_pVRRenderModels;\\r\\n5775 | \\t\\tIVRExtendedDisplay\\t*m_pVRExtendedDisplay;\\r\\n5776 | \\t\\tIVRSettings\\t\\t\\t*m_pVRSettings;\\r\\n5777 | \\t\\tIVRApplications\\t\\t*m_pVRApplications;\\r\\n5778 | \\t\\tIVRTrackedCamera\\t*m_pVRTrackedCamera;\\r\\n5779 | \\t\\tIVRScreenshots\\t\\t*m_pVRScreenshots;\\r\\n5780 | \\t\\tIVRDriverManager\\t*m_pVRDriverManager;\\r\\n5781 | \\t\\tIVRInput\\t\\t\\t*m_pVRInput;\\r\\n5782 | \\t\\tIVRIOBuffer\\t\\t\\t*m_pVRIOBuffer;\\r\\n5783 | \\t\\tIVRSpatialAnchors   *m_pVRSpatialAnchors;\\r\\n5784 | \\t\\tIVRDebug\\t\\t\\t*m_pVRDebug;\\r\\n5785 | \\t\\tIVRNotifications\\t*m_pVRNotifications;\\r\\n5786 | \\t};\\r\\n5787 | \\r\\n5788 | \\tinline COpenVRContext &OpenVRInternal_ModuleContext()\\r\\n5789 | \\t{\\r\\n5790 | \\t\\tstatic void *ctx[ sizeof( COpenVRContext ) / sizeof( void * ) ];\\r\\n5791 | \\t\\treturn *( COpenVRContext * )ctx; // bypass zero-init constructor\\r\\n5792 | \\t}\\r\\n5793 | \\r\\n5794 | \\tinline IVRSystem *VR_CALLTYPE VRSystem() { return OpenVRInternal_ModuleContext().VRSystem(); }\\r\\n5795 | \\tinline IVRChaperone *VR_CALLTYPE VRChaperone() { return OpenVRInternal_ModuleContext().VRChaperone(); }\\r\\n5796 | \\tinline IVRChaperoneSetup *VR_CALLTYPE VRChaperoneSetup() { return OpenVRInternal_ModuleContext().VRChaperoneSetup(); }\\r\\n5797 | \\tinline IVRCompositor *VR_CALLTYPE VRCompositor() { return OpenVRInternal_ModuleContext().VRCompositor(); }\\r\\n5798 | \\tinline IVROverlay *VR_CALLTYPE VROverlay() { return OpenVRInternal_ModuleContext().VROverlay(); }\\r\\n5799 | \\tinline IVROverlayView *VR_CALLTYPE VROverlayView() { return OpenVRInternal_ModuleContext().VROverlayView(); }\\r\\n5800 | \\tinline IVRHeadsetView *VR_CALLTYPE VRHeadsetView() { return OpenVRInternal_ModuleContext().VRHeadsetView(); }\\r\\n5801 | \\tinline IVRScreenshots *VR_CALLTYPE VRScreenshots() { return OpenVRInternal_ModuleContext().VRScreenshots(); }\\r\\n5802 | \\tinline IVRRenderModels *VR_CALLTYPE VRRenderModels() { return OpenVRInternal_ModuleContext().VRRenderModels(); }\\r\\n5803 | \\tinline IVRApplications *VR_CALLTYPE VRApplications() { return OpenVRInternal_ModuleContext().VRApplications(); }\\r\\n5804 | \\tinline IVRSettings *VR_CALLTYPE VRSettings() { return OpenVRInternal_ModuleContext().VRSettings(); }\\r\\n5805 | \\tinline IVRResources *VR_CALLTYPE VRResources() { return OpenVRInternal_ModuleContext().VRResources(); }\\r\\n5806 | \\tinline IVRExtendedDisplay *VR_CALLTYPE VRExtendedDisplay() { return OpenVRInternal_ModuleContext().VRExtendedDisplay(); }\\r\\n5807 | \\tinline IVRTrackedCamera *VR_CALLTYPE VRTrackedCamera() { return OpenVRInternal_ModuleContext().VRTrackedCamera(); }\\r\\n5808 | \\tinline IVRDriverManager *VR_CALLTYPE VRDriverManager() { return OpenVRInternal_ModuleContext().VRDriverManager(); }\\r\\n5809 | \\tinline IVRInput *VR_CALLTYPE VRInput() { return OpenVRInternal_ModuleContext().VRInput(); }\\r\\n5810 | \\tinline IVRIOBuffer *VR_CALLTYPE VRIOBuffer() { return OpenVRInternal_ModuleContext().VRIOBuffer(); }\\r\\n5811 | \\tinline IVRSpatialAnchors *VR_CALLTYPE VRSpatialAnchors() { return OpenVRInternal_ModuleContext().VRSpatialAnchors(); }\\r\\n5812 | \\tinline IVRNotifications *VR_CALLTYPE VRNotifications() { return OpenVRInternal_ModuleContext().VRNotifications(); }\\r\\n5813 | \\tinline IVRDebug *VR_CALLTYPE VRDebug() { return OpenVRInternal_ModuleContext().VRDebug(); }\\r\\n5814 | \\r\\n5815 | \\tinline void COpenVRContext::Clear()\\r\\n5816 | \\t{\\r\\n5817 | \\t\\tm_pVRSystem = nullptr;\\r\\n5818 | \\t\\tm_pVRChaperone = nullptr;\\r\\n5819 | \\t\\tm_pVRChaperoneSetup = nullptr;\\r\\n5820 | \\t\\tm_pVRCompositor = nullptr;\\r\\n5821 | \\t\\tm_pVROverlay = nullptr;\\r\\n5822 | \\t\\tm_pVROverlayView = nullptr;\\r\\n5823 | \\t\\tm_pVRHeadsetView = nullptr;\\r\\n5824 | \\t\\tm_pVRRenderModels = nullptr;\\r\\n5825 | \\t\\tm_pVRExtendedDisplay = nullptr;\\r\\n5826 | \\t\\tm_pVRSettings = nullptr;\\r\\n5827 | \\t\\tm_pVRApplications = nullptr;\\r\\n5828 | \\t\\tm_pVRTrackedCamera = nullptr;\\r\\n5829 | \\t\\tm_pVRResources = nullptr;\\r\\n5830 | \\t\\tm_pVRScreenshots = nullptr;\\r\\n5831 | \\t\\tm_pVRDriverManager = nullptr;\\r\\n5832 | \\t\\tm_pVRInput = nullptr;\\r\\n5833 | \\t\\tm_pVRIOBuffer = nullptr;\\r\\n5834 | \\t\\tm_pVRSpatialAnchors = nullptr;\\r\\n5835 | \\t\\tm_pVRNotifications = nullptr;\\r\\n5836 | \\t\\tm_pVRDebug = nullptr;\\r\\n5837 | \\t}\\r\\n5838 | \\t\\r\\n5839 | \\tVR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal2( EVRInitError *peError, EVRApplicationType eApplicationType, const char *pStartupInfo );\\r\\n5840 | \\tVR_INTERFACE void VR_CALLTYPE VR_ShutdownInternal();\\r\\n5841 | \\r\\n5842 | \\t/** Finds the active installation of vrclient.dll and initializes it */\\r\\n5843 | \\tinline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType, const char *pStartupInfo )\\r\\n5844 | \\t{\\r\\n5845 | \\t\\tIVRSystem *pVRSystem = nullptr;\\r\\n5846 | \\r\\n5847 | \\t\\tEVRInitError eError;\\r\\n5848 | \\t\\tVRToken() = VR_InitInternal2( &eError, eApplicationType, pStartupInfo );\\r\\n5849 | \\t\\tCOpenVRContext &ctx = OpenVRInternal_ModuleContext();\\r\\n5850 | \\t\\tctx.Clear();\\r\\n5851 | \\r\\n5852 | \\t\\tif ( eError == VRInitError_None )\\r\\n5853 | \\t\\t{\\r\\n5854 | \\t\\t\\tif ( VR_IsInterfaceVersionValid( IVRSystem_Version ) )\\r\\n5855 | \\t\\t\\t{\\r\\n5856 | \\t\\t\\t\\tpVRSystem = VRSystem();\\r\\n5857 | \\t\\t\\t}\\r\\n5858 | \\t\\t\\telse\\r\\n5859 | \\t\\t\\t{\\r\\n5860 | \\t\\t\\t\\tVR_ShutdownInternal();\\r\\n5861 | \\t\\t\\t\\teError = VRInitError_Init_InterfaceNotFound;\\r\\n5862 | \\t\\t\\t}\\r\\n5863 | \\t\\t}\\r\\n5864 | \\r\\n5865 | \\t\\tif ( peError )\\r\\n5866 | \\t\\t\\t*peError = eError;\\r\\n5867 | \\t\\treturn pVRSystem;\\r\\n5868 | \\t}\\r\\n5869 | \\r\\n5870 | \\t/** unloads vrclient.dll. Any interface pointers from the interface are\\r\\n5871 | \\t* invalid after this point */\\r\\n5872 | \\tinline void VR_Shutdown()\\r\\n5873 | \\t{\\r\\n5874 | \\t\\tVR_ShutdownInternal();\\r\\n5875 | \\t}\\r\\n5876 | \\r\\n5877 | #endif // OPENVR_INTERFACE_INTERNAL\\r\\n5878 | }\\r\\n5879 | \\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:37:33 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n27,874 (14%)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n</environment_details>\",\"tokensIn\":0,\"tokensOut\":113,\"cacheWrites\":127768,\"cacheReads\":16248,\"cost\":0.4856994}"},{"ts":1741001868147,"type":"say","say":"text","text":"Now I need to check the OpenVR_Modifications.md file to understand what changes I need to make:\n\nLet me check the OpenVR_Modifications.md file to understand what changes I need to make:","partial":false},{"ts":1741001868753,"type":"ask","ask":"tool","text":"{\"tool\":\"readFile\",\"path\":\"OpenVR_Modifications.md\",\"content\":\"c:\\\\Users\\\\decid\\\\Documents\\\\projects\\\\openvr-resilient\\\\OpenVR_Modifications.md\"}","partial":false},{"ts":1741001885592,"type":"ask","ask":"api_req_failed","text":"429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (c798c237-8869-4d4f-a50e-54a864da0eac) of 20,000 input tokens per minute. For details, refer to: https://docs.anthropic.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"}}"},{"ts":1741002019779,"type":"say","say":"api_req_retried"},{"ts":1741002022345,"type":"ask","ask":"api_req_failed","text":"429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (c798c237-8869-4d4f-a50e-54a864da0eac) of 20,000 input tokens per minute. For details, refer to: https://docs.anthropic.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"}}"},{"ts":1741002151002,"type":"say","say":"api_req_retried"},{"ts":1741002153959,"type":"ask","ask":"api_req_failed","text":"429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (c798c237-8869-4d4f-a50e-54a864da0eac) of 20,000 input tokens per minute. For details, refer to: https://docs.anthropic.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"}}"},{"ts":1741002172939,"type":"ask","ask":"resume_task"},{"ts":1741002188781,"type":"say","say":"user_feedback","text":"you already read this file earlier. it hasn't changed since then.","images":[]},{"ts":1741002188836,"type":"say","say":"api_req_started","text":"{\"request\":\"[read_file for 'OpenVR_Modifications.md'] Result:\\n\\n  1 | # OpenVR Library Modifications for Raw IMU Data Access\\r\\n  2 | \\r\\n  3 | This document outlines the necessary modifications to the OpenVR library to enable continuous access to raw IMU data, even when optical tracking is lost.\\r\\n  4 | \\r\\n  5 | ## Problem Statement\\r\\n  6 | \\r\\n  7 | The current OpenVR API only provides IMU data through the `TrackedDevicePose_t` structure, which becomes invalid when optical tracking is lost. This means applications cannot access raw IMU data during tracking loss, which is problematic for applications that need continuous IMU data.\\r\\n  8 | \\r\\n  9 | ## Solution Overview\\r\\n 10 | \\r\\n 11 | After examining the OpenVR codebase at \\\"C:\\\\Users\\\\decid\\\\Documents\\\\projects\\\\openvr-resilient\\\", we've identified that OpenVR already has structures for IMU data (`ImuSample_t`) but doesn't expose a direct API for accessing this data continuously. We need to modify the OpenVR library to:\\r\\n 12 | \\r\\n 13 | 1. Expose a new interface for accessing raw IMU data\\r\\n 14 | 2. Implement this interface to provide access to the IMU data regardless of tracking state\\r\\n 15 | \\r\\n 16 | ## Detailed Modifications\\r\\n 17 | \\r\\n 18 | ### 1. Add a New Interface for IMU Data Access\\r\\n 19 | \\r\\n 20 | In `headers/openvr.h`, add a new interface definition and version string:\\r\\n 21 | \\r\\n 22 | ```cpp\\r\\n 23 | static const char* const IVRRawIMUData_Version = \\\"IVRRawIMUData_001\\\";\\r\\n 24 | \\r\\n 25 | /** Interface for accessing raw IMU data */\\r\\n 26 | class IVRRawIMUData\\r\\n 27 | {\\r\\n 28 | public:\\r\\n 29 |     /** Get raw gyroscope data in radians per second */\\r\\n 30 |     virtual bool GetRawGyroscopeData(float* x, float* y, float* z) = 0;\\r\\n 31 |     \\r\\n 32 |     /** Get raw accelerometer data in meters per second squared */\\r\\n 33 |     virtual bool GetRawAccelerometerData(float* x, float* y, float* z) = 0;\\r\\n 34 |     \\r\\n 35 |     /** Get the timestamp of the last IMU sample in seconds */\\r\\n 36 |     virtual bool GetIMUSampleTimestamp(double* timestamp) = 0;\\r\\n 37 |     \\r\\n 38 |     /** Get a full IMU sample containing both gyroscope and accelerometer data */\\r\\n 39 |     virtual bool GetIMUSample(vr::ImuSample_t* pSample) = 0;\\r\\n 40 | };\\r\\n 41 | ```\\r\\n 42 | \\r\\n 43 | ### 2. Implement the Interface in the OpenVR Runtime\\r\\n 44 | \\r\\n 45 | In `src/vrcore/vrcore_impl.cpp` (or an appropriate implementation file), add the implementation of the new interface:\\r\\n 46 | \\r\\n 47 | ```cpp\\r\\n 48 | class CVRRawIMUData : public IVRRawIMUData\\r\\n 49 | {\\r\\n 50 | public:\\r\\n 51 |     CVRRawIMUData()\\r\\n 52 |     {\\r\\n 53 |         // Initialize any necessary resources\\r\\n 54 |     }\\r\\n 55 |     \\r\\n 56 |     virtual ~CVRRawIMUData()\\r\\n 57 |     {\\r\\n 58 |         // Clean up resources\\r\\n 59 |     }\\r\\n 60 |     \\r\\n 61 |     virtual bool GetRawGyroscopeData(float* x, float* y, float* z) override\\r\\n 62 |     {\\r\\n 63 |         // Get the HMD device\\r\\n 64 |         vr::TrackedDeviceIndex_t hmdIndex = vr::k_unTrackedDeviceIndex_Hmd;\\r\\n 65 |         \\r\\n 66 |         // Check if the HMD is connected\\r\\n 67 |         if (!vr::VRSystem()->IsTrackedDeviceConnected(hmdIndex))\\r\\n 68 |             return false;\\r\\n 69 |         \\r\\n 70 |         // Try to get the latest IMU sample\\r\\n 71 |         vr::ImuSample_t sample;\\r\\n 72 |         if (GetIMUSample(&sample))\\r\\n 73 |         {\\r\\n 74 |             // Convert from double to float\\r\\n 75 |             *x = (float)sample.vGyro.v[0];\\r\\n 76 |             *y = (float)sample.vGyro.v[1];\\r\\n 77 |             *z = (float)sample.vGyro.v[2];\\r\\n 78 |             return true;\\r\\n 79 |         }\\r\\n 80 |         \\r\\n 81 |         return false;\\r\\n 82 |     }\\r\\n 83 |     \\r\\n 84 |     virtual bool GetRawAccelerometerData(float* x, float* y, float* z) override\\r\\n 85 |     {\\r\\n 86 |         // Get the HMD device\\r\\n 87 |         vr::TrackedDeviceIndex_t hmdIndex = vr::k_unTrackedDeviceIndex_Hmd;\\r\\n 88 |         \\r\\n 89 |         // Check if the HMD is connected\\r\\n 90 |         if (!vr::VRSystem()->IsTrackedDeviceConnected(hmdIndex))\\r\\n 91 |             return false;\\r\\n 92 |         \\r\\n 93 |         // Try to get the latest IMU sample\\r\\n 94 |         vr::ImuSample_t sample;\\r\\n 95 |         if (GetIMUSample(&sample))\\r\\n 96 |         {\\r\\n 97 |             // Convert from double to float\\r\\n 98 |             *x = (float)sample.vAccel.v[0];\\r\\n 99 |             *y = (float)sample.vAccel.v[1];\\r\\n100 |             *z = (float)sample.vAccel.v[2];\\r\\n101 |             return true;\\r\\n102 |         }\\r\\n103 |         \\r\\n104 |         return false;\\r\\n105 |     }\\r\\n106 |     \\r\\n107 |     virtual bool GetIMUSampleTimestamp(double* timestamp) override\\r\\n108 |     {\\r\\n109 |         // Get the HMD device\\r\\n110 |         vr::TrackedDeviceIndex_t hmdIndex = vr::k_unTrackedDeviceIndex_Hmd;\\r\\n111 |         \\r\\n112 |         // Check if the HMD is connected\\r\\n113 |         if (!vr::VRSystem()->IsTrackedDeviceConnected(hmdIndex))\\r\\n114 |             return false;\\r\\n115 |         \\r\\n116 |         // Try to get the latest IMU sample\\r\\n117 |         vr::ImuSample_t sample;\\r\\n118 |         if (GetIMUSample(&sample))\\r\\n119 |         {\\r\\n120 |             *timestamp = sample.fSampleTime;\\r\\n121 |             return true;\\r\\n122 |         }\\r\\n123 |         \\r\\n124 |         return false;\\r\\n125 |     }\\r\\n126 |     \\r\\n127 |     virtual bool GetIMUSample(vr::ImuSample_t* pSample) override\\r\\n128 |     {\\r\\n129 |         // This is the key method that needs to be implemented to access the raw IMU data\\r\\n130 |         // The implementation will depend on the specific driver and hardware\\r\\n131 |         \\r\\n132 |         // Get the HMD device\\r\\n133 |         vr::TrackedDeviceIndex_t hmdIndex = vr::k_unTrackedDeviceIndex_Hmd;\\r\\n134 |         \\r\\n135 |         // Check if the HMD is connected\\r\\n136 |         if (!vr::VRSystem()->IsTrackedDeviceConnected(hmdIndex))\\r\\n137 |             return false;\\r\\n138 |         \\r\\n139 |         // Access the IMU data buffer\\r\\n140 |         // This is where we need to access the driver's internal IMU data buffer\\r\\n141 |         // The exact implementation will depend on the specific driver\\r\\n142 |         \\r\\n143 |         // For example, we might use the IVRIOBuffer interface to access the IMU data buffer:\\r\\n144 |         vr::IOBufferHandle_t imuBuffer = vr::k_ulInvalidIOBufferHandle;\\r\\n145 |         vr::EIOBufferError error = vr::VRIOBuffer()->Open(\\r\\n146 |             \\\"/dev/imu/hmd\\\", \\r\\n147 |             vr::IOBufferMode_Read, \\r\\n148 |             sizeof(vr::ImuSample_t), \\r\\n149 |             1, \\r\\n150 |             &imuBuffer);\\r\\n151 |         \\r\\n152 |         if (error != vr::IOBufferError_None || imuBuffer == vr::k_ulInvalidIOBufferHandle)\\r\\n153 |             return false;\\r\\n154 |         \\r\\n155 |         uint32_t bytesRead = 0;\\r\\n156 |         error = vr::VRIOBuffer()->Read(imuBuffer, pSample, sizeof(vr::ImuSample_t), &bytesRead);\\r\\n157 |         \\r\\n158 |         vr::VRIOBuffer()->Close(imuBuffer);\\r\\n159 |         \\r\\n160 |         return (error == vr::IOBufferError_None && bytesRead == sizeof(vr::ImuSample_t));\\r\\n161 |     }\\r\\n162 | };\\r\\n163 | ```\\r\\n164 | \\r\\n165 | ### 3. Expose the Interface through the OpenVR API\\r\\n166 | \\r\\n167 | In the appropriate factory method in the OpenVR implementation (likely in `src/vrcore/vrcore_impl.cpp`), add code to create and return the new interface:\\r\\n168 | \\r\\n169 | ```cpp\\r\\n170 | void* CVRSystem::GetGenericInterface(const char* pchInterfaceVersion, vr::EVRInitError* peError)\\r\\n171 | {\\r\\n172 |     // Existing code...\\r\\n173 |     \\r\\n174 |     // Check for our new interface\\r\\n175 |     if (strcmp(pchInterfaceVersion, vr::IVRRawIMUData_Version) == 0)\\r\\n176 |     {\\r\\n177 |         if (!m_pRawIMUData)\\r\\n178 |         {\\r\\n179 |             m_pRawIMUData = new CVRRawIMUData();\\r\\n180 |         }\\r\\n181 |         \\r\\n182 |         if (peError)\\r\\n183 |             *peError = vr::VRInitError_None;\\r\\n184 |             \\r\\n185 |         return m_pRawIMUData;\\r\\n186 |     }\\r\\n187 |     \\r\\n188 |     // Existing code...\\r\\n189 | }\\r\\n190 | ```\\r\\n191 | \\r\\n192 | ### 4. Add the Interface Member to the CVRSystem Class\\r\\n193 | \\r\\n194 | In the appropriate header file (likely `src/vrcore/vrcore_impl.h`), add a member for the new interface:\\r\\n195 | \\r\\n196 | ```cpp\\r\\n197 | class CVRSystem : public vr::IVRSystem\\r\\n198 | {\\r\\n199 |     // Existing code...\\r\\n200 |     \\r\\n201 | private:\\r\\n202 |     // Existing members...\\r\\n203 |     CVRRawIMUData* m_pRawIMUData;\\r\\n204 | };\\r\\n205 | ```\\r\\n206 | \\r\\n207 | ## Building the Modified OpenVR Library\\r\\n208 | \\r\\n209 | 1. Clone the OpenVR repository: `git clone https://github.com/ValveSoftware/openvr.git`\\r\\n210 | 2. Make the modifications described above\\r\\n211 | 3. Build the library following the standard build instructions\\r\\n212 | 4. Replace the existing OpenVR library with your modified version\\r\\n213 | \\r\\n214 | ## Using the Modified Library\\r\\n215 | \\r\\n216 | Once the modified library is in place, you can access the raw IMU data using the following code:\\r\\n217 | \\r\\n218 | ```cpp\\r\\n219 | #include <openvr.h>\\r\\n220 | \\r\\n221 | // Get the raw IMU data interface\\r\\n222 | vr::IVRRawIMUData* pRawIMUData = nullptr;\\r\\n223 | vr::EVRInitError error = vr::VRInitError_None;\\r\\n224 | pRawIMUData = (vr::IVRRawIMUData*)vr::VR_GetGenericInterface(vr::IVRRawIMUData_Version, &error);\\r\\n225 | \\r\\n226 | if (error != vr::VRInitError_None || !pRawIMUData)\\r\\n227 | {\\r\\n228 |     // Handle error\\r\\n229 |     return false;\\r\\n230 | }\\r\\n231 | \\r\\n232 | // Get the raw gyroscope data\\r\\n233 | float gyroX, gyroY, gyroZ;\\r\\n234 | if (pRawIMUData->GetRawGyroscopeData(&gyroX, &gyroY, &gyroZ))\\r\\n235 | {\\r\\n236 |     // Use the gyroscope data\\r\\n237 |     printf(\\\"Gyro: %f, %f, %f\\\\n\\\", gyroX, gyroY, gyroZ);\\r\\n238 | }\\r\\n239 | \\r\\n240 | // Get the raw accelerometer data\\r\\n241 | float accelX, accelY, accelZ;\\r\\n242 | if (pRawIMUData->GetRawAccelerometerData(&accelX, &accelY, &accelZ))\\r\\n243 | {\\r\\n244 |     // Use the accelerometer data\\r\\n245 |     printf(\\\"Accel: %f, %f, %f\\\\n\\\", accelX, accelY, accelZ);\\r\\n246 | }\\r\\n247 | \\r\\n248 | // Get a full IMU sample\\r\\n249 | vr::ImuSample_t sample;\\r\\n250 | if (pRawIMUData->GetIMUSample(&sample))\\r\\n251 | {\\r\\n252 |     // Use the IMU sample\\r\\n253 |     printf(\\\"IMU Sample: Time=%f, Gyro=(%f, %f, %f), Accel=(%f, %f, %f)\\\\n\\\",\\r\\n254 |         sample.fSampleTime,\\r\\n255 |         sample.vGyro.v[0], sample.vGyro.v[1], sample.vGyro.v[2],\\r\\n256 |         sample.vAccel.v[0], sample.vAccel.v[1], sample.vAccel.v[2]);\\r\\n257 | }\\r\\n258 | ```\\r\\n259 | \\r\\n260 | ## Alternative Approaches\\r\\n261 | \\r\\n262 | If modifying the OpenVR library is not feasible, consider these alternatives:\\r\\n263 | \\r\\n264 | ### 1. Use the IVRIOBuffer Interface\\r\\n265 | \\r\\n266 | The OpenVR API already includes an `IVRIOBuffer` interface that might be used to access raw IMU data. This would require knowledge of the specific buffer paths used by the driver to store IMU data.\\r\\n267 | \\r\\n268 | ```cpp\\r\\n269 | vr::IVRIOBuffer* pIOBuffer = vr::VRIOBuffer();\\r\\n270 | vr::IOBufferHandle_t imuBuffer = vr::k_ulInvalidIOBufferHandle;\\r\\n271 | vr::EIOBufferError error = pIOBuffer->Open(\\\"/dev/imu/hmd\\\", vr::IOBufferMode_Read, sizeof(vr::ImuSample_t), 1, &imuBuffer);\\r\\n272 | \\r\\n273 | if (error == vr::IOBufferError_None && imuBuffer != vr::k_ulInvalidIOBufferHandle)\\r\\n274 | {\\r\\n275 |     vr::ImuSample_t sample;\\r\\n276 |     uint32_t bytesRead = 0;\\r\\n277 |     error = pIOBuffer->Read(imuBuffer, &sample, sizeof(vr::ImuSample_t), &bytesRead);\\r\\n278 |     \\r\\n279 |     if (error == vr::IOBufferError_None && bytesRead == sizeof(vr::ImuSample_t))\\r\\n280 |     {\\r\\n281 |         // Use the IMU sample\\r\\n282 |         printf(\\\"IMU Sample: Time=%f, Gyro=(%f, %f, %f), Accel=(%f, %f, %f)\\\\n\\\",\\r\\n283 |             sample.fSampleTime,\\r\\n284 |             sample.vGyro.v[0], sample.vGyro.v[1], sample.vGyro.v[2],\\r\\n285 |             sample.vAccel.v[0], sample.vAccel.v[1], sample.vAccel.v[2]);\\r\\n286 |     }\\r\\n287 |     \\r\\n288 |     pIOBuffer->Close(imuBuffer);\\r\\n289 | }\\r\\n290 | ```\\r\\n291 | \\r\\n292 | ### 2. Create a Custom Driver\\r\\n293 | \\r\\n294 | Create a custom OpenVR driver that wraps the existing driver and exposes the IMU data through a custom interface.\\r\\n295 | \\r\\n296 | ### 3. Use a Different VR SDK\\r\\n297 | \\r\\n298 | Consider using a different VR SDK that provides direct access to IMU data, such as the Oculus SDK or the SteamVR Unity Plugin.\\r\\n299 | \\r\\n300 | ## Notes\\r\\n301 | \\r\\n302 | - The exact implementation details may vary depending on the specific driver you're using (HTC Vive, Oculus, etc.)\\r\\n303 | - You may need to study the driver code to understand how to access the raw IMU data\\r\\n304 | - Some drivers may already have internal access to raw IMU data, but don't expose it through the public API\\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:38:01 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n144,129 (72%)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n</environment_details>\\n\\n[TASK RESUMPTION] This task was interrupted just now. It may or may not be complete, so please reassess the task context. Be aware that the project state may have changed since then. The current working directory is now 'c:/Users/decid/Documents/projects/openvr-resilient'. If the task has not been completed, retry the last step before interruption and proceed with completing the task.\\n\\nNote: If you previously attempted a tool use that the user did not provide a result for, you should assume the tool use was not successful and assess whether you should retry. If the last tool was a browser_action, the browser has been closed and you must launch a new browser if needed.\\n\\nNew instructions for task continuation:\\n<user_message>\\nyou already read this file earlier. it hasn't changed since then.\\n</user_message>\\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:43:08 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n144,129 (72%)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n\\n\\n# Current Working Directory (c:/Users/decid/Documents/projects/openvr-resilient) Files\\n.gitattributes\\nCMakeLists.txt\\nLICENSE\\nOpenVR_Modifications.md\\nREADME.md\\nToolchain-clang.cmake\\nbin/\\nbin/androidarm64/\\nbin/androidarm64/libopenvr_api.so\\nbin/linux32/\\nbin/linux32/empty.dir\\nbin/linux32/libopenvr_api.so\\nbin/linux32/libopenvr_api.so.dbg\\nbin/linux64/\\nbin/linux64/empty.dir\\nbin/linux64/libopenvr_api.so\\nbin/linux64/libopenvr_api.so.dbg\\nbin/linuxarm64/\\nbin/linuxarm64/libopenvr_api_unity.so\\nbin/linuxarm64/libopenvr_api_unity.so.dbg\\nbin/linuxarm64/libopenvr_api.so\\nbin/linuxarm64/libopenvr_api.so.dbg\\nbin/osx32/\\nbin/osx32/libopenvr_api.dylib\\nbin/osx32/libopenvr_api.dylib.dSYM/\\nbin/osx32/libopenvr_api.dylib.dSYM/Contents/\\nbin/win32/\\nbin/win32/openvr_api.dll\\nbin/win32/openvr_api.dll.sig\\nbin/win32/openvr_api.pdb\\nbin/win64/\\nbin/win64/openvr_api.dll\\nbin/win64/openvr_api.dll.sig\\nbin/win64/openvr_api.pdb\\ncodegen/\\ncodegen/api_shared.py\\ncodegen/openvr_capi.cpp.py\\ncodegen/openvr_capi.h.py\\ncodegen/openvr_interop.cs.py\\ncodegen/README.md\\ncontroller_callouts/\\ncontroller_callouts/Callouts.eps\\ncontroller_callouts/Callouts.pdf\\ndocs/\\ndocs/Driver_API_Documentation.md\\nheaders/\\nheaders/openvr_api.cs\\nheaders/openvr_api.json\\nheaders/openvr_capi.h\\nheaders/openvr_driver.h\\nheaders/openvr.h\\nlib/\\nlib/androidarm64/\\nlib/androidarm64/libopenvr_api.so\\nlib/linux32/\\nlib/linux32/libopenvr_api.so\\nlib/linux64/\\nlib/linux64/libopenvr_api.so\\nlib/linuxarm64/\\nlib/linuxarm64/libopenvr_api_unity.so\\nlib/linuxarm64/libopenvr_api.so\\nlib/osx32/\\nlib/osx32/libopenvr_api.dylib\\nlib/win32/\\nlib/win32/openvr_api.lib\\nlib/win64/\\nlib/win64/openvr_api.lib\\nsamples/\\nsamples/CMakeLists.txt\\nsamples/README.md\\nsamples/samples_vs2017.sln\\nsamples/bin/\\nsamples/bin/cube_texture.png\\nsamples/bin/hellovr_actions.json\\nsamples/bin/hellovr_bindings_generic.json\\nsamples/bin/hellovr_bindings_vive_controller.json\\nsamples/bin/androidarm64/\\nsamples/bin/androidarm64/libopenvr_api.so\\nsamples/bin/drivers/\\nsamples/bin/drivers/sample/\\nsamples/bin/hmd_opencv_sandbox_resources/\\nsamples/bin/hmd_opencv_sandbox_resources/charlesfloor.frag\\nsamples/bin/hmd_opencv_sandbox_resources/charlesfloor.vert\\nsamples/bin/hmd_opencv_sandbox_resources/codepage437.pgm\\nsamples/bin/hmd_opencv_sandbox_resources/codepage437.png\\nsamples/bin/hmd_opencv_sandbox_resources/companion.frag\\nsamples/bin/hmd_opencv_sandbox_resources/companion.vert\\nsamples/bin/hmd_opencv_sandbox_resources/dumb.frag\\nsamples/bin/hmd_opencv_sandbox_resources/dumb.vert\\nsamples/bin/hmd_opencv_sandbox_resources/hmd_opencv_sandbox_actions.json\\nsamples/bin/linux32/\\nsamples/bin/linux64/\\nsamples/bin/linuxarm64/\\nsamples/bin/shaders/\\nsamples/bin/win32/\\nsamples/bin/win64/\\nsamples/drivers/\\nsamples/drivers/CMakeLists.txt\\nsamples/drivers/README.md\\nsamples/drivers/vs-openvr_samples.sln\\nsamples/drivers/drivers/\\nsamples/drivers/utils/\\nsamples/hellovr_dx12/\\nsamples/hellovr_dx12/d3dx12.h\\nsamples/hellovr_dx12/hellovr_dx12_main.cpp\\nsamples/hellovr_dx12/hellovr_dx12.vcxproj\\nsamples/hellovr_dx12/hellovr_dx12.vcxproj.filters\\nsamples/hellovr_opengl/\\nsamples/hellovr_opengl/CMakeLists.txt\\nsamples/hellovr_opengl/hellovr_opengl_main.cpp\\nsamples/hellovr_opengl/hellovr_opengl.vcxproj\\nsamples/hellovr_opengl/hellovr_opengl.vcxproj.filters\\nsamples/hellovr_vulkan/\\nsamples/hellovr_vulkan/CMakeLists.txt\\nsamples/hellovr_vulkan/hellovr_vulkan_main.cpp\\nsamples/helloworldoverlay/\\nsamples/helloworldoverlay/CMakeLists.txt\\nsamples/helloworldoverlay/helloworldoverlay.pro\\nsamples/helloworldoverlay/main.cpp\\nsamples/helloworldoverlay/openvroverlaycontroller.cpp\\nsamples/helloworldoverlay/openvroverlaycontroller.h\\nsamples/helloworldoverlay/overlaywidget.cpp\\nsamples/helloworldoverlay/overlaywidget.h\\nsamples/helloworldoverlay/overlaywidget.ui\\nsamples/hmd_opencv_sandbox/\\nsamples/hmd_opencv_sandbox/camera_app.cpp\\nsamples/hmd_opencv_sandbox/camera_app.h\\nsamples/hmd_opencv_sandbox/chew.c\\nsamples/hmd_opencv_sandbox/chew.h\\nsamples/hmd_opencv_sandbox/chewtypes.h\\nsamples/hmd_opencv_sandbox/common_hello.cpp\\nsamples/hmd_opencv_sandbox/common_hello.h\\nsamples/hmd_opencv_sandbox/geometry_object.cpp\\nsamples/hmd_opencv_sandbox/geometry_object.h\\nsamples/hmd_opencv_sandbox/hmd_opencv_sandbox.cpp\\nsamples/hmd_opencv_sandbox/hmd_opencv_sandbox.h\\nsamples/hmd_opencv_sandbox/opencv_process.cpp\\nsamples/hmd_opencv_sandbox/opencv_process.h\\nsamples/hmd_opencv_sandbox/os_generic.h\\nsamples/hmd_opencv_sandbox/shader_file.cpp\\nsamples/hmd_opencv_sandbox/shader_file.h\\nsamples/hmd_opencv_sandbox/stb_image_write.h\\nsamples/hmd_opencv_sandbox/stb_image.h\\nsamples/hmd_opencv_sandbox/vlinterm.c\\nsamples/hmd_opencv_sandbox/vlinterm.h\\nsamples/hmd_opencv_sandbox/vrterminal.cpp\\nsamples/hmd_opencv_sandbox/vrterminal.h\\nsamples/shared/\\nsamples/shared/compat.h\\nsamples/shared/lodepng.cpp\\nsamples/shared/lodepng.h\\nsamples/shared/Matrices.cpp\\nsamples/shared/Matrices.h\\nsamples/shared/pathtools.cpp\\nsamples/shared/pathtools.h\\nsamples/shared/strtools.cpp\\nsamples/shared/strtools.h\\nsamples/shared/Vectors.h\\nsamples/thirdparty/\\nsamples/thirdparty/glew/\\nsamples/thirdparty/sdl2-2.0.3/\\nsamples/thirdparty/vulkan-1.0.49.0/\\nsamples/tracked_camera_openvr_sample/\\nsamples/tracked_camera_openvr_sample/CMakeLists.txt\\nsamples/tracked_camera_openvr_sample/main.cpp\\nsamples/tracked_camera_openvr_sample/tracked_camera_openvr_sample.cpp\\nsamples/tracked_camera_openvr_sample/tracked_camera_openvr_sample.h\\nsamples/tracked_camera_openvr_sample/tracked_camera_openvr_sample.pro\\nsamples/unity_keyboard_sample/\\nsamples/unity_keyboard_sample/Assets/\\nsamples/unity_keyboard_sample/ProjectSettings/\\nsamples/unity_teleport_sample/\\nsamples/unity_teleport_sample/Assets/\\nsamples/unity_teleport_sample/ProjectSettings/\\nsrc/\\nsrc/CMakeLists.txt\\nsrc/Info.plist\\nsrc/ivrclientcore.h\\nsrc/jsoncpp.cpp\\nsrc/openvr_api_public.cpp\\nsrc/openvr.pc.in\\nsrc/README\\nsrc/json/\\nsrc/json/json-forwards.h\\nsrc/json/json.h\\nsrc/vrcore/\\nsrc/vrcore/dirtools_public.cpp\\nsrc/vrcore/dirtools_public.h\\nsrc/vrcore/envvartools_public.cpp\\nsrc/vrcore/envvartools_public.h\\nsrc/vrcore/hmderrors_public.cpp\\nsrc/vrcore/hmderrors_public.h\\nsrc/vrcore/pathtools_public.cpp\\nsrc/vrcore/pathtools_public.h\\nsrc/vrcore/sharedlibtools_public.cpp\\nsrc/vrcore/sharedlibtools_public.h\\nsrc/vrcore/strtools_public.cpp\\nsrc/vrcore/strtools_public.h\\nsrc/vrcore/vrpathregistry_public.cpp\\nsrc/vrcore/vrpathregistry_public.h\\n\\n(File list truncated. Use list_files on specific subdirectories if you need to explore further.)\\n</environment_details>\",\"tokensIn\":0,\"tokensOut\":383,\"cacheWrites\":151525,\"cacheReads\":0,\"cost\":0.57396375}"},{"ts":1741002208217,"type":"say","say":"text","text":"Based on the OpenVR_Modifications.md file, I need to implement the following changes:\n\n1. Add a new interface for IMU data access in headers/openvr.h\n2. Implement the interface in an appropriate file (the document mentions vrcore_impl.cpp, but that file doesn't seem to exist in the repository)\n3. Expose the interface through the OpenVR API\n4. Add the interface member to the appropriate class\n\nSince vrcore_impl.cpp and vrcore_impl.h don't exist, I need to find the appropriate files to make these changes. The main implementation file seems to be src/openvr_api_public.cpp, which I've already examined.\n\nLet me check if there are any other implementation files in the src directory that might be more appropriate for implementing the new interface.\n\nI'll continue with implementing the modifications for raw IMU data access. Since the files mentioned in the OpenVR_Modifications.md (vrcore_impl.cpp and vrcore_impl.h) don't exist in the repository, I need to find the appropriate files to make these changes.\n\nLet's first check if there are any implementation files in the src directory that might be suitable:","partial":false},{"ts":1741002213113,"type":"ask","ask":"tool","text":"{\"tool\":\"listFilesTopLevel\",\"path\":\"src\",\"content\":\"CMakeLists.txt\\nInfo.plist\\nivrclientcore.h\\njsoncpp.cpp\\nopenvr_api_public.cpp\\nopenvr.pc.in\\nREADME\\njson/\\nvrcore/\"}","partial":false},{"ts":1741002312570,"type":"say","say":"api_req_started","text":"{\"request\":\"[list_files for 'src'] Result:\\n\\nCMakeLists.txt\\nInfo.plist\\nivrclientcore.h\\njsoncpp.cpp\\nopenvr_api_public.cpp\\nopenvr.pc.in\\nREADME\\njson/\\nvrcore/\\n\\n<environment_details>\\n# VSCode Visible Files\\nOpenVR_Modifications.md\\n\\n# VSCode Open Tabs\\nREADME.md\\nOpenVR_Modifications.md\\nheaders/openvr.h\\nheaders/openvr_driver.h\\n\\n# Current Time\\n3/3/2025, 3:45:12 AM (America/Los_Angeles, UTC-8:00)\\n\\n# Current Context Size (Tokens)\\n151,908 (76%)\\n\\n# Current Mode\\n<slug>code</slug>\\n<name>Code</name>\\n</environment_details>\"}"},{"ts":1741002315469,"type":"ask","ask":"api_req_failed","text":"429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (c798c237-8869-4d4f-a50e-54a864da0eac) of 20,000 input tokens per minute. For details, refer to: https://docs.anthropic.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"}}"},{"ts":1741002480827,"type":"say","say":"api_req_retried"},{"ts":1741002483780,"type":"ask","ask":"api_req_failed","text":"429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (c798c237-8869-4d4f-a50e-54a864da0eac) of 20,000 input tokens per minute. For details, refer to: https://docs.anthropic.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"}}"}]