1 #if !XB1 // XB1_NOOPENVRWRAPPER
21 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetRecommendedRenderTargetSize")]
22 internal static extern void VR_IVRSystem_GetRecommendedRenderTargetSize(IntPtr instancePtr, ref uint pnWidth, ref uint pnHeight);
23 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetProjectionMatrix")]
25 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetProjectionRaw")]
26 internal static extern void VR_IVRSystem_GetProjectionRaw(IntPtr instancePtr,
EVREye eEye, ref
float pfLeft, ref
float pfRight, ref
float pfTop, ref
float pfBottom);
27 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_ComputeDistortion")]
29 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetEyeToHeadTransform")]
30 internal static extern HmdMatrix34_t VR_IVRSystem_GetEyeToHeadTransform(IntPtr instancePtr,
EVREye eEye);
31 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetTimeSinceLastVsync")]
32 internal static extern bool VR_IVRSystem_GetTimeSinceLastVsync(IntPtr instancePtr, ref
float pfSecondsSinceLastVsync, ref ulong pulFrameCounter);
33 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetD3D9AdapterIndex")]
34 internal static extern int VR_IVRSystem_GetD3D9AdapterIndex(IntPtr instancePtr);
35 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetDXGIOutputInfo")]
36 internal static extern void VR_IVRSystem_GetDXGIOutputInfo(IntPtr instancePtr, ref
int pnAdapterIndex);
37 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_IsDisplayOnDesktop")]
38 internal static extern bool VR_IVRSystem_IsDisplayOnDesktop(IntPtr instancePtr);
39 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_SetDisplayVisibility")]
40 internal static extern bool VR_IVRSystem_SetDisplayVisibility(IntPtr instancePtr,
bool bIsVisibleOnDesktop);
41 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetDeviceToAbsoluteTrackingPose")]
42 internal static extern void VR_IVRSystem_GetDeviceToAbsoluteTrackingPose(IntPtr instancePtr,
ETrackingUniverseOrigin eOrigin,
float fPredictedSecondsToPhotonsFromNow, [In, Out]
TrackedDevicePose_t[] pTrackedDevicePoseArray, uint unTrackedDevicePoseArrayCount);
43 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_ResetSeatedZeroPose")]
44 internal static extern void VR_IVRSystem_ResetSeatedZeroPose(IntPtr instancePtr);
45 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetSeatedZeroPoseToStandingAbsoluteTrackingPose")]
46 internal static extern HmdMatrix34_t VR_IVRSystem_GetSeatedZeroPoseToStandingAbsoluteTrackingPose(IntPtr instancePtr);
47 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetRawZeroPoseToStandingAbsoluteTrackingPose")]
48 internal static extern HmdMatrix34_t VR_IVRSystem_GetRawZeroPoseToStandingAbsoluteTrackingPose(IntPtr instancePtr);
49 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetSortedTrackedDeviceIndicesOfClass")]
50 internal static extern uint VR_IVRSystem_GetSortedTrackedDeviceIndicesOfClass(IntPtr instancePtr,
ETrackedDeviceClass eTrackedDeviceClass, [In, Out] uint[] punTrackedDeviceIndexArray, uint unTrackedDeviceIndexArrayCount, uint unRelativeToTrackedDeviceIndex);
51 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetTrackedDeviceActivityLevel")]
52 internal static extern EDeviceActivityLevel VR_IVRSystem_GetTrackedDeviceActivityLevel(IntPtr instancePtr, uint unDeviceId);
53 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_ApplyTransform")]
55 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetTrackedDeviceIndexForControllerRole")]
56 internal static extern uint VR_IVRSystem_GetTrackedDeviceIndexForControllerRole(IntPtr instancePtr,
ETrackedControllerRole unDeviceType);
57 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetControllerRoleForTrackedDeviceIndex")]
58 internal static extern ETrackedControllerRole VR_IVRSystem_GetControllerRoleForTrackedDeviceIndex(IntPtr instancePtr, uint unDeviceIndex);
59 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetTrackedDeviceClass")]
60 internal static extern ETrackedDeviceClass VR_IVRSystem_GetTrackedDeviceClass(IntPtr instancePtr, uint unDeviceIndex);
61 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_IsTrackedDeviceConnected")]
62 internal static extern bool VR_IVRSystem_IsTrackedDeviceConnected(IntPtr instancePtr, uint unDeviceIndex);
63 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetBoolTrackedDeviceProperty")]
65 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetFloatTrackedDeviceProperty")]
67 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetInt32TrackedDeviceProperty")]
69 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetUint64TrackedDeviceProperty")]
71 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetMatrix34TrackedDeviceProperty")]
73 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetStringTrackedDeviceProperty")]
75 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetPropErrorNameFromEnum")]
76 internal static extern IntPtr VR_IVRSystem_GetPropErrorNameFromEnum(IntPtr instancePtr,
ETrackedPropertyError error);
77 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_PollNextEvent")]
78 internal static extern bool VR_IVRSystem_PollNextEvent(IntPtr instancePtr, ref
VREvent_t pEvent, uint uncbVREvent);
79 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_PollNextEventWithPose")]
81 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetEventTypeNameFromEnum")]
82 internal static extern IntPtr VR_IVRSystem_GetEventTypeNameFromEnum(IntPtr instancePtr,
EVREventType eType);
83 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetHiddenAreaMesh")]
85 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetControllerState")]
86 internal static extern bool VR_IVRSystem_GetControllerState(IntPtr instancePtr, uint unControllerDeviceIndex, ref
VRControllerState_t pControllerState);
87 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetControllerStateWithPose")]
89 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_TriggerHapticPulse")]
90 internal static extern void VR_IVRSystem_TriggerHapticPulse(IntPtr instancePtr, uint unControllerDeviceIndex, uint unAxisId,
char usDurationMicroSec);
91 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetButtonIdNameFromEnum")]
92 internal static extern IntPtr VR_IVRSystem_GetButtonIdNameFromEnum(IntPtr instancePtr,
EVRButtonId eButtonId);
93 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_GetControllerAxisTypeNameFromEnum")]
94 internal static extern IntPtr VR_IVRSystem_GetControllerAxisTypeNameFromEnum(IntPtr instancePtr,
EVRControllerAxisType eAxisType);
95 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_CaptureInputFocus")]
96 internal static extern bool VR_IVRSystem_CaptureInputFocus(IntPtr instancePtr);
97 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_ReleaseInputFocus")]
98 internal static extern void VR_IVRSystem_ReleaseInputFocus(IntPtr instancePtr);
99 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_IsInputFocusCapturedByAnotherProcess")]
100 internal static extern bool VR_IVRSystem_IsInputFocusCapturedByAnotherProcess(IntPtr instancePtr);
101 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_DriverDebugRequest")]
102 internal static extern uint VR_IVRSystem_DriverDebugRequest(IntPtr instancePtr, uint unDeviceIndex,
string pchRequest,
string pchResponseBuffer, uint unResponseBufferSize);
103 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_PerformFirmwareUpdate")]
104 internal static extern EVRFirmwareError VR_IVRSystem_PerformFirmwareUpdate(IntPtr instancePtr, uint unDeviceIndex);
105 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_AcknowledgeQuit_Exiting")]
106 internal static extern void VR_IVRSystem_AcknowledgeQuit_Exiting(IntPtr instancePtr);
107 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_AcknowledgeQuit_UserPrompt")]
108 internal static extern void VR_IVRSystem_AcknowledgeQuit_UserPrompt(IntPtr instancePtr);
109 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_PerformanceTestEnableCapture")]
110 internal static extern void VR_IVRSystem_PerformanceTestEnableCapture(IntPtr instancePtr,
bool bEnable);
111 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSystem_PerformanceTestReportFidelityLevelChange")]
112 internal static extern void VR_IVRSystem_PerformanceTestReportFidelityLevelChange(IntPtr instancePtr,
int nFidelityLevel);
113 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRExtendedDisplay_GetWindowBounds")]
114 internal static extern void VR_IVRExtendedDisplay_GetWindowBounds(IntPtr instancePtr, ref
int pnX, ref
int pnY, ref uint pnWidth, ref uint pnHeight);
115 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRExtendedDisplay_GetEyeOutputViewport")]
116 internal static extern void VR_IVRExtendedDisplay_GetEyeOutputViewport(IntPtr instancePtr,
EVREye eEye, ref uint pnX, ref uint pnY, ref uint pnWidth, ref uint pnHeight);
117 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRExtendedDisplay_GetDXGIOutputInfo")]
118 internal static extern void VR_IVRExtendedDisplay_GetDXGIOutputInfo(IntPtr instancePtr, ref
int pnAdapterIndex, ref
int pnAdapterOutputIndex);
119 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_AddApplicationManifest")]
120 internal static extern EVRApplicationError VR_IVRApplications_AddApplicationManifest(IntPtr instancePtr,
string pchApplicationManifestFullPath,
bool bTemporary);
121 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_RemoveApplicationManifest")]
122 internal static extern EVRApplicationError VR_IVRApplications_RemoveApplicationManifest(IntPtr instancePtr,
string pchApplicationManifestFullPath);
123 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_IsApplicationInstalled")]
124 internal static extern bool VR_IVRApplications_IsApplicationInstalled(IntPtr instancePtr,
string pchAppKey);
125 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationCount")]
126 internal static extern uint VR_IVRApplications_GetApplicationCount(IntPtr instancePtr);
127 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationKeyByIndex")]
128 internal static extern EVRApplicationError VR_IVRApplications_GetApplicationKeyByIndex(IntPtr instancePtr, uint unApplicationIndex,
string pchAppKeyBuffer, uint unAppKeyBufferLen);
129 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationKeyByProcessId")]
130 internal static extern EVRApplicationError VR_IVRApplications_GetApplicationKeyByProcessId(IntPtr instancePtr, uint unProcessId,
string pchAppKeyBuffer, uint unAppKeyBufferLen);
131 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_LaunchApplication")]
132 internal static extern EVRApplicationError VR_IVRApplications_LaunchApplication(IntPtr instancePtr,
string pchAppKey);
133 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_LaunchDashboardOverlay")]
134 internal static extern EVRApplicationError VR_IVRApplications_LaunchDashboardOverlay(IntPtr instancePtr,
string pchAppKey);
135 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_IdentifyApplication")]
136 internal static extern EVRApplicationError VR_IVRApplications_IdentifyApplication(IntPtr instancePtr, uint unProcessId,
string pchAppKey);
137 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationProcessId")]
138 internal static extern uint VR_IVRApplications_GetApplicationProcessId(IntPtr instancePtr,
string pchAppKey);
139 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationsErrorNameFromEnum")]
140 internal static extern IntPtr VR_IVRApplications_GetApplicationsErrorNameFromEnum(IntPtr instancePtr,
EVRApplicationError error);
141 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationPropertyString")]
142 internal static extern uint VR_IVRApplications_GetApplicationPropertyString(IntPtr instancePtr,
string pchAppKey,
EVRApplicationProperty eProperty,
string pchPropertyValueBuffer, uint unPropertyValueBufferLen, ref
EVRApplicationError peError);
143 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationPropertyBool")]
145 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationPropertyUint64")]
147 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_SetApplicationAutoLaunch")]
148 internal static extern EVRApplicationError VR_IVRApplications_SetApplicationAutoLaunch(IntPtr instancePtr,
string pchAppKey,
bool bAutoLaunch);
149 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationAutoLaunch")]
150 internal static extern bool VR_IVRApplications_GetApplicationAutoLaunch(IntPtr instancePtr,
string pchAppKey);
151 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetStartingApplication")]
152 internal static extern EVRApplicationError VR_IVRApplications_GetStartingApplication(IntPtr instancePtr,
string pchAppKeyBuffer, uint unAppKeyBufferLen);
153 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetTransitionState")]
155 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_PerformApplicationPrelaunchCheck")]
156 internal static extern EVRApplicationError VR_IVRApplications_PerformApplicationPrelaunchCheck(IntPtr instancePtr,
string pchAppKey);
157 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_GetApplicationsTransitionStateNameFromEnum")]
158 internal static extern IntPtr VR_IVRApplications_GetApplicationsTransitionStateNameFromEnum(IntPtr instancePtr,
EVRApplicationTransitionState state);
159 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRApplications_IsQuitUserPromptRequested")]
160 internal static extern bool VR_IVRApplications_IsQuitUserPromptRequested(IntPtr instancePtr);
161 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperone_GetCalibrationState")]
163 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperone_GetPlayAreaSize")]
164 internal static extern bool VR_IVRChaperone_GetPlayAreaSize(IntPtr instancePtr, ref
float pSizeX, ref
float pSizeZ);
165 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperone_GetPlayAreaRect")]
166 internal static extern bool VR_IVRChaperone_GetPlayAreaRect(IntPtr instancePtr, ref
HmdQuad_t rect);
167 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperone_ReloadInfo")]
168 internal static extern void VR_IVRChaperone_ReloadInfo(IntPtr instancePtr);
169 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperone_SetSceneColor")]
170 internal static extern void VR_IVRChaperone_SetSceneColor(IntPtr instancePtr,
HmdColor_t color);
171 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperone_GetBoundsColor")]
172 internal static extern void VR_IVRChaperone_GetBoundsColor(IntPtr instancePtr, ref
HmdColor_t pOutputColorArray,
int nNumOutputColors,
float flCollisionBoundsFadeDistance, ref
HmdColor_t pOutputCameraColor);
173 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperone_AreBoundsVisible")]
174 internal static extern bool VR_IVRChaperone_AreBoundsVisible(IntPtr instancePtr);
175 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperone_ForceBoundsVisible")]
176 internal static extern void VR_IVRChaperone_ForceBoundsVisible(IntPtr instancePtr,
bool bForce);
177 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_CommitWorkingCopy")]
178 internal static extern bool VR_IVRChaperoneSetup_CommitWorkingCopy(IntPtr instancePtr,
EChaperoneConfigFile configFile);
179 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_RevertWorkingCopy")]
180 internal static extern void VR_IVRChaperoneSetup_RevertWorkingCopy(IntPtr instancePtr);
181 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_GetWorkingPlayAreaSize")]
182 internal static extern bool VR_IVRChaperoneSetup_GetWorkingPlayAreaSize(IntPtr instancePtr, ref
float pSizeX, ref
float pSizeZ);
183 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_GetWorkingPlayAreaRect")]
184 internal static extern bool VR_IVRChaperoneSetup_GetWorkingPlayAreaRect(IntPtr instancePtr, ref
HmdQuad_t rect);
185 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_GetWorkingCollisionBoundsInfo")]
186 internal static extern bool VR_IVRChaperoneSetup_GetWorkingCollisionBoundsInfo(IntPtr instancePtr, [In, Out]
HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount);
187 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_GetLiveCollisionBoundsInfo")]
188 internal static extern bool VR_IVRChaperoneSetup_GetLiveCollisionBoundsInfo(IntPtr instancePtr, [In, Out]
HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount);
189 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_GetWorkingSeatedZeroPoseToRawTrackingPose")]
190 internal static extern bool VR_IVRChaperoneSetup_GetWorkingSeatedZeroPoseToRawTrackingPose(IntPtr instancePtr, ref
HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose);
191 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_GetWorkingStandingZeroPoseToRawTrackingPose")]
192 internal static extern bool VR_IVRChaperoneSetup_GetWorkingStandingZeroPoseToRawTrackingPose(IntPtr instancePtr, ref
HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose);
193 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_SetWorkingPlayAreaSize")]
194 internal static extern void VR_IVRChaperoneSetup_SetWorkingPlayAreaSize(IntPtr instancePtr,
float sizeX,
float sizeZ);
195 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_SetWorkingCollisionBoundsInfo")]
196 internal static extern void VR_IVRChaperoneSetup_SetWorkingCollisionBoundsInfo(IntPtr instancePtr, [In, Out]
HmdQuad_t[] pQuadsBuffer, uint unQuadsCount);
197 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_SetWorkingSeatedZeroPoseToRawTrackingPose")]
198 internal static extern void VR_IVRChaperoneSetup_SetWorkingSeatedZeroPoseToRawTrackingPose(IntPtr instancePtr, ref
HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose);
199 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_SetWorkingStandingZeroPoseToRawTrackingPose")]
200 internal static extern void VR_IVRChaperoneSetup_SetWorkingStandingZeroPoseToRawTrackingPose(IntPtr instancePtr, ref
HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose);
201 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_ReloadFromDisk")]
202 internal static extern void VR_IVRChaperoneSetup_ReloadFromDisk(IntPtr instancePtr,
EChaperoneConfigFile configFile);
203 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose")]
204 internal static extern bool VR_IVRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose(IntPtr instancePtr, ref
HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose);
205 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_SetWorkingCollisionBoundsTagsInfo")]
206 internal static extern void VR_IVRChaperoneSetup_SetWorkingCollisionBoundsTagsInfo(IntPtr instancePtr, [In, Out] byte[] pTagsBuffer, uint unTagCount);
207 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_GetLiveCollisionBoundsTagsInfo")]
208 internal static extern bool VR_IVRChaperoneSetup_GetLiveCollisionBoundsTagsInfo(IntPtr instancePtr, [In, Out] byte[] pTagsBuffer, ref uint punTagCount);
209 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_SetWorkingPhysicalBoundsInfo")]
210 internal static extern bool VR_IVRChaperoneSetup_SetWorkingPhysicalBoundsInfo(IntPtr instancePtr, [In, Out]
HmdQuad_t[] pQuadsBuffer, uint unQuadsCount);
211 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRChaperoneSetup_GetLivePhysicalBoundsInfo")]
212 internal static extern bool VR_IVRChaperoneSetup_GetLivePhysicalBoundsInfo(IntPtr instancePtr, [In, Out]
HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount);
213 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_SetTrackingSpace")]
214 internal static extern void VR_IVRCompositor_SetTrackingSpace(IntPtr instancePtr,
ETrackingUniverseOrigin eOrigin);
215 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_GetTrackingSpace")]
217 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_WaitGetPoses")]
219 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_GetLastPoses")]
221 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_Submit")]
223 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_ClearLastSubmittedFrame")]
224 internal static extern void VR_IVRCompositor_ClearLastSubmittedFrame(IntPtr instancePtr);
225 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_PostPresentHandoff")]
226 internal static extern void VR_IVRCompositor_PostPresentHandoff(IntPtr instancePtr);
227 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_GetFrameTiming")]
228 internal static extern bool VR_IVRCompositor_GetFrameTiming(IntPtr instancePtr, ref
Compositor_FrameTiming pTiming, uint unFramesAgo);
229 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_GetFrameTimeRemaining")]
230 internal static extern float VR_IVRCompositor_GetFrameTimeRemaining(IntPtr instancePtr);
231 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_FadeToColor")]
232 internal static extern void VR_IVRCompositor_FadeToColor(IntPtr instancePtr,
float fSeconds,
float fRed,
float fGreen,
float fBlue,
float fAlpha,
bool bBackground);
233 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_FadeGrid")]
234 internal static extern void VR_IVRCompositor_FadeGrid(IntPtr instancePtr,
float fSeconds,
bool bFadeIn);
235 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_SetSkyboxOverride")]
236 internal static extern EVRCompositorError VR_IVRCompositor_SetSkyboxOverride(IntPtr instancePtr, [In, Out]
Texture_t[] pTextures, uint unTextureCount);
237 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_ClearSkyboxOverride")]
238 internal static extern void VR_IVRCompositor_ClearSkyboxOverride(IntPtr instancePtr);
239 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_CompositorBringToFront")]
240 internal static extern void VR_IVRCompositor_CompositorBringToFront(IntPtr instancePtr);
241 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_CompositorGoToBack")]
242 internal static extern void VR_IVRCompositor_CompositorGoToBack(IntPtr instancePtr);
243 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_CompositorQuit")]
244 internal static extern void VR_IVRCompositor_CompositorQuit(IntPtr instancePtr);
245 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_IsFullscreen")]
246 internal static extern bool VR_IVRCompositor_IsFullscreen(IntPtr instancePtr);
247 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_GetCurrentSceneFocusProcess")]
248 internal static extern uint VR_IVRCompositor_GetCurrentSceneFocusProcess(IntPtr instancePtr);
249 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_GetLastFrameRenderer")]
250 internal static extern uint VR_IVRCompositor_GetLastFrameRenderer(IntPtr instancePtr);
251 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_CanRenderScene")]
252 internal static extern bool VR_IVRCompositor_CanRenderScene(IntPtr instancePtr);
253 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_ShowMirrorWindow")]
254 internal static extern void VR_IVRCompositor_ShowMirrorWindow(IntPtr instancePtr);
255 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_HideMirrorWindow")]
256 internal static extern void VR_IVRCompositor_HideMirrorWindow(IntPtr instancePtr);
257 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_IsMirrorWindowVisible")]
258 internal static extern bool VR_IVRCompositor_IsMirrorWindowVisible(IntPtr instancePtr);
259 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRCompositor_CompositorDumpImages")]
260 internal static extern void VR_IVRCompositor_CompositorDumpImages(IntPtr instancePtr);
261 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_FindOverlay")]
262 internal static extern EVROverlayError VR_IVROverlay_FindOverlay(IntPtr instancePtr,
string pchOverlayKey, ref ulong pOverlayHandle);
263 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_CreateOverlay")]
264 internal static extern EVROverlayError VR_IVROverlay_CreateOverlay(IntPtr instancePtr,
string pchOverlayKey,
string pchOverlayFriendlyName, ref ulong pOverlayHandle);
265 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_DestroyOverlay")]
266 internal static extern EVROverlayError VR_IVROverlay_DestroyOverlay(IntPtr instancePtr, ulong ulOverlayHandle);
267 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetHighQualityOverlay")]
268 internal static extern EVROverlayError VR_IVROverlay_SetHighQualityOverlay(IntPtr instancePtr, ulong ulOverlayHandle);
269 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetHighQualityOverlay")]
270 internal static extern ulong VR_IVROverlay_GetHighQualityOverlay(IntPtr instancePtr);
271 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayKey")]
272 internal static extern uint VR_IVROverlay_GetOverlayKey(IntPtr instancePtr, ulong ulOverlayHandle,
System.
Text.StringBuilder pchValue, uint unBufferSize, ref
EVROverlayError pError);
273 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayName")]
274 internal static extern uint VR_IVROverlay_GetOverlayName(IntPtr instancePtr, ulong ulOverlayHandle,
System.
Text.StringBuilder pchValue, uint unBufferSize, ref
EVROverlayError pError);
275 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayImageData")]
276 internal static extern EVROverlayError VR_IVROverlay_GetOverlayImageData(IntPtr instancePtr, ulong ulOverlayHandle, IntPtr pvBuffer, uint unBufferSize, ref uint punWidth, ref uint punHeight);
277 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayErrorNameFromEnum")]
278 internal static extern IntPtr VR_IVROverlay_GetOverlayErrorNameFromEnum(IntPtr instancePtr,
EVROverlayError error);
279 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayFlag")]
280 internal static extern EVROverlayError VR_IVROverlay_SetOverlayFlag(IntPtr instancePtr, ulong ulOverlayHandle,
VROverlayFlags eOverlayFlag,
bool bEnabled);
281 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayFlag")]
282 internal static extern EVROverlayError VR_IVROverlay_GetOverlayFlag(IntPtr instancePtr, ulong ulOverlayHandle,
VROverlayFlags eOverlayFlag, ref
bool pbEnabled);
283 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayColor")]
284 internal static extern EVROverlayError VR_IVROverlay_SetOverlayColor(IntPtr instancePtr, ulong ulOverlayHandle,
float fRed,
float fGreen,
float fBlue);
285 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayColor")]
286 internal static extern EVROverlayError VR_IVROverlay_GetOverlayColor(IntPtr instancePtr, ulong ulOverlayHandle, ref
float pfRed, ref
float pfGreen, ref
float pfBlue);
287 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayAlpha")]
288 internal static extern EVROverlayError VR_IVROverlay_SetOverlayAlpha(IntPtr instancePtr, ulong ulOverlayHandle,
float fAlpha);
289 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayAlpha")]
290 internal static extern EVROverlayError VR_IVROverlay_GetOverlayAlpha(IntPtr instancePtr, ulong ulOverlayHandle, ref
float pfAlpha);
291 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayWidthInMeters")]
292 internal static extern EVROverlayError VR_IVROverlay_SetOverlayWidthInMeters(IntPtr instancePtr, ulong ulOverlayHandle,
float fWidthInMeters);
293 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayWidthInMeters")]
294 internal static extern EVROverlayError VR_IVROverlay_GetOverlayWidthInMeters(IntPtr instancePtr, ulong ulOverlayHandle, ref
float pfWidthInMeters);
295 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayAutoCurveDistanceRangeInMeters")]
296 internal static extern EVROverlayError VR_IVROverlay_SetOverlayAutoCurveDistanceRangeInMeters(IntPtr instancePtr, ulong ulOverlayHandle,
float fMinDistanceInMeters,
float fMaxDistanceInMeters);
297 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayAutoCurveDistanceRangeInMeters")]
298 internal static extern EVROverlayError VR_IVROverlay_GetOverlayAutoCurveDistanceRangeInMeters(IntPtr instancePtr, ulong ulOverlayHandle, ref
float pfMinDistanceInMeters, ref
float pfMaxDistanceInMeters);
299 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayTextureColorSpace")]
300 internal static extern EVROverlayError VR_IVROverlay_SetOverlayTextureColorSpace(IntPtr instancePtr, ulong ulOverlayHandle,
EColorSpace eTextureColorSpace);
301 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayTextureColorSpace")]
302 internal static extern EVROverlayError VR_IVROverlay_GetOverlayTextureColorSpace(IntPtr instancePtr, ulong ulOverlayHandle, ref
EColorSpace peTextureColorSpace);
303 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayTextureBounds")]
304 internal static extern EVROverlayError VR_IVROverlay_SetOverlayTextureBounds(IntPtr instancePtr, ulong ulOverlayHandle, ref
VRTextureBounds_t pOverlayTextureBounds);
305 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayTextureBounds")]
306 internal static extern EVROverlayError VR_IVROverlay_GetOverlayTextureBounds(IntPtr instancePtr, ulong ulOverlayHandle, ref
VRTextureBounds_t pOverlayTextureBounds);
307 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayTransformType")]
309 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayTransformAbsolute")]
311 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayTransformAbsolute")]
313 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayTransformTrackedDeviceRelative")]
314 internal static extern EVROverlayError VR_IVROverlay_SetOverlayTransformTrackedDeviceRelative(IntPtr instancePtr, ulong ulOverlayHandle, uint unTrackedDevice, ref
HmdMatrix34_t pmatTrackedDeviceToOverlayTransform);
315 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayTransformTrackedDeviceRelative")]
316 internal static extern EVROverlayError VR_IVROverlay_GetOverlayTransformTrackedDeviceRelative(IntPtr instancePtr, ulong ulOverlayHandle, ref uint punTrackedDevice, ref
HmdMatrix34_t pmatTrackedDeviceToOverlayTransform);
317 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayTransformTrackedDeviceComponent")]
318 internal static extern EVROverlayError VR_IVROverlay_SetOverlayTransformTrackedDeviceComponent(IntPtr instancePtr, ulong ulOverlayHandle, uint unDeviceIndex,
string pchComponentName);
319 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayTransformTrackedDeviceComponent")]
320 internal static extern EVROverlayError VR_IVROverlay_GetOverlayTransformTrackedDeviceComponent(IntPtr instancePtr, ulong ulOverlayHandle, ref uint punDeviceIndex,
string pchComponentName, uint unComponentNameSize);
321 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_ShowOverlay")]
322 internal static extern EVROverlayError VR_IVROverlay_ShowOverlay(IntPtr instancePtr, ulong ulOverlayHandle);
323 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_HideOverlay")]
324 internal static extern EVROverlayError VR_IVROverlay_HideOverlay(IntPtr instancePtr, ulong ulOverlayHandle);
325 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_IsOverlayVisible")]
326 internal static extern bool VR_IVROverlay_IsOverlayVisible(IntPtr instancePtr, ulong ulOverlayHandle);
327 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetTransformForOverlayCoordinates")]
329 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_PollNextOverlayEvent")]
330 internal static extern bool VR_IVROverlay_PollNextOverlayEvent(IntPtr instancePtr, ulong ulOverlayHandle, ref
VREvent_t pEvent, uint uncbVREvent);
331 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayInputMethod")]
333 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayInputMethod")]
335 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetOverlayMouseScale")]
336 internal static extern EVROverlayError VR_IVROverlay_GetOverlayMouseScale(IntPtr instancePtr, ulong ulOverlayHandle, ref
HmdVector2_t pvecMouseScale);
337 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayMouseScale")]
338 internal static extern EVROverlayError VR_IVROverlay_SetOverlayMouseScale(IntPtr instancePtr, ulong ulOverlayHandle, ref
HmdVector2_t pvecMouseScale);
339 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_ComputeOverlayIntersection")]
341 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_HandleControllerOverlayInteractionAsMouse")]
342 internal static extern bool VR_IVROverlay_HandleControllerOverlayInteractionAsMouse(IntPtr instancePtr, ulong ulOverlayHandle, uint unControllerDeviceIndex);
343 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_IsHoverTargetOverlay")]
344 internal static extern bool VR_IVROverlay_IsHoverTargetOverlay(IntPtr instancePtr, ulong ulOverlayHandle);
345 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetGamepadFocusOverlay")]
346 internal static extern ulong VR_IVROverlay_GetGamepadFocusOverlay(IntPtr instancePtr);
347 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetGamepadFocusOverlay")]
348 internal static extern EVROverlayError VR_IVROverlay_SetGamepadFocusOverlay(IntPtr instancePtr, ulong ulNewFocusOverlay);
349 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayNeighbor")]
351 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_MoveGamepadFocusToNeighbor")]
353 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayTexture")]
354 internal static extern EVROverlayError VR_IVROverlay_SetOverlayTexture(IntPtr instancePtr, ulong ulOverlayHandle, ref
Texture_t pTexture);
355 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_ClearOverlayTexture")]
356 internal static extern EVROverlayError VR_IVROverlay_ClearOverlayTexture(IntPtr instancePtr, ulong ulOverlayHandle);
357 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayRaw")]
358 internal static extern EVROverlayError VR_IVROverlay_SetOverlayRaw(IntPtr instancePtr, ulong ulOverlayHandle, IntPtr pvBuffer, uint unWidth, uint unHeight, uint unDepth);
359 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetOverlayFromFile")]
360 internal static extern EVROverlayError VR_IVROverlay_SetOverlayFromFile(IntPtr instancePtr, ulong ulOverlayHandle,
string pchFilePath);
361 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_CreateDashboardOverlay")]
362 internal static extern EVROverlayError VR_IVROverlay_CreateDashboardOverlay(IntPtr instancePtr,
string pchOverlayKey,
string pchOverlayFriendlyName, ref ulong pMainHandle, ref ulong pThumbnailHandle);
363 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_IsDashboardVisible")]
364 internal static extern bool VR_IVROverlay_IsDashboardVisible(IntPtr instancePtr);
365 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_IsActiveDashboardOverlay")]
366 internal static extern bool VR_IVROverlay_IsActiveDashboardOverlay(IntPtr instancePtr, ulong ulOverlayHandle);
367 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetDashboardOverlaySceneProcess")]
368 internal static extern EVROverlayError VR_IVROverlay_SetDashboardOverlaySceneProcess(IntPtr instancePtr, ulong ulOverlayHandle, uint unProcessId);
369 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetDashboardOverlaySceneProcess")]
370 internal static extern EVROverlayError VR_IVROverlay_GetDashboardOverlaySceneProcess(IntPtr instancePtr, ulong ulOverlayHandle, ref uint punProcessId);
371 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_ShowDashboard")]
372 internal static extern void VR_IVROverlay_ShowDashboard(IntPtr instancePtr,
string pchOverlayToShow);
373 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetPrimaryDashboardDevice")]
374 internal static extern uint VR_IVROverlay_GetPrimaryDashboardDevice(IntPtr instancePtr);
375 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_ShowKeyboard")]
376 internal static extern EVROverlayError VR_IVROverlay_ShowKeyboard(IntPtr instancePtr,
int eInputMode,
int eLineInputMode,
string pchDescription, uint unCharMax,
string pchExistingText,
bool bUseMinimalMode, ulong uUserValue);
377 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_ShowKeyboardForOverlay")]
378 internal static extern EVROverlayError VR_IVROverlay_ShowKeyboardForOverlay(IntPtr instancePtr, ulong ulOverlayHandle,
int eInputMode,
int eLineInputMode,
string pchDescription, uint unCharMax,
string pchExistingText,
bool bUseMinimalMode, ulong uUserValue);
379 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_GetKeyboardText")]
380 internal static extern uint VR_IVROverlay_GetKeyboardText(IntPtr instancePtr,
System.
Text.StringBuilder pchText, uint cchText);
381 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_HideKeyboard")]
382 internal static extern void VR_IVROverlay_HideKeyboard(IntPtr instancePtr);
383 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetKeyboardTransformAbsolute")]
384 internal static extern void VR_IVROverlay_SetKeyboardTransformAbsolute(IntPtr instancePtr,
ETrackingUniverseOrigin eTrackingOrigin, ref
HmdMatrix34_t pmatTrackingOriginToKeyboardTransform);
385 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVROverlay_SetKeyboardPositionForOverlay")]
386 internal static extern void VR_IVROverlay_SetKeyboardPositionForOverlay(IntPtr instancePtr, ulong ulOverlayHandle,
HmdRect2_t avoidRect);
387 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_LoadRenderModel_Async")]
388 internal static extern EVRRenderModelError VR_IVRRenderModels_LoadRenderModel_Async(IntPtr instancePtr,
string pchRenderModelName, ref IntPtr ppRenderModel);
389 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_FreeRenderModel")]
390 internal static extern void VR_IVRRenderModels_FreeRenderModel(IntPtr instancePtr, IntPtr pRenderModel);
391 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_LoadTexture_Async")]
392 internal static extern EVRRenderModelError VR_IVRRenderModels_LoadTexture_Async(IntPtr instancePtr,
int textureId, ref IntPtr ppTexture);
393 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_FreeTexture")]
394 internal static extern void VR_IVRRenderModels_FreeTexture(IntPtr instancePtr, IntPtr pTexture);
395 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_LoadTextureD3D11_Async")]
396 internal static extern EVRRenderModelError VR_IVRRenderModels_LoadTextureD3D11_Async(IntPtr instancePtr,
int textureId, IntPtr pD3D11Device, ref IntPtr ppD3D11Texture2D);
397 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_FreeTextureD3D11")]
398 internal static extern void VR_IVRRenderModels_FreeTextureD3D11(IntPtr instancePtr, IntPtr pD3D11Texture2D);
399 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_GetRenderModelName")]
400 internal static extern uint VR_IVRRenderModels_GetRenderModelName(IntPtr instancePtr, uint unRenderModelIndex,
System.
Text.StringBuilder pchRenderModelName, uint unRenderModelNameLen);
401 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_GetRenderModelCount")]
402 internal static extern uint VR_IVRRenderModels_GetRenderModelCount(IntPtr instancePtr);
403 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_GetComponentCount")]
404 internal static extern uint VR_IVRRenderModels_GetComponentCount(IntPtr instancePtr,
string pchRenderModelName);
405 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_GetComponentName")]
406 internal static extern uint VR_IVRRenderModels_GetComponentName(IntPtr instancePtr,
string pchRenderModelName, uint unComponentIndex,
System.
Text.StringBuilder pchComponentName, uint unComponentNameLen);
407 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_GetComponentButtonMask")]
408 internal static extern ulong VR_IVRRenderModels_GetComponentButtonMask(IntPtr instancePtr,
string pchRenderModelName,
string pchComponentName);
409 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_GetComponentRenderModelName")]
410 internal static extern uint VR_IVRRenderModels_GetComponentRenderModelName(IntPtr instancePtr,
string pchRenderModelName,
string pchComponentName,
System.
Text.StringBuilder pchComponentRenderModelName, uint unComponentRenderModelNameLen);
411 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_GetComponentState")]
413 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRRenderModels_RenderModelHasComponent")]
414 internal static extern bool VR_IVRRenderModels_RenderModelHasComponent(IntPtr instancePtr,
string pchRenderModelName,
string pchComponentName);
415 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRNotifications_CreateNotification")]
417 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRNotifications_RemoveNotification")]
418 internal static extern EVRNotificationError VR_IVRNotifications_RemoveNotification(IntPtr instancePtr, uint notificationId);
419 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_GetSettingsErrorNameFromEnum")]
420 internal static extern IntPtr VR_IVRSettings_GetSettingsErrorNameFromEnum(IntPtr instancePtr,
EVRSettingsError eError);
421 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_Sync")]
422 internal static extern bool VR_IVRSettings_Sync(IntPtr instancePtr,
bool bForce, ref
EVRSettingsError peError);
423 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_GetBool")]
424 internal static extern bool VR_IVRSettings_GetBool(IntPtr instancePtr,
string pchSection,
string pchSettingsKey,
bool bDefaultValue, ref
EVRSettingsError peError);
425 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_SetBool")]
426 internal static extern void VR_IVRSettings_SetBool(IntPtr instancePtr,
string pchSection,
string pchSettingsKey,
bool bValue, ref
EVRSettingsError peError);
427 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_GetInt32")]
428 internal static extern int VR_IVRSettings_GetInt32(IntPtr instancePtr,
string pchSection,
string pchSettingsKey,
int nDefaultValue, ref
EVRSettingsError peError);
429 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_SetInt32")]
430 internal static extern void VR_IVRSettings_SetInt32(IntPtr instancePtr,
string pchSection,
string pchSettingsKey,
int nValue, ref
EVRSettingsError peError);
431 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_GetFloat")]
432 internal static extern float VR_IVRSettings_GetFloat(IntPtr instancePtr,
string pchSection,
string pchSettingsKey,
float flDefaultValue, ref
EVRSettingsError peError);
433 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_SetFloat")]
434 internal static extern void VR_IVRSettings_SetFloat(IntPtr instancePtr,
string pchSection,
string pchSettingsKey,
float flValue, ref
EVRSettingsError peError);
435 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_GetString")]
436 internal static extern void VR_IVRSettings_GetString(IntPtr instancePtr,
string pchSection,
string pchSettingsKey,
string pchValue, uint unValueLen,
string pchDefaultValue, ref
EVRSettingsError peError);
437 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_SetString")]
438 internal static extern void VR_IVRSettings_SetString(IntPtr instancePtr,
string pchSection,
string pchSettingsKey,
string pchValue, ref
EVRSettingsError peError);
439 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRSettings_RemoveSection")]
440 internal static extern void VR_IVRSettings_RemoveSection(IntPtr instancePtr,
string pchSection, ref
EVRSettingsError peError);
441 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_HasCamera")]
442 internal static extern bool VR_IVRTrackedCamera_HasCamera(IntPtr instancePtr, uint nDeviceIndex);
443 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_GetCameraFirmwareDescription")]
444 internal static extern bool VR_IVRTrackedCamera_GetCameraFirmwareDescription(IntPtr instancePtr, uint nDeviceIndex,
string pBuffer, uint nBufferLen);
445 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_GetCameraFrameDimensions")]
446 internal static extern bool VR_IVRTrackedCamera_GetCameraFrameDimensions(IntPtr instancePtr, uint nDeviceIndex,
ECameraVideoStreamFormat nVideoStreamFormat, ref uint pWidth, ref uint pHeight);
447 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_SetCameraVideoStreamFormat")]
448 internal static extern bool VR_IVRTrackedCamera_SetCameraVideoStreamFormat(IntPtr instancePtr, uint nDeviceIndex,
ECameraVideoStreamFormat nVideoStreamFormat);
449 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_GetCameraVideoStreamFormat")]
450 internal static extern ECameraVideoStreamFormat VR_IVRTrackedCamera_GetCameraVideoStreamFormat(IntPtr instancePtr, uint nDeviceIndex);
451 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_EnableCameraForStreaming")]
452 internal static extern bool VR_IVRTrackedCamera_EnableCameraForStreaming(IntPtr instancePtr, uint nDeviceIndex,
bool bEnable);
453 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_StartVideoStream")]
454 internal static extern bool VR_IVRTrackedCamera_StartVideoStream(IntPtr instancePtr, uint nDeviceIndex);
455 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_StopVideoStream")]
456 internal static extern bool VR_IVRTrackedCamera_StopVideoStream(IntPtr instancePtr, uint nDeviceIndex);
457 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_IsVideoStreamActive")]
458 internal static extern bool VR_IVRTrackedCamera_IsVideoStreamActive(IntPtr instancePtr, uint nDeviceIndex, ref
bool pbPaused, ref
float pflElapsedTime);
459 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_GetVideoStreamFrame")]
460 internal static extern IntPtr VR_IVRTrackedCamera_GetVideoStreamFrame(IntPtr instancePtr, uint nDeviceIndex);
461 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_ReleaseVideoStreamFrame")]
462 internal static extern bool VR_IVRTrackedCamera_ReleaseVideoStreamFrame(IntPtr instancePtr, uint nDeviceIndex, ref
CameraVideoStreamFrame_t pFrameImage);
463 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_SetAutoExposure")]
464 internal static extern bool VR_IVRTrackedCamera_SetAutoExposure(IntPtr instancePtr, uint nDeviceIndex,
bool bEnable);
465 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_PauseVideoStream")]
466 internal static extern bool VR_IVRTrackedCamera_PauseVideoStream(IntPtr instancePtr, uint nDeviceIndex);
467 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_ResumeVideoStream")]
468 internal static extern bool VR_IVRTrackedCamera_ResumeVideoStream(IntPtr instancePtr, uint nDeviceIndex);
469 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_GetCameraDistortion")]
470 internal static extern bool VR_IVRTrackedCamera_GetCameraDistortion(IntPtr instancePtr, uint nDeviceIndex,
float flInputU,
float flInputV, ref
float pflOutputU, ref
float pflOutputV);
471 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IVRTrackedCamera_GetCameraProjection")]
472 internal static extern bool VR_IVRTrackedCamera_GetCameraProjection(IntPtr instancePtr, uint nDeviceIndex,
float flWidthPixels,
float flHeightPixels,
float flZNear,
float flZFar, ref
HmdMatrix44_t pProjection);
483 public abstract IntPtr GetIntPtr();
484 public abstract void GetRecommendedRenderTargetSize(ref uint pnWidth,ref uint pnHeight);
486 public abstract void GetProjectionRaw(
EVREye eEye,ref
float pfLeft,ref
float pfRight,ref
float pfTop,ref
float pfBottom);
489 public abstract bool GetTimeSinceLastVsync(ref
float pfSecondsSinceLastVsync,ref ulong pulFrameCounter);
490 public abstract int GetD3D9AdapterIndex();
491 public abstract void GetDXGIOutputInfo(ref
int pnAdapterIndex);
492 public abstract bool IsDisplayOnDesktop();
493 public abstract bool SetDisplayVisibility(
bool bIsVisibleOnDesktop);
495 public abstract void ResetSeatedZeroPose();
496 public abstract HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose();
497 public abstract HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose();
498 public abstract uint GetSortedTrackedDeviceIndicesOfClass(
ETrackedDeviceClass eTrackedDeviceClass,uint [] punTrackedDeviceIndexArray,uint unRelativeToTrackedDeviceIndex);
504 public abstract bool IsTrackedDeviceConnected(uint unDeviceIndex);
512 public abstract bool PollNextEvent(ref
VREvent_t pEvent,uint uncbVREvent);
514 public abstract string GetEventTypeNameFromEnum(
EVREventType eType);
516 public abstract bool GetControllerState(uint unControllerDeviceIndex,ref
VRControllerState_t pControllerState);
518 public abstract void TriggerHapticPulse(uint unControllerDeviceIndex,uint unAxisId,
char usDurationMicroSec);
519 public abstract string GetButtonIdNameFromEnum(
EVRButtonId eButtonId);
521 public abstract bool CaptureInputFocus();
522 public abstract void ReleaseInputFocus();
523 public abstract bool IsInputFocusCapturedByAnotherProcess();
524 public abstract uint DriverDebugRequest(uint unDeviceIndex,
string pchRequest,
string pchResponseBuffer,uint unResponseBufferSize);
526 public abstract void AcknowledgeQuit_Exiting();
527 public abstract void AcknowledgeQuit_UserPrompt();
528 public abstract void PerformanceTestEnableCapture(
bool bEnable);
529 public abstract void PerformanceTestReportFidelityLevelChange(
int nFidelityLevel);
535 public abstract IntPtr GetIntPtr();
536 public abstract void GetWindowBounds(ref
int pnX,ref
int pnY,ref uint pnWidth,ref uint pnHeight);
537 public abstract void GetEyeOutputViewport(
EVREye eEye,ref uint pnX,ref uint pnY,ref uint pnWidth,ref uint pnHeight);
538 public abstract void GetDXGIOutputInfo(ref
int pnAdapterIndex,ref
int pnAdapterOutputIndex);
544 public abstract IntPtr GetIntPtr();
545 public abstract EVRApplicationError AddApplicationManifest(
string pchApplicationManifestFullPath,
bool bTemporary);
546 public abstract EVRApplicationError RemoveApplicationManifest(
string pchApplicationManifestFullPath);
547 public abstract bool IsApplicationInstalled(
string pchAppKey);
548 public abstract uint GetApplicationCount();
549 public abstract EVRApplicationError GetApplicationKeyByIndex(uint unApplicationIndex,
string pchAppKeyBuffer,uint unAppKeyBufferLen);
550 public abstract EVRApplicationError GetApplicationKeyByProcessId(uint unProcessId,
string pchAppKeyBuffer,uint unAppKeyBufferLen);
553 public abstract EVRApplicationError IdentifyApplication(uint unProcessId,
string pchAppKey);
554 public abstract uint GetApplicationProcessId(
string pchAppKey);
559 public abstract EVRApplicationError SetApplicationAutoLaunch(
string pchAppKey,
bool bAutoLaunch);
560 public abstract bool GetApplicationAutoLaunch(
string pchAppKey);
561 public abstract EVRApplicationError GetStartingApplication(
string pchAppKeyBuffer,uint unAppKeyBufferLen);
565 public abstract bool IsQuitUserPromptRequested();
571 public abstract IntPtr GetIntPtr();
573 public abstract bool GetPlayAreaSize(ref
float pSizeX,ref
float pSizeZ);
574 public abstract bool GetPlayAreaRect(ref
HmdQuad_t rect);
575 public abstract void ReloadInfo();
576 public abstract void SetSceneColor(
HmdColor_t color);
577 public abstract void GetBoundsColor(ref
HmdColor_t pOutputColorArray,
int nNumOutputColors,
float flCollisionBoundsFadeDistance,ref
HmdColor_t pOutputCameraColor);
578 public abstract bool AreBoundsVisible();
579 public abstract void ForceBoundsVisible(
bool bForce);
585 public abstract IntPtr GetIntPtr();
587 public abstract void RevertWorkingCopy();
588 public abstract bool GetWorkingPlayAreaSize(ref
float pSizeX,ref
float pSizeZ);
589 public abstract bool GetWorkingPlayAreaRect(ref
HmdQuad_t rect);
590 public abstract bool GetWorkingCollisionBoundsInfo(out
HmdQuad_t [] pQuadsBuffer);
591 public abstract bool GetLiveCollisionBoundsInfo(out
HmdQuad_t [] pQuadsBuffer);
592 public abstract bool GetWorkingSeatedZeroPoseToRawTrackingPose(ref
HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose);
593 public abstract bool GetWorkingStandingZeroPoseToRawTrackingPose(ref
HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose);
594 public abstract void SetWorkingPlayAreaSize(
float sizeX,
float sizeZ);
595 public abstract void SetWorkingCollisionBoundsInfo(
HmdQuad_t [] pQuadsBuffer);
596 public abstract void SetWorkingSeatedZeroPoseToRawTrackingPose(ref
HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose);
597 public abstract void SetWorkingStandingZeroPoseToRawTrackingPose(ref
HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose);
599 public abstract bool GetLiveSeatedZeroPoseToRawTrackingPose(ref
HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose);
600 public abstract void SetWorkingCollisionBoundsTagsInfo(byte [] pTagsBuffer);
601 public abstract bool GetLiveCollisionBoundsTagsInfo(out byte [] pTagsBuffer);
602 public abstract bool SetWorkingPhysicalBoundsInfo(
HmdQuad_t [] pQuadsBuffer);
603 public abstract bool GetLivePhysicalBoundsInfo(out
HmdQuad_t [] pQuadsBuffer);
609 public abstract IntPtr GetIntPtr();
615 public abstract void ClearLastSubmittedFrame();
616 public abstract void PostPresentHandoff();
618 public abstract float GetFrameTimeRemaining();
619 public abstract void FadeToColor(
float fSeconds,
float fRed,
float fGreen,
float fBlue,
float fAlpha,
bool bBackground);
620 public abstract void FadeGrid(
float fSeconds,
bool bFadeIn);
622 public abstract void ClearSkyboxOverride();
623 public abstract void CompositorBringToFront();
624 public abstract void CompositorGoToBack();
625 public abstract void CompositorQuit();
626 public abstract bool IsFullscreen();
627 public abstract uint GetCurrentSceneFocusProcess();
628 public abstract uint GetLastFrameRenderer();
629 public abstract bool CanRenderScene();
630 public abstract void ShowMirrorWindow();
631 public abstract void HideMirrorWindow();
632 public abstract bool IsMirrorWindowVisible();
633 public abstract void CompositorDumpImages();
639 public abstract IntPtr GetIntPtr();
640 public abstract EVROverlayError FindOverlay(
string pchOverlayKey,ref ulong pOverlayHandle);
641 public abstract EVROverlayError CreateOverlay(
string pchOverlayKey,
string pchOverlayFriendlyName,ref ulong pOverlayHandle);
643 public abstract EVROverlayError SetHighQualityOverlay(ulong ulOverlayHandle);
644 public abstract ulong GetHighQualityOverlay();
645 public abstract uint GetOverlayKey(ulong ulOverlayHandle,
System.
Text.StringBuilder pchValue,uint unBufferSize,ref
EVROverlayError pError);
646 public abstract uint GetOverlayName(ulong ulOverlayHandle,
System.
Text.StringBuilder pchValue,uint unBufferSize,ref
EVROverlayError pError);
647 public abstract EVROverlayError GetOverlayImageData(ulong ulOverlayHandle,IntPtr pvBuffer,uint unBufferSize,ref uint punWidth,ref uint punHeight);
648 public abstract string GetOverlayErrorNameFromEnum(
EVROverlayError error);
651 public abstract EVROverlayError SetOverlayColor(ulong ulOverlayHandle,
float fRed,
float fGreen,
float fBlue);
652 public abstract EVROverlayError GetOverlayColor(ulong ulOverlayHandle,ref
float pfRed,ref
float pfGreen,ref
float pfBlue);
653 public abstract EVROverlayError SetOverlayAlpha(ulong ulOverlayHandle,
float fAlpha);
654 public abstract EVROverlayError GetOverlayAlpha(ulong ulOverlayHandle,ref
float pfAlpha);
655 public abstract EVROverlayError SetOverlayWidthInMeters(ulong ulOverlayHandle,
float fWidthInMeters);
656 public abstract EVROverlayError GetOverlayWidthInMeters(ulong ulOverlayHandle,ref
float pfWidthInMeters);
657 public abstract EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle,
float fMinDistanceInMeters,
float fMaxDistanceInMeters);
658 public abstract EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle,ref
float pfMinDistanceInMeters,ref
float pfMaxDistanceInMeters);
666 public abstract EVROverlayError SetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle,uint unTrackedDevice,ref
HmdMatrix34_t pmatTrackedDeviceToOverlayTransform);
667 public abstract EVROverlayError GetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle,ref uint punTrackedDevice,ref
HmdMatrix34_t pmatTrackedDeviceToOverlayTransform);
668 public abstract EVROverlayError SetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle,uint unDeviceIndex,
string pchComponentName);
669 public abstract EVROverlayError GetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle,ref uint punDeviceIndex,
string pchComponentName,uint unComponentNameSize);
672 public abstract bool IsOverlayVisible(ulong ulOverlayHandle);
674 public abstract bool PollNextOverlayEvent(ulong ulOverlayHandle,ref
VREvent_t pEvent,uint uncbVREvent);
680 public abstract bool HandleControllerOverlayInteractionAsMouse(ulong ulOverlayHandle,uint unControllerDeviceIndex);
681 public abstract bool IsHoverTargetOverlay(ulong ulOverlayHandle);
682 public abstract ulong GetGamepadFocusOverlay();
683 public abstract EVROverlayError SetGamepadFocusOverlay(ulong ulNewFocusOverlay);
687 public abstract EVROverlayError ClearOverlayTexture(ulong ulOverlayHandle);
688 public abstract EVROverlayError SetOverlayRaw(ulong ulOverlayHandle,IntPtr pvBuffer,uint unWidth,uint unHeight,uint unDepth);
689 public abstract EVROverlayError SetOverlayFromFile(ulong ulOverlayHandle,
string pchFilePath);
690 public abstract EVROverlayError CreateDashboardOverlay(
string pchOverlayKey,
string pchOverlayFriendlyName,ref ulong pMainHandle,ref ulong pThumbnailHandle);
691 public abstract bool IsDashboardVisible();
692 public abstract bool IsActiveDashboardOverlay(ulong ulOverlayHandle);
693 public abstract EVROverlayError SetDashboardOverlaySceneProcess(ulong ulOverlayHandle,uint unProcessId);
694 public abstract EVROverlayError GetDashboardOverlaySceneProcess(ulong ulOverlayHandle,ref uint punProcessId);
695 public abstract void ShowDashboard(
string pchOverlayToShow);
696 public abstract uint GetPrimaryDashboardDevice();
697 public abstract EVROverlayError ShowKeyboard(
int eInputMode,
int eLineInputMode,
string pchDescription,uint unCharMax,
string pchExistingText,
bool bUseMinimalMode,ulong uUserValue);
698 public abstract EVROverlayError ShowKeyboardForOverlay(ulong ulOverlayHandle,
int eInputMode,
int eLineInputMode,
string pchDescription,uint unCharMax,
string pchExistingText,
bool bUseMinimalMode,ulong uUserValue);
699 public abstract uint GetKeyboardText(
System.
Text.StringBuilder pchText,uint cchText);
700 public abstract void HideKeyboard();
702 public abstract void SetKeyboardPositionForOverlay(ulong ulOverlayHandle,
HmdRect2_t avoidRect);
708 public abstract IntPtr GetIntPtr();
709 public abstract EVRRenderModelError LoadRenderModel_Async(
string pchRenderModelName,ref IntPtr ppRenderModel);
710 public abstract void FreeRenderModel(IntPtr pRenderModel);
712 public abstract void FreeTexture(IntPtr pTexture);
713 public abstract EVRRenderModelError LoadTextureD3D11_Async(
int textureId,IntPtr pD3D11Device,ref IntPtr ppD3D11Texture2D);
714 public abstract void FreeTextureD3D11(IntPtr pD3D11Texture2D);
715 public abstract uint GetRenderModelName(uint unRenderModelIndex,
System.
Text.StringBuilder pchRenderModelName,uint unRenderModelNameLen);
716 public abstract uint GetRenderModelCount();
717 public abstract uint GetComponentCount(
string pchRenderModelName);
718 public abstract uint GetComponentName(
string pchRenderModelName,uint unComponentIndex,
System.
Text.StringBuilder pchComponentName,uint unComponentNameLen);
719 public abstract ulong GetComponentButtonMask(
string pchRenderModelName,
string pchComponentName);
720 public abstract uint GetComponentRenderModelName(
string pchRenderModelName,
string pchComponentName,
System.
Text.StringBuilder pchComponentRenderModelName,uint unComponentRenderModelNameLen);
722 public abstract bool RenderModelHasComponent(
string pchRenderModelName,
string pchComponentName);
728 public abstract IntPtr GetIntPtr();
736 public abstract IntPtr GetIntPtr();
737 public abstract string GetSettingsErrorNameFromEnum(
EVRSettingsError eError);
739 public abstract bool GetBool(
string pchSection,
string pchSettingsKey,
bool bDefaultValue,ref
EVRSettingsError peError);
740 public abstract void SetBool(
string pchSection,
string pchSettingsKey,
bool bValue,ref
EVRSettingsError peError);
741 public abstract int GetInt32(
string pchSection,
string pchSettingsKey,
int nDefaultValue,ref
EVRSettingsError peError);
742 public abstract void SetInt32(
string pchSection,
string pchSettingsKey,
int nValue,ref
EVRSettingsError peError);
743 public abstract float GetFloat(
string pchSection,
string pchSettingsKey,
float flDefaultValue,ref
EVRSettingsError peError);
744 public abstract void SetFloat(
string pchSection,
string pchSettingsKey,
float flValue,ref
EVRSettingsError peError);
745 public abstract void GetString(
string pchSection,
string pchSettingsKey,
string pchValue,uint unValueLen,
string pchDefaultValue,ref
EVRSettingsError peError);
746 public abstract void SetString(
string pchSection,
string pchSettingsKey,
string pchValue,ref
EVRSettingsError peError);
747 public abstract void RemoveSection(
string pchSection,ref
EVRSettingsError peError);
753 public abstract IntPtr GetIntPtr();
754 public abstract bool HasCamera(uint nDeviceIndex);
755 public abstract bool GetCameraFirmwareDescription(uint nDeviceIndex,
string pBuffer,uint nBufferLen);
756 public abstract bool GetCameraFrameDimensions(uint nDeviceIndex,
ECameraVideoStreamFormat nVideoStreamFormat,ref uint pWidth,ref uint pHeight);
759 public abstract bool EnableCameraForStreaming(uint nDeviceIndex,
bool bEnable);
760 public abstract bool StartVideoStream(uint nDeviceIndex);
761 public abstract bool StopVideoStream(uint nDeviceIndex);
762 public abstract bool IsVideoStreamActive(uint nDeviceIndex,ref
bool pbPaused,ref
float pflElapsedTime);
765 public abstract bool SetAutoExposure(uint nDeviceIndex,
bool bEnable);
766 public abstract bool PauseVideoStream(uint nDeviceIndex);
767 public abstract bool ResumeVideoStream(uint nDeviceIndex);
768 public abstract bool GetCameraDistortion(uint nDeviceIndex,
float flInputU,
float flInputV,ref
float pflOutputU,ref
float pflOutputV);
769 public abstract bool GetCameraProjection(uint nDeviceIndex,
float flWidthPixels,
float flHeightPixels,
float flZNear,
float flZFar,ref
HmdMatrix44_t pProjection);
777 m_pVRSystem = VRSystem;
781 public override IntPtr
GetIntPtr() {
return m_pVRSystem; }
783 private void CheckIfUsable()
785 if (m_pVRSystem == IntPtr.Zero)
787 throw new Exception(
"Steam Pointer not configured");
795 VRNativeEntrypoints.VR_IVRSystem_GetRecommendedRenderTargetSize(m_pVRSystem,ref pnWidth,ref pnHeight);
810 VRNativeEntrypoints.VR_IVRSystem_GetProjectionRaw(m_pVRSystem,eEye,ref pfLeft,ref pfRight,ref pfTop,ref pfBottom);
827 pfSecondsSinceLastVsync = 0;
829 bool result =
VRNativeEntrypoints.VR_IVRSystem_GetTimeSinceLastVsync(m_pVRSystem,ref pfSecondsSinceLastVsync,ref pulFrameCounter);
853 bool result =
VRNativeEntrypoints.VR_IVRSystem_SetDisplayVisibility(m_pVRSystem,bIsVisibleOnDesktop);
859 VRNativeEntrypoints.VR_IVRSystem_GetDeviceToAbsoluteTrackingPose(m_pVRSystem,eOrigin,fPredictedSecondsToPhotonsFromNow,pTrackedDevicePoseArray,(uint) pTrackedDevicePoseArray.Length);
881 uint result =
VRNativeEntrypoints.VR_IVRSystem_GetSortedTrackedDeviceIndicesOfClass(m_pVRSystem,eTrackedDeviceClass,punTrackedDeviceIndexArray,(uint) punTrackedDeviceIndexArray.Length,unRelativeToTrackedDeviceIndex);
893 VRNativeEntrypoints.VR_IVRSystem_ApplyTransform(m_pVRSystem,ref pOutputPose,ref pTrackedDevicePose,ref pTransform);
898 uint result =
VRNativeEntrypoints.VR_IVRSystem_GetTrackedDeviceIndexForControllerRole(m_pVRSystem,unDeviceType);
916 bool result =
VRNativeEntrypoints.VR_IVRSystem_IsTrackedDeviceConnected(m_pVRSystem,unDeviceIndex);
922 bool result =
VRNativeEntrypoints.VR_IVRSystem_GetBoolTrackedDeviceProperty(m_pVRSystem,unDeviceIndex,prop,ref pError);
928 float result =
VRNativeEntrypoints.VR_IVRSystem_GetFloatTrackedDeviceProperty(m_pVRSystem,unDeviceIndex,prop,ref pError);
934 int result =
VRNativeEntrypoints.VR_IVRSystem_GetInt32TrackedDeviceProperty(m_pVRSystem,unDeviceIndex,prop,ref pError);
940 ulong result =
VRNativeEntrypoints.VR_IVRSystem_GetUint64TrackedDeviceProperty(m_pVRSystem,unDeviceIndex,prop,ref pError);
952 uint result =
VRNativeEntrypoints.VR_IVRSystem_GetStringTrackedDeviceProperty(m_pVRSystem,unDeviceIndex,prop,pchValue,unBufferSize,ref pError);
958 IntPtr result =
VRNativeEntrypoints.VR_IVRSystem_GetPropErrorNameFromEnum(m_pVRSystem,error);
959 return (
string) Marshal.PtrToStructure(result, typeof(
string));
964 bool result =
VRNativeEntrypoints.VR_IVRSystem_PollNextEvent(m_pVRSystem,ref pEvent,uncbVREvent);
970 bool result =
VRNativeEntrypoints.VR_IVRSystem_PollNextEventWithPose(m_pVRSystem,eOrigin,ref pEvent,uncbVREvent,ref pTrackedDevicePose);
976 IntPtr result =
VRNativeEntrypoints.VR_IVRSystem_GetEventTypeNameFromEnum(m_pVRSystem,eType);
977 return (
string) Marshal.PtrToStructure(result, typeof(
string));
988 bool result =
VRNativeEntrypoints.VR_IVRSystem_GetControllerState(m_pVRSystem,unControllerDeviceIndex,ref pControllerState);
994 bool result =
VRNativeEntrypoints.VR_IVRSystem_GetControllerStateWithPose(m_pVRSystem,eOrigin,unControllerDeviceIndex,ref pControllerState,ref pTrackedDevicePose);
997 public override void TriggerHapticPulse(uint unControllerDeviceIndex,uint unAxisId,
char usDurationMicroSec)
1000 VRNativeEntrypoints.VR_IVRSystem_TriggerHapticPulse(m_pVRSystem,unControllerDeviceIndex,unAxisId,usDurationMicroSec);
1005 IntPtr result =
VRNativeEntrypoints.VR_IVRSystem_GetButtonIdNameFromEnum(m_pVRSystem,eButtonId);
1006 return (
string) Marshal.PtrToStructure(result, typeof(
string));
1011 IntPtr result =
VRNativeEntrypoints.VR_IVRSystem_GetControllerAxisTypeNameFromEnum(m_pVRSystem,eAxisType);
1012 return (
string) Marshal.PtrToStructure(result, typeof(
string));
1028 bool result =
VRNativeEntrypoints.VR_IVRSystem_IsInputFocusCapturedByAnotherProcess(m_pVRSystem);
1031 public override uint
DriverDebugRequest(uint unDeviceIndex,
string pchRequest,
string pchResponseBuffer,uint unResponseBufferSize)
1034 uint result =
VRNativeEntrypoints.VR_IVRSystem_DriverDebugRequest(m_pVRSystem,unDeviceIndex,pchRequest,pchResponseBuffer,unResponseBufferSize);
1061 VRNativeEntrypoints.VR_IVRSystem_PerformanceTestReportFidelityLevelChange(m_pVRSystem,nFidelityLevel);
1070 m_pVRExtendedDisplay = VRExtendedDisplay;
1072 IntPtr m_pVRExtendedDisplay;
1074 public override IntPtr
GetIntPtr() {
return m_pVRExtendedDisplay; }
1076 private void CheckIfUsable()
1078 if (m_pVRExtendedDisplay == IntPtr.Zero)
1080 throw new Exception(
"Steam Pointer not configured");
1083 public override void GetWindowBounds(ref
int pnX,ref
int pnY,ref uint pnWidth,ref uint pnHeight)
1090 VRNativeEntrypoints.VR_IVRExtendedDisplay_GetWindowBounds(m_pVRExtendedDisplay,ref pnX,ref pnY,ref pnWidth,ref pnHeight);
1099 VRNativeEntrypoints.VR_IVRExtendedDisplay_GetEyeOutputViewport(m_pVRExtendedDisplay,eEye,ref pnX,ref pnY,ref pnWidth,ref pnHeight);
1105 pnAdapterOutputIndex = 0;
1106 VRNativeEntrypoints.VR_IVRExtendedDisplay_GetDXGIOutputInfo(m_pVRExtendedDisplay,ref pnAdapterIndex,ref pnAdapterOutputIndex);
1115 m_pVRApplications = VRApplications;
1117 IntPtr m_pVRApplications;
1119 public override IntPtr
GetIntPtr() {
return m_pVRApplications; }
1121 private void CheckIfUsable()
1123 if (m_pVRApplications == IntPtr.Zero)
1125 throw new Exception(
"Steam Pointer not configured");
1143 bool result =
VRNativeEntrypoints.VR_IVRApplications_IsApplicationInstalled(m_pVRApplications,pchAppKey);
1149 uint result =
VRNativeEntrypoints.VR_IVRApplications_GetApplicationCount(m_pVRApplications);
1185 uint result =
VRNativeEntrypoints.VR_IVRApplications_GetApplicationProcessId(m_pVRApplications,pchAppKey);
1191 IntPtr result =
VRNativeEntrypoints.VR_IVRApplications_GetApplicationsErrorNameFromEnum(m_pVRApplications,error);
1192 return (
string) Marshal.PtrToStructure(result, typeof(
string));
1197 uint result =
VRNativeEntrypoints.VR_IVRApplications_GetApplicationPropertyString(m_pVRApplications,pchAppKey,eProperty,pchPropertyValueBuffer,unPropertyValueBufferLen,ref peError);
1203 bool result =
VRNativeEntrypoints.VR_IVRApplications_GetApplicationPropertyBool(m_pVRApplications,pchAppKey,eProperty,ref peError);
1209 ulong result =
VRNativeEntrypoints.VR_IVRApplications_GetApplicationPropertyUint64(m_pVRApplications,pchAppKey,eProperty,ref peError);
1221 bool result =
VRNativeEntrypoints.VR_IVRApplications_GetApplicationAutoLaunch(m_pVRApplications,pchAppKey);
1245 IntPtr result =
VRNativeEntrypoints.VR_IVRApplications_GetApplicationsTransitionStateNameFromEnum(m_pVRApplications,state);
1246 return (
string) Marshal.PtrToStructure(result, typeof(
string));
1251 bool result =
VRNativeEntrypoints.VR_IVRApplications_IsQuitUserPromptRequested(m_pVRApplications);
1261 m_pVRChaperone = VRChaperone;
1263 IntPtr m_pVRChaperone;
1265 public override IntPtr
GetIntPtr() {
return m_pVRChaperone; }
1267 private void CheckIfUsable()
1269 if (m_pVRChaperone == IntPtr.Zero)
1271 throw new Exception(
"Steam Pointer not configured");
1285 bool result =
VRNativeEntrypoints.VR_IVRChaperone_GetPlayAreaSize(m_pVRChaperone,ref pSizeX,ref pSizeZ);
1291 bool result =
VRNativeEntrypoints.VR_IVRChaperone_GetPlayAreaRect(m_pVRChaperone,ref rect);
1307 VRNativeEntrypoints.VR_IVRChaperone_GetBoundsColor(m_pVRChaperone,ref pOutputColorArray,nNumOutputColors,flCollisionBoundsFadeDistance,ref pOutputCameraColor);
1327 m_pVRChaperoneSetup = VRChaperoneSetup;
1329 IntPtr m_pVRChaperoneSetup;
1331 public override IntPtr
GetIntPtr() {
return m_pVRChaperoneSetup; }
1333 private void CheckIfUsable()
1335 if (m_pVRChaperoneSetup == IntPtr.Zero)
1337 throw new Exception(
"Steam Pointer not configured");
1343 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_CommitWorkingCopy(m_pVRChaperoneSetup,configFile);
1356 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetWorkingPlayAreaSize(m_pVRChaperoneSetup,ref pSizeX,ref pSizeZ);
1362 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetWorkingPlayAreaRect(m_pVRChaperoneSetup,ref rect);
1368 uint punQuadsCount = 0;
1369 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetWorkingCollisionBoundsInfo(m_pVRChaperoneSetup,null,ref punQuadsCount);
1370 pQuadsBuffer=
new HmdQuad_t[punQuadsCount];
1371 result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetWorkingCollisionBoundsInfo(m_pVRChaperoneSetup,pQuadsBuffer,ref punQuadsCount);
1377 uint punQuadsCount = 0;
1378 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetLiveCollisionBoundsInfo(m_pVRChaperoneSetup,null,ref punQuadsCount);
1379 pQuadsBuffer=
new HmdQuad_t[punQuadsCount];
1380 result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetLiveCollisionBoundsInfo(m_pVRChaperoneSetup,pQuadsBuffer,ref punQuadsCount);
1386 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetWorkingSeatedZeroPoseToRawTrackingPose(m_pVRChaperoneSetup,ref pmatSeatedZeroPoseToRawTrackingPose);
1392 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetWorkingStandingZeroPoseToRawTrackingPose(m_pVRChaperoneSetup,ref pmatStandingZeroPoseToRawTrackingPose);
1398 VRNativeEntrypoints.VR_IVRChaperoneSetup_SetWorkingPlayAreaSize(m_pVRChaperoneSetup,sizeX,sizeZ);
1403 VRNativeEntrypoints.VR_IVRChaperoneSetup_SetWorkingCollisionBoundsInfo(m_pVRChaperoneSetup,pQuadsBuffer,(uint) pQuadsBuffer.Length);
1408 VRNativeEntrypoints.VR_IVRChaperoneSetup_SetWorkingSeatedZeroPoseToRawTrackingPose(m_pVRChaperoneSetup,ref pMatSeatedZeroPoseToRawTrackingPose);
1413 VRNativeEntrypoints.VR_IVRChaperoneSetup_SetWorkingStandingZeroPoseToRawTrackingPose(m_pVRChaperoneSetup,ref pMatStandingZeroPoseToRawTrackingPose);
1423 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose(m_pVRChaperoneSetup,ref pmatSeatedZeroPoseToRawTrackingPose);
1429 VRNativeEntrypoints.VR_IVRChaperoneSetup_SetWorkingCollisionBoundsTagsInfo(m_pVRChaperoneSetup,pTagsBuffer,(uint) pTagsBuffer.Length);
1434 uint punTagCount = 0;
1435 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetLiveCollisionBoundsTagsInfo(m_pVRChaperoneSetup,null,ref punTagCount);
1436 pTagsBuffer=
new byte[punTagCount];
1437 result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetLiveCollisionBoundsTagsInfo(m_pVRChaperoneSetup,pTagsBuffer,ref punTagCount);
1443 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_SetWorkingPhysicalBoundsInfo(m_pVRChaperoneSetup,pQuadsBuffer,(uint) pQuadsBuffer.Length);
1449 uint punQuadsCount = 0;
1450 bool result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetLivePhysicalBoundsInfo(m_pVRChaperoneSetup,null,ref punQuadsCount);
1451 pQuadsBuffer=
new HmdQuad_t[punQuadsCount];
1452 result =
VRNativeEntrypoints.VR_IVRChaperoneSetup_GetLivePhysicalBoundsInfo(m_pVRChaperoneSetup,pQuadsBuffer,ref punQuadsCount);
1462 m_pVRCompositor = VRCompositor;
1464 IntPtr m_pVRCompositor;
1466 public override IntPtr
GetIntPtr() {
return m_pVRCompositor; }
1468 private void CheckIfUsable()
1470 if (m_pVRCompositor == IntPtr.Zero)
1472 throw new Exception(
"Steam Pointer not configured");
1489 EVRCompositorError result =
VRNativeEntrypoints.VR_IVRCompositor_WaitGetPoses(m_pVRCompositor,pRenderPoseArray,(uint) pRenderPoseArray.Length,pGamePoseArray,(uint) pGamePoseArray.Length);
1495 EVRCompositorError result =
VRNativeEntrypoints.VR_IVRCompositor_GetLastPoses(m_pVRCompositor,pRenderPoseArray,(uint) pRenderPoseArray.Length,pGamePoseArray,(uint) pGamePoseArray.Length);
1517 bool result =
VRNativeEntrypoints.VR_IVRCompositor_GetFrameTiming(m_pVRCompositor,ref pTiming,unFramesAgo);
1523 float result =
VRNativeEntrypoints.VR_IVRCompositor_GetFrameTimeRemaining(m_pVRCompositor);
1526 public override void FadeToColor(
float fSeconds,
float fRed,
float fGreen,
float fBlue,
float fAlpha,
bool bBackground)
1529 VRNativeEntrypoints.VR_IVRCompositor_FadeToColor(m_pVRCompositor,fSeconds,fRed,fGreen,fBlue,fAlpha,bBackground);
1531 public override void FadeGrid(
float fSeconds,
bool bFadeIn)
1571 uint result =
VRNativeEntrypoints.VR_IVRCompositor_GetCurrentSceneFocusProcess(m_pVRCompositor);
1599 bool result =
VRNativeEntrypoints.VR_IVRCompositor_IsMirrorWindowVisible(m_pVRCompositor);
1614 m_pVROverlay = VROverlay;
1616 IntPtr m_pVROverlay;
1620 private void CheckIfUsable()
1622 if (m_pVROverlay == IntPtr.Zero)
1624 throw new Exception(
"Steam Pointer not configured");
1662 uint result =
VRNativeEntrypoints.VR_IVROverlay_GetOverlayKey(m_pVROverlay,ulOverlayHandle,pchValue,unBufferSize,ref pError);
1668 uint result =
VRNativeEntrypoints.VR_IVROverlay_GetOverlayName(m_pVROverlay,ulOverlayHandle,pchValue,unBufferSize,ref pError);
1682 IntPtr result =
VRNativeEntrypoints.VR_IVROverlay_GetOverlayErrorNameFromEnum(m_pVROverlay,error);
1683 return (
string) Marshal.PtrToStructure(result, typeof(
string));
1735 pfWidthInMeters = 0;
1742 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_SetOverlayAutoCurveDistanceRangeInMeters(m_pVROverlay,ulOverlayHandle,fMinDistanceInMeters,fMaxDistanceInMeters);
1748 pfMinDistanceInMeters = 0;
1749 pfMaxDistanceInMeters = 0;
1750 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_GetOverlayAutoCurveDistanceRangeInMeters(m_pVROverlay,ulOverlayHandle,ref pfMinDistanceInMeters,ref pfMaxDistanceInMeters);
1786 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_SetOverlayTransformAbsolute(m_pVROverlay,ulOverlayHandle,eTrackingOrigin,ref pmatTrackingOriginToOverlayTransform);
1792 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_GetOverlayTransformAbsolute(m_pVROverlay,ulOverlayHandle,ref peTrackingOrigin,ref pmatTrackingOriginToOverlayTransform);
1798 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_SetOverlayTransformTrackedDeviceRelative(m_pVROverlay,ulOverlayHandle,unTrackedDevice,ref pmatTrackedDeviceToOverlayTransform);
1804 punTrackedDevice = 0;
1805 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_GetOverlayTransformTrackedDeviceRelative(m_pVROverlay,ulOverlayHandle,ref punTrackedDevice,ref pmatTrackedDeviceToOverlayTransform);
1818 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_GetOverlayTransformTrackedDeviceComponent(m_pVROverlay,ulOverlayHandle,ref punDeviceIndex,pchComponentName,unComponentNameSize);
1836 bool result =
VRNativeEntrypoints.VR_IVROverlay_IsOverlayVisible(m_pVROverlay,ulOverlayHandle);
1842 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_GetTransformForOverlayCoordinates(m_pVROverlay,ulOverlayHandle,eTrackingOrigin,coordinatesInOverlay,ref pmatTransform);
1848 bool result =
VRNativeEntrypoints.VR_IVROverlay_PollNextOverlayEvent(m_pVROverlay,ulOverlayHandle,ref pEvent,uncbVREvent);
1878 bool result =
VRNativeEntrypoints.VR_IVROverlay_ComputeOverlayIntersection(m_pVROverlay,ulOverlayHandle,ref pParams,ref pResults);
1884 bool result =
VRNativeEntrypoints.VR_IVROverlay_HandleControllerOverlayInteractionAsMouse(m_pVROverlay,ulOverlayHandle,unControllerDeviceIndex);
1890 bool result =
VRNativeEntrypoints.VR_IVROverlay_IsHoverTargetOverlay(m_pVROverlay,ulOverlayHandle);
1945 pThumbnailHandle = 0;
1946 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_CreateDashboardOverlay(m_pVROverlay,pchOverlayKey,pchOverlayFriendlyName,ref pMainHandle,ref pThumbnailHandle);
1958 bool result =
VRNativeEntrypoints.VR_IVROverlay_IsActiveDashboardOverlay(m_pVROverlay,ulOverlayHandle);
1985 public override EVROverlayError ShowKeyboard(
int eInputMode,
int eLineInputMode,
string pchDescription,uint unCharMax,
string pchExistingText,
bool bUseMinimalMode,ulong uUserValue)
1988 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_ShowKeyboard(m_pVROverlay,eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText,bUseMinimalMode,uUserValue);
1991 public override EVROverlayError ShowKeyboardForOverlay(ulong ulOverlayHandle,
int eInputMode,
int eLineInputMode,
string pchDescription,uint unCharMax,
string pchExistingText,
bool bUseMinimalMode,ulong uUserValue)
1994 EVROverlayError result =
VRNativeEntrypoints.VR_IVROverlay_ShowKeyboardForOverlay(m_pVROverlay,ulOverlayHandle,eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText,bUseMinimalMode,uUserValue);
2000 uint result =
VRNativeEntrypoints.VR_IVROverlay_GetKeyboardText(m_pVROverlay,pchText,cchText);
2011 VRNativeEntrypoints.VR_IVROverlay_SetKeyboardTransformAbsolute(m_pVROverlay,eTrackingOrigin,ref pmatTrackingOriginToKeyboardTransform);
2016 VRNativeEntrypoints.VR_IVROverlay_SetKeyboardPositionForOverlay(m_pVROverlay,ulOverlayHandle,avoidRect);
2025 m_pVRRenderModels = VRRenderModels;
2027 IntPtr m_pVRRenderModels;
2029 public override IntPtr
GetIntPtr() {
return m_pVRRenderModels; }
2031 private void CheckIfUsable()
2033 if (m_pVRRenderModels == IntPtr.Zero)
2035 throw new Exception(
"Steam Pointer not configured");
2069 VRNativeEntrypoints.VR_IVRRenderModels_FreeTextureD3D11(m_pVRRenderModels,pD3D11Texture2D);
2074 uint result =
VRNativeEntrypoints.VR_IVRRenderModels_GetRenderModelName(m_pVRRenderModels,unRenderModelIndex,pchRenderModelName,unRenderModelNameLen);
2080 uint result =
VRNativeEntrypoints.VR_IVRRenderModels_GetRenderModelCount(m_pVRRenderModels);
2086 uint result =
VRNativeEntrypoints.VR_IVRRenderModels_GetComponentCount(m_pVRRenderModels,pchRenderModelName);
2089 public override uint
GetComponentName(
string pchRenderModelName,uint unComponentIndex,
System.
Text.StringBuilder pchComponentName,uint unComponentNameLen)
2092 uint result =
VRNativeEntrypoints.VR_IVRRenderModels_GetComponentName(m_pVRRenderModels,pchRenderModelName,unComponentIndex,pchComponentName,unComponentNameLen);
2098 ulong result =
VRNativeEntrypoints.VR_IVRRenderModels_GetComponentButtonMask(m_pVRRenderModels,pchRenderModelName,pchComponentName);
2104 uint result =
VRNativeEntrypoints.VR_IVRRenderModels_GetComponentRenderModelName(m_pVRRenderModels,pchRenderModelName,pchComponentName,pchComponentRenderModelName,unComponentRenderModelNameLen);
2110 bool result =
VRNativeEntrypoints.VR_IVRRenderModels_GetComponentState(m_pVRRenderModels,pchRenderModelName,pchComponentName,ref pControllerState,ref pState,ref pComponentState);
2116 bool result =
VRNativeEntrypoints.VR_IVRRenderModels_RenderModelHasComponent(m_pVRRenderModels,pchRenderModelName,pchComponentName);
2126 m_pVRNotifications = VRNotifications;
2128 IntPtr m_pVRNotifications;
2130 public override IntPtr
GetIntPtr() {
return m_pVRNotifications; }
2132 private void CheckIfUsable()
2134 if (m_pVRNotifications == IntPtr.Zero)
2136 throw new Exception(
"Steam Pointer not configured");
2142 pNotificationId = 0;
2159 m_pVRSettings = VRSettings;
2161 IntPtr m_pVRSettings;
2163 public override IntPtr
GetIntPtr() {
return m_pVRSettings; }
2165 private void CheckIfUsable()
2167 if (m_pVRSettings == IntPtr.Zero)
2169 throw new Exception(
"Steam Pointer not configured");
2175 IntPtr result =
VRNativeEntrypoints.VR_IVRSettings_GetSettingsErrorNameFromEnum(m_pVRSettings,eError);
2176 return (
string) Marshal.PtrToStructure(result, typeof(
string));
2187 bool result =
VRNativeEntrypoints.VR_IVRSettings_GetBool(m_pVRSettings,pchSection,pchSettingsKey,bDefaultValue,ref peError);
2193 VRNativeEntrypoints.VR_IVRSettings_SetBool(m_pVRSettings,pchSection,pchSettingsKey,bValue,ref peError);
2198 int result =
VRNativeEntrypoints.VR_IVRSettings_GetInt32(m_pVRSettings,pchSection,pchSettingsKey,nDefaultValue,ref peError);
2204 VRNativeEntrypoints.VR_IVRSettings_SetInt32(m_pVRSettings,pchSection,pchSettingsKey,nValue,ref peError);
2209 float result =
VRNativeEntrypoints.VR_IVRSettings_GetFloat(m_pVRSettings,pchSection,pchSettingsKey,flDefaultValue,ref peError);
2215 VRNativeEntrypoints.VR_IVRSettings_SetFloat(m_pVRSettings,pchSection,pchSettingsKey,flValue,ref peError);
2217 public override void GetString(
string pchSection,
string pchSettingsKey,
string pchValue,uint unValueLen,
string pchDefaultValue,ref
EVRSettingsError peError)
2220 VRNativeEntrypoints.VR_IVRSettings_GetString(m_pVRSettings,pchSection,pchSettingsKey,pchValue,unValueLen,pchDefaultValue,ref peError);
2225 VRNativeEntrypoints.VR_IVRSettings_SetString(m_pVRSettings,pchSection,pchSettingsKey,pchValue,ref peError);
2239 m_pVRTrackedCamera = VRTrackedCamera;
2241 IntPtr m_pVRTrackedCamera;
2243 public override IntPtr
GetIntPtr() {
return m_pVRTrackedCamera; }
2245 private void CheckIfUsable()
2247 if (m_pVRTrackedCamera == IntPtr.Zero)
2249 throw new Exception(
"Steam Pointer not configured");
2255 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_HasCamera(m_pVRTrackedCamera,nDeviceIndex);
2261 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_GetCameraFirmwareDescription(m_pVRTrackedCamera,nDeviceIndex,pBuffer,nBufferLen);
2269 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_GetCameraFrameDimensions(m_pVRTrackedCamera,nDeviceIndex,nVideoStreamFormat,ref pWidth,ref pHeight);
2275 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_SetCameraVideoStreamFormat(m_pVRTrackedCamera,nDeviceIndex,nVideoStreamFormat);
2287 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_EnableCameraForStreaming(m_pVRTrackedCamera,nDeviceIndex,bEnable);
2293 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_StartVideoStream(m_pVRTrackedCamera,nDeviceIndex);
2299 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_StopVideoStream(m_pVRTrackedCamera,nDeviceIndex);
2307 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_IsVideoStreamActive(m_pVRTrackedCamera,nDeviceIndex,ref pbPaused,ref pflElapsedTime);
2313 IntPtr result =
VRNativeEntrypoints.VR_IVRTrackedCamera_GetVideoStreamFrame(m_pVRTrackedCamera,nDeviceIndex);
2319 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_ReleaseVideoStreamFrame(m_pVRTrackedCamera,nDeviceIndex,ref pFrameImage);
2325 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_SetAutoExposure(m_pVRTrackedCamera,nDeviceIndex,bEnable);
2331 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_PauseVideoStream(m_pVRTrackedCamera,nDeviceIndex);
2337 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_ResumeVideoStream(m_pVRTrackedCamera,nDeviceIndex);
2340 public override bool GetCameraDistortion(uint nDeviceIndex,
float flInputU,
float flInputV,ref
float pflOutputU,ref
float pflOutputV)
2345 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_GetCameraDistortion(m_pVRTrackedCamera,nDeviceIndex,flInputU,flInputV,ref pflOutputU,ref pflOutputV);
2351 bool result =
VRNativeEntrypoints.VR_IVRTrackedCamera_GetCameraProjection(m_pVRTrackedCamera,nDeviceIndex,flWidthPixels,flHeightPixels,flZNear,flZFar,ref pProjection);
2359 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_Init")]
2361 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_Shutdown")]
2362 internal static extern void Shutdown();
2363 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_GetGenericInterface")]
2364 internal static extern IntPtr GetGenericInterface([In, MarshalAs(UnmanagedType.LPStr)]
string pchInterfaceVersion, ref
EVRInitError peError);
2365 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IsHmdPresent")]
2366 internal static extern bool IsHmdPresent();
2367 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_GetStringForHmdError")]
2368 internal static extern IntPtr GetStringForHmdError(
EVRInitError error);
2369 [DllImportAttribute(
"openvr_api", EntryPoint =
"VR_IsRuntimeInstalled")]
2370 internal static extern bool VR_IsRuntimeInstalled();
2943 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12, ArraySubType = UnmanagedType.R4)]
2948 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16, ArraySubType = UnmanagedType.R4)]
2953 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3, ArraySubType = UnmanagedType.R4)]
2958 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = UnmanagedType.R4)]
2963 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3, ArraySubType = UnmanagedType.R8)]
2968 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2, ArraySubType = UnmanagedType.R4)]
2985 [StructLayout(LayoutKind.Sequential)]
public struct HmdQuad_t
2987 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = UnmanagedType.Struct)]
2997 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2, ArraySubType = UnmanagedType.R4)]
2999 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2, ArraySubType = UnmanagedType.R4)]
3001 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2, ArraySubType = UnmanagedType.R4)]
3004 [StructLayout(LayoutKind.Sequential)]
public struct Texture_t
3016 [MarshalAs(UnmanagedType.I1)]
3018 [MarshalAs(UnmanagedType.I1)]
3046 [MarshalAs(UnmanagedType.I1)]
3063 [MarshalAs(UnmanagedType.I1)]
3076 public fixed
char cNewInput[8];
3097 [StructLayout(LayoutKind.Sequential)]
public struct VREvent_t
3119 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 5, ArraySubType = UnmanagedType.Struct)]
3125 [MarshalAs(UnmanagedType.I1)]
3127 [MarshalAs(UnmanagedType.I1)]
3189 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2, ArraySubType = UnmanagedType.R4)]
3208 [MarshalAs(UnmanagedType.I1)]
3234 [MarshalAs(UnmanagedType.I1)]
3237 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = UnmanagedType.R4)]
3256 return OpenVRInterop.GetGenericInterface(pchInterfaceVersion, ref peError);
3266 return Marshal.PtrToStringAnsi(
OpenVRInterop.GetStringForHmdError(error));
3269 public const uint k_unTrackingStringSize = 32;
3270 public const uint k_unMaxDriverDebugResponseSize = 32768;
3271 public const uint k_unTrackedDeviceIndex_Hmd = 0;
3272 public const uint k_unMaxTrackedDeviceCount = 16;
3273 public const uint k_unTrackedDeviceIndexInvalid = 4294967295;
3274 public const uint k_unMaxPropertyStringSize = 32768;
3275 public const uint k_unControllerStateAxisCount = 5;
3276 public const ulong k_ulOverlayHandleInvalid = 0;
3277 public const string IVRSystem_Version =
"IVRSystem_011";
3278 public const string IVRExtendedDisplay_Version =
"IVRExtendedDisplay_001";
3279 public const uint k_unMaxApplicationKeyLength = 128;
3280 public const string IVRApplications_Version =
"IVRApplications_003";
3281 public const string IVRChaperone_Version =
"IVRChaperone_003";
3282 public const string IVRChaperoneSetup_Version =
"IVRChaperoneSetup_005";
3283 public const string IVRCompositor_Version =
"IVRCompositor_011";
3284 public const uint k_unVROverlayMaxKeyLength = 128;
3285 public const uint k_unVROverlayMaxNameLength = 128;
3286 public const uint k_unMaxOverlayCount = 32;
3287 public const string IVROverlay_Version =
"IVROverlay_010";
3288 public const string k_pch_Controller_Component_GDC2015 =
"gdc2015";
3289 public const string k_pch_Controller_Component_Base =
"base";
3290 public const string k_pch_Controller_Component_Tip =
"tip";
3291 public const string k_pch_Controller_Component_HandGrip =
"handgrip";
3292 public const string k_pch_Controller_Component_Status =
"status";
3293 public const string IVRRenderModels_Version =
"IVRRenderModels_004";
3294 public const uint k_unNotificationTextMaxSize = 256;
3295 public const string IVRNotifications_Version =
"IVRNotifications_002";
3296 public const uint k_unMaxSettingsKeyLength = 128;
3297 public const string k_pch_SteamVR_Section =
"steamvr";
3298 public const string k_pch_SteamVR_RequireHmd_String =
"requireHmd";
3299 public const string k_pch_SteamVR_ForcedDriverKey_String =
"forcedDriver";
3300 public const string k_pch_SteamVR_ForcedHmdKey_String =
"forcedHmd";
3301 public const string k_pch_SteamVR_DisplayDebug_Bool =
"displayDebug";
3302 public const string k_pch_SteamVR_EnableDistortion_Bool =
"enableDistortion";
3303 public const string k_pch_SteamVR_DisplayDebugX_Int32 =
"displayDebugX";
3304 public const string k_pch_SteamVR_DisplayDebugY_Int32 =
"displayDebugY";
3305 public const string k_pch_SteamVR_SendSystemButtonToAllApps_Bool =
"sendSystemButtonToAllApps";
3306 public const string k_pch_SteamVR_LogLevel_Int32 =
"loglevel";
3307 public const string k_pch_SteamVR_IPD_Float =
"ipd";
3308 public const string k_pch_SteamVR_Background_String =
"background";
3309 public const string k_pch_SteamVR_GridColor_String =
"gridColor";
3310 public const string k_pch_SteamVR_PlayAreaColor_String =
"playAreaColor";
3311 public const string k_pch_SteamVR_ActivateMultipleDrivers_Bool =
"activateMultipleDrivers";
3312 public const string k_pch_SteamVR_PowerOffOnExit_Bool =
"powerOffOnExit";
3313 public const string k_pch_SteamVR_StandbyAppRunningTimeout_Float =
"standbyAppRunningTimeout";
3314 public const string k_pch_SteamVR_StandbyNoAppTimeout_Float =
"standbyNoAppTimeout";
3315 public const string k_pch_SteamVR_AutomaticDirectModeEnabled_Bool =
"automaticDirectModeEnabled";
3316 public const string k_pch_SteamVR_RequestDirectModeEnabled_Bool =
"requestDirectModeEnabled";
3317 public const string k_pch_SteamVR_RequestDirectModeDisabled_Bool =
"requestDirectModeDisabled";
3318 public const string k_pch_Lighthouse_Section =
"driver_lighthouse";
3319 public const string k_pch_Lighthouse_DisableIMU_Bool =
"disableimu";
3320 public const string k_pch_Lighthouse_UseDisambiguation_String =
"usedisambiguation";
3321 public const string k_pch_Lighthouse_DisambiguationDebug_Int32 =
"disambiguationdebug";
3322 public const string k_pch_Lighthouse_PrimaryBasestation_Int32 =
"primarybasestation";
3323 public const string k_pch_Lighthouse_LighthouseName_String =
"lighthousename";
3324 public const string k_pch_Lighthouse_MaxIncidenceAngleDegrees_Float =
"maxincidenceangledegrees";
3325 public const string k_pch_Lighthouse_UseLighthouseDirect_Bool =
"uselighthousedirect";
3326 public const string k_pch_Lighthouse_DBHistory_Bool =
"dbhistory";
3327 public const string k_pch_Lighthouse_OriginOffsetX_Float =
"originoffsetx";
3328 public const string k_pch_Lighthouse_OriginOffsetY_Float =
"originoffsety";
3329 public const string k_pch_Lighthouse_OriginOffsetZ_Float =
"originoffsetz";
3330 public const string k_pch_Lighthouse_HeadingOffset_Float =
"headingoffset";
3331 public const string k_pch_Null_Section =
"driver_null";
3332 public const string k_pch_Null_EnableNullDriver_Bool =
"enable";
3333 public const string k_pch_Null_SerialNumber_String =
"serialNumber";
3334 public const string k_pch_Null_ModelNumber_String =
"modelNumber";
3335 public const string k_pch_Null_WindowX_Int32 =
"windowX";
3336 public const string k_pch_Null_WindowY_Int32 =
"windowY";
3337 public const string k_pch_Null_WindowWidth_Int32 =
"windowWidth";
3338 public const string k_pch_Null_WindowHeight_Int32 =
"windowHeight";
3339 public const string k_pch_Null_RenderWidth_Int32 =
"renderWidth";
3340 public const string k_pch_Null_RenderHeight_Int32 =
"renderHeight";
3341 public const string k_pch_Null_SecondsFromVsyncToPhotons_Float =
"secondsFromVsyncToPhotons";
3342 public const string k_pch_Null_DisplayFrequency_Float =
"displayFrequency";
3343 public const string k_pch_UserInterface_Section =
"userinterface";
3344 public const string k_pch_UserInterface_StatusAlwaysOnTop_Bool =
"StatusAlwaysOnTop";
3345 public const string k_pch_Notifications_Section =
"notifications";
3346 public const string k_pch_Notifications_DoNotDisturb_Bool =
"DoNotDisturb";
3347 public const string k_pch_Keyboard_Section =
"keyboard";
3348 public const string k_pch_Keyboard_TutorialCompletions =
"TutorialCompletions";
3349 public const string k_pch_Perf_Section =
"perfcheck";
3350 public const string k_pch_Perf_HeuristicActive_Bool =
"heuristicActive";
3351 public const string k_pch_Perf_NotifyInHMD_Bool =
"warnInHMD";
3352 public const string k_pch_Perf_NotifyOnlyOnce_Bool =
"warnOnlyOnce";
3353 public const string k_pch_Perf_AllowTimingStore_Bool =
"allowTimingStore";
3354 public const string k_pch_Perf_SaveTimingsOnExit_Bool =
"saveTimingsOnExit";
3355 public const string k_pch_Camera_Section =
"camera";
3356 public const string IVRSettings_Version =
"IVRSettings_001";
3357 public const string IVRTrackedCamera_Version =
"IVRTrackedCamera_001";
3364 public const int k_nRenderEventID_WaitGetPoses = 201510020;
3365 public const int k_nRenderEventID_SubmitL = 201510021;
3366 public const int k_nRenderEventID_SubmitR = 201510022;
3367 public const int k_nRenderEventID_Flush = 201510023;
3368 public const int k_nRenderEventID_PostPresentHandoff = 201510024;
3370 [DllImport(
"openvr_api", EntryPoint=
"UnityHooks_GetRenderEventFunc")]
3371 public static extern IntPtr GetRenderEventFunc();
3373 [DllImport(
"openvr_api", EntryPoint=
"UnityHooks_SetSubmitParams")]
3376 [DllImport(
"openvr_api", EntryPoint=
"UnityHooks_SetColorSpace")]
3377 public static extern void SetColorSpace(
EColorSpace eColorSpace);
3379 [DllImport(
"openvr_api", EntryPoint=
"UnityHooks_EventWriteString")]
3380 public static extern void EventWriteString([In, MarshalAs(UnmanagedType.LPWStr)]
string sEvent);
override bool GetApplicationAutoLaunch(string pchAppKey)
override ETrackingUniverseOrigin GetTrackingSpace()
override string GetButtonIdNameFromEnum(EVRButtonId eButtonId)
HmdVector3_t vAngularVelocity
override bool GetCameraFirmwareDescription(uint nDeviceIndex, string pBuffer, uint nBufferLen)
override uint GetStringTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, System.Text.StringBuilder pchValue, uint unBufferSize, ref ETrackedPropertyError pError)
override bool GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin, uint unControllerDeviceIndex, ref VRControllerState_t pControllerState, ref TrackedDevicePose_t pTrackedDevicePose)
override void HideKeyboard()
override ulong GetApplicationPropertyUint64(string pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError)
float m_flTotalRenderGpuMs
override EVROverlayError GetOverlayWidthInMeters(ulong ulOverlayHandle, ref float pfWidthInMeters)
override bool GetLivePhysicalBoundsInfo(out HmdQuad_t[] pQuadsBuffer)
static bool IsHmdPresent()
override bool IsApplicationInstalled(string pchAppKey)
override void SetWorkingCollisionBoundsTagsInfo(byte[] pTagsBuffer)
VRControllerAxis_t[] rAxis
override bool GetApplicationPropertyBool(string pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError)
override CameraVideoStreamFrame_t GetVideoStreamFrame(uint nDeviceIndex)
override uint GetKeyboardText(System.Text.StringBuilder pchText, uint cchText)
override uint GetComponentName(string pchRenderModelName, uint unComponentIndex, System.Text.StringBuilder pchComponentName, uint unComponentNameLen)
override bool GetFrameTiming(ref Compositor_FrameTiming pTiming, uint unFramesAgo)
override float GetFrameTimeRemaining()
override EDeviceActivityLevel GetTrackedDeviceActivityLevel(uint unDeviceId)
EGraphicsAPIConvention eType
override bool GetControllerState(uint unControllerDeviceIndex, ref VRControllerState_t pControllerState)
override bool IsInputFocusCapturedByAnotherProcess()
override HmdMatrix34_t GetMatrix34TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError)
override string GetPropErrorNameFromEnum(ETrackedPropertyError error)
override EVROverlayError DestroyOverlay(ulong ulOverlayHandle)
override EVROverlayError SetOverlayAlpha(ulong ulOverlayHandle, float fAlpha)
override HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose()
override IntPtr GetIntPtr()
override bool SetCameraVideoStreamFormat(uint nDeviceIndex, ECameraVideoStreamFormat nVideoStreamFormat)
override bool Sync(bool bForce, ref EVRSettingsError peError)
override HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose()
CVRCompositor(IntPtr VRCompositor)
override EVRRenderModelError LoadRenderModel_Async(string pchRenderModelName, ref IntPtr ppRenderModel)
override bool SetWorkingPhysicalBoundsInfo(HmdQuad_t[] pQuadsBuffer)
override IntPtr GetIntPtr()
override void CompositorBringToFront()
override ChaperoneCalibrationState GetCalibrationState()
override string GetOverlayErrorNameFromEnum(EVROverlayError error)
override void SetString(string pchSection, string pchSettingsKey, string pchValue, ref EVRSettingsError peError)
override EVROverlayError GetOverlayTextureColorSpace(ulong ulOverlayHandle, ref EColorSpace peTextureColorSpace)
override void PerformanceTestEnableCapture(bool bEnable)
uint m_nISPFrameTimeStamp
override bool GetCameraFrameDimensions(uint nDeviceIndex, ECameraVideoStreamFormat nVideoStreamFormat, ref uint pWidth, ref uint pHeight)
override EVROverlayError GetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale)
override string GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType)
override IntPtr GetIntPtr()
override void GetEyeOutputViewport(EVREye eEye, ref uint pnX, ref uint pnY, ref uint pnWidth, ref uint pnHeight)
override EVROverlayError SetOverlayRaw(ulong ulOverlayHandle, IntPtr pvBuffer, uint unWidth, uint unHeight, uint unDepth)
override EVROverlayError SetDashboardOverlaySceneProcess(ulong ulOverlayHandle, uint unProcessId)
override EVRCompositorError GetLastPoses(TrackedDevicePose_t[] pRenderPoseArray, TrackedDevicePose_t[] pGamePoseArray)
override EVRApplicationError RemoveApplicationManifest(string pchApplicationManifestFullPath)
float m_flPresentCallCpuMs
override EVROverlayError GetOverlayInputMethod(ulong ulOverlayHandle, ref VROverlayInputMethod peInputMethod)
override bool GetLiveCollisionBoundsInfo(out HmdQuad_t[] pQuadsBuffer)
VREvent_Process_t process
override EVRApplicationError GetApplicationKeyByIndex(uint unApplicationIndex, string pchAppKeyBuffer, uint unAppKeyBufferLen)
override ulong GetComponentButtonMask(string pchRenderModelName, string pchComponentName)
override uint GetOverlayName(ulong ulOverlayHandle, System.Text.StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError)
override uint GetComponentCount(string pchRenderModelName)
CVRTrackedCamera(IntPtr VRTrackedCamera)
override void FadeGrid(float fSeconds, bool bFadeIn)
override bool GetLiveCollisionBoundsTagsInfo(out byte[] pTagsBuffer)
override void AcknowledgeQuit_Exiting()
override void CompositorDumpImages()
override EVROverlayError CreateOverlay(string pchOverlayKey, string pchOverlayFriendlyName, ref ulong pOverlayHandle)
override bool GetTimeSinceLastVsync(ref float pfSecondsSinceLastVsync, ref ulong pulFrameCounter)
override EVROverlayError GetOverlayTransformType(ulong ulOverlayHandle, ref VROverlayTransformType peTransformType)
override bool GetBool(string pchSection, string pchSettingsKey, bool bDefaultValue, ref EVRSettingsError peError)
override uint GetApplicationCount()
override uint GetCurrentSceneFocusProcess()
override DistortionCoordinates_t ComputeDistortion(EVREye eEye, float fU, float fV)
override uint GetComponentRenderModelName(string pchRenderModelName, string pchComponentName, System.Text.StringBuilder pchComponentRenderModelName, uint unComponentRenderModelNameLen)
override EVROverlayError SetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled)
override EVROverlayError SetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale)
override EVRRenderModelError LoadTextureD3D11_Async(int textureId, IntPtr pD3D11Device, ref IntPtr ppD3D11Texture2D)
HmdVector2_t vBottomRight
static IntPtr Init(ref EVRInitError peError, EVRApplicationType eApplicationType=EVRApplicationType.VRApplication_Scene)
override uint GetLastFrameRenderer()
override IntPtr GetIntPtr()
override void SetSceneColor(HmdColor_t color)
double m_flFrameElapsedTime
float m_flNewFrameReadyMs
override bool GetCameraDistortion(uint nDeviceIndex, float flInputU, float flInputV, ref float pflOutputU, ref float pflOutputV)
override bool EnableCameraForStreaming(uint nDeviceIndex, bool bEnable)
float m_flCompositorUpdateEndMs
override void ClearSkyboxOverride()
override void PerformanceTestReportFidelityLevelChange(int nFidelityLevel)
EVRControllerEventOutputType
float m_flCompositorUpdateStartMs
ECameraVideoStreamFormat m_nStreamFormat
override void GetProjectionRaw(EVREye eEye, ref float pfLeft, ref float pfRight, ref float pfTop, ref float pfBottom)
VREvent_Reserved_t reserved
ulong m_nPreviousUniverse
override bool IsVideoStreamActive(uint nDeviceIndex, ref bool pbPaused, ref float pflElapsedTime)
override bool IsTrackedDeviceConnected(uint unDeviceIndex)
override EVRFirmwareError PerformFirmwareUpdate(uint unDeviceIndex)
override bool ResumeVideoStream(uint nDeviceIndex)
override EVROverlayError SetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds)
override bool SetAutoExposure(uint nDeviceIndex, bool bEnable)
override HmdMatrix44_t GetProjectionMatrix(EVREye eEye, float fNearZ, float fFarZ, EGraphicsAPIConvention eProjType)
override bool HasCamera(uint nDeviceIndex)
override EVROverlayError GetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds)
override EVROverlayError SetOverlayNeighbor(EOverlayDirection eDirection, ulong ulFrom, ulong ulTo)
float m_flWaitForPresentCpuMs
override void ShowDashboard(string pchOverlayToShow)
override void FreeTextureD3D11(IntPtr pD3D11Texture2D)
override EVROverlayError SetOverlayInputMethod(ulong ulOverlayHandle, VROverlayInputMethod eInputMethod)
VREvent_Notification_t notification
override IntPtr GetIntPtr()
override EVRNotificationError CreateNotification(ulong ulOverlayHandle, ulong ulUserValue, EVRNotificationType type, string pchText, EVRNotificationStyle style, ref NotificationBitmap_t pImage, ref uint pNotificationId)
CVRChaperoneSetup(IntPtr VRChaperoneSetup)
override IntPtr GetIntPtr()
override void ReloadFromDisk(EChaperoneConfigFile configFile)
ulong m_nFrameCaptureTicks
EVRApplicationTransitionState
override void SetInt32(string pchSection, string pchSettingsKey, int nValue, ref EVRSettingsError peError)
override EVROverlayError GetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, ref uint punTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform)
override void GetWindowBounds(ref int pnX, ref int pnY, ref uint pnWidth, ref uint pnHeight)
override EVROverlayError HideOverlay(ulong ulOverlayHandle)
override bool GetWorkingCollisionBoundsInfo(out HmdQuad_t[] pQuadsBuffer)
override void ShowMirrorWindow()
override void SetKeyboardTransformAbsolute(ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToKeyboardTransform)
override EVRCompositorError SetSkyboxOverride(Texture_t[] pTextures)
override string GetSettingsErrorNameFromEnum(EVRSettingsError eError)
float m_flCompositorIdleCpuMs
override bool IsDisplayOnDesktop()
override void ForceBoundsVisible(bool bForce)
override EVROverlayError SetOverlayTextureColorSpace(ulong ulOverlayHandle, EColorSpace eTextureColorSpace)
override EVRNotificationError RemoveNotification(uint notificationId)
override EVROverlayError CreateDashboardOverlay(string pchOverlayKey, string pchOverlayFriendlyName, ref ulong pMainHandle, ref ulong pThumbnailHandle)
override EVROverlayError SetGamepadFocusOverlay(ulong ulNewFocusOverlay)
override ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex(uint unDeviceIndex)
override bool GetCameraProjection(uint nDeviceIndex, float flWidthPixels, float flHeightPixels, float flZNear, float flZFar, ref HmdMatrix44_t pProjection)
override uint GetApplicationProcessId(string pchAppKey)
VREvent_Controller_t controller
override bool IsMirrorWindowVisible()
float m_flCompositorRenderGpuMs
override void SetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose)
override bool GetWorkingPlayAreaRect(ref HmdQuad_t rect)
override void RevertWorkingCopy()
override void SetKeyboardPositionForOverlay(ulong ulOverlayHandle, HmdRect2_t avoidRect)
override void PostPresentHandoff()
HmdMatrix34_t mTrackingToComponentRenderModel
override float GetFloat(string pchSection, string pchSettingsKey, float flDefaultValue, ref EVRSettingsError peError)
double m_flFrameCaptureTime
override EVRApplicationError GetStartingApplication(string pchAppKeyBuffer, uint unAppKeyBufferLen)
override uint GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole unDeviceType)
override EVROverlayError SetOverlayWidthInMeters(ulong ulOverlayHandle, float fWidthInMeters)
double m_flSystemTimeInSeconds
override int GetD3D9AdapterIndex()
override bool IsFullscreen()
override EVROverlayError ShowKeyboard(int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText, bool bUseMinimalMode, ulong uUserValue)
CVRRenderModels(IntPtr VRRenderModels)
float m_flCompositorRenderStartMs
override uint GetRenderModelName(uint unRenderModelIndex, System.Text.StringBuilder pchRenderModelName, uint unRenderModelNameLen)
override ETrackedDeviceClass GetTrackedDeviceClass(uint unDeviceIndex)
override void ReleaseInputFocus()
override bool IsActiveDashboardOverlay(ulong ulOverlayHandle)
override EVROverlayError GetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, ref uint punDeviceIndex, string pchComponentName, uint unComponentNameSize)
float m_flNewPosesReadyMs
override bool CanRenderScene()
override IntPtr GetIntPtr()
override void GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, TrackedDevicePose_t[] pTrackedDevicePoseArray)
override HmdMatrix34_t GetEyeToHeadTransform(EVREye eEye)
override uint GetPrimaryDashboardDevice()
override EVROverlayError GetOverlayTransformAbsolute(ulong ulOverlayHandle, ref ETrackingUniverseOrigin peTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform)
float flSecondsFingerDown
override bool PollNextEventWithPose(ETrackingUniverseOrigin eOrigin, ref VREvent_t pEvent, uint uncbVREvent, ref TrackedDevicePose_t pTrackedDevicePose)
override bool PollNextEvent(ref VREvent_t pEvent, uint uncbVREvent)
CVRNotifications(IntPtr VRNotifications)
ETrackingResult eTrackingResult
CVRExtendedDisplay(IntPtr VRExtendedDisplay)
override void SetWorkingPlayAreaSize(float sizeX, float sizeZ)
override bool SetDisplayVisibility(bool bIsVisibleOnDesktop)
override bool ComputeOverlayIntersection(ulong ulOverlayHandle, ref VROverlayIntersectionParams_t pParams, ref VROverlayIntersectionResults_t pResults)
override void AcknowledgeQuit_UserPrompt()
override IntPtr GetIntPtr()
override EVRApplicationError AddApplicationManifest(string pchApplicationManifestFullPath, bool bTemporary)
override void ApplyTransform(ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pTrackedDevicePose, ref HmdMatrix34_t pTransform)
override void HideMirrorWindow()
override EVROverlayError SetOverlayFromFile(ulong ulOverlayHandle, string pchFilePath)
float m_flCompositorRenderCpuMs
HmdMatrix34_t mDeviceToAbsoluteTracking
override EVRCompositorError Submit(EVREye eEye, ref Texture_t pTexture, ref VRTextureBounds_t pBounds, EVRSubmitFlags nSubmitFlags)
VREvent_Keyboard_t keyboard
override void FadeToColor(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground)
override EVRRenderModelError LoadTexture_Async(int textureId, ref IntPtr ppTexture)
override void GetBoundsColor(ref HmdColor_t pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, ref HmdColor_t pOutputCameraColor)
uint m_nISPReferenceTimeStamp
override EVROverlayError SetOverlayColor(ulong ulOverlayHandle, float fRed, float fGreen, float fBlue)
override bool IsQuitUserPromptRequested()
EGamepadTextInputLineMode
override uint GetRenderModelCount()
override uint GetOverlayKey(ulong ulOverlayHandle, System.Text.StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError)
override void GetRecommendedRenderTargetSize(ref uint pnWidth, ref uint pnHeight)
override void CompositorGoToBack()
override uint GetApplicationPropertyString(string pchAppKey, EVRApplicationProperty eProperty, string pchPropertyValueBuffer, uint unPropertyValueBufferLen, ref EVRApplicationError peError)
override EVROverlayError SetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, uint unDeviceIndex, string pchComponentName)
override void SetFloat(string pchSection, string pchSettingsKey, float flValue, ref EVRSettingsError peError)
override void FreeTexture(IntPtr pTexture)
override EVROverlayError ShowOverlay(ulong ulOverlayHandle)
override EVRApplicationError SetApplicationAutoLaunch(string pchAppKey, bool bAutoLaunch)
override int GetInt32(string pchSection, string pchSettingsKey, int nDefaultValue, ref EVRSettingsError peError)
override bool GetBoolTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError)
override string GetEventTypeNameFromEnum(EVREventType eType)
float m_flSceneRenderGpuMs
override bool StartVideoStream(uint nDeviceIndex)
TrackedDevicePose_t m_HmdPose
override bool HandleControllerOverlayInteractionAsMouse(ulong ulOverlayHandle, uint unControllerDeviceIndex)
override void ResetSeatedZeroPose()
override EVROverlayError FindOverlay(string pchOverlayKey, ref ulong pOverlayHandle)
override ulong GetHighQualityOverlay()
override EVRCompositorError WaitGetPoses(TrackedDevicePose_t[] pRenderPoseArray, TrackedDevicePose_t[] pGamePoseArray)
override bool IsOverlayVisible(ulong ulOverlayHandle)
override IntPtr GetIntPtr()
override bool CaptureInputFocus()
HmdMatrix34_t m_matDeviceToAbsoluteTracking
override void CompositorQuit()
override EVRApplicationTransitionState GetTransitionState()
override bool GetComponentState(string pchRenderModelName, string pchComponentName, ref VRControllerState_t pControllerState, ref RenderModel_ControllerMode_State_t pState, ref RenderModel_ComponentState_t pComponentState)
override bool CommitWorkingCopy(EChaperoneConfigFile configFile)
override bool GetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose)
override ECameraVideoStreamFormat GetCameraVideoStreamFormat(uint nDeviceIndex)
ETrackingUniverseOrigin eOrigin
override bool GetPlayAreaSize(ref float pSizeX, ref float pSizeZ)
override EVROverlayError MoveGamepadFocusToNeighbor(EOverlayDirection eDirection, ulong ulFrom)
override ulong GetUint64TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError)
CVROverlay(IntPtr VROverlay)
override EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle, ref float pfMinDistanceInMeters, ref float pfMaxDistanceInMeters)
override bool GetWorkingPlayAreaSize(ref float pSizeX, ref float pSizeZ)
override bool RenderModelHasComponent(string pchRenderModelName, string pchComponentName)
override EVRApplicationError PerformApplicationPrelaunchCheck(string pchAppKey)
override EVROverlayError GetOverlayColor(ulong ulOverlayHandle, ref float pfRed, ref float pfGreen, ref float pfBlue)
override void TriggerHapticPulse(uint unControllerDeviceIndex, uint unAxisId, char usDurationMicroSec)
override void SetWorkingCollisionBoundsInfo(HmdQuad_t[] pQuadsBuffer)
override void GetDXGIOutputInfo(ref int pnAdapterIndex, ref int pnAdapterOutputIndex)
ChaperoneCalibrationState
override uint GetSortedTrackedDeviceIndicesOfClass(ETrackedDeviceClass eTrackedDeviceClass, uint[] punTrackedDeviceIndexArray, uint unRelativeToTrackedDeviceIndex)
override EVROverlayError GetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, ref bool pbEnabled)
override bool GetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose)
override bool IsDashboardVisible()
override bool IsHoverTargetOverlay(ulong ulOverlayHandle)
override bool GetLiveSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose)
override bool GetPlayAreaRect(ref HmdQuad_t rect)
CVRSettings(IntPtr VRSettings)
override bool StopVideoStream(uint nDeviceIndex)
override int GetInt32TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError)
override EVROverlayError GetDashboardOverlaySceneProcess(ulong ulOverlayHandle, ref uint punProcessId)
static string GetStringForHmdError(EVRInitError error)
CVRApplications(IntPtr VRApplications)
override EVRApplicationError LaunchApplication(string pchAppKey)
override void ReloadInfo()
float m_flWaitGetPosesCalledMs
override string GetApplicationsTransitionStateNameFromEnum(EVRApplicationTransitionState state)
override EVROverlayError SetOverlayTexture(ulong ulOverlayHandle, ref Texture_t pTexture)
VREvent_Overlay_t overlay
override ulong GetGamepadFocusOverlay()
override EVROverlayError SetHighQualityOverlay(ulong ulOverlayHandle)
override EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters)
CVRSystem(IntPtr VRSystem)
override IntPtr GetIntPtr()
override void GetDXGIOutputInfo(ref int pnAdapterIndex)
override void GetString(string pchSection, string pchSettingsKey, string pchValue, uint unValueLen, string pchDefaultValue, ref EVRSettingsError peError)
override EVRApplicationError LaunchDashboardOverlay(string pchAppKey)
override bool PollNextOverlayEvent(ulong ulOverlayHandle, ref VREvent_t pEvent, uint uncbVREvent)
override void SetBool(string pchSection, string pchSettingsKey, bool bValue, ref EVRSettingsError peError)
override EVROverlayError GetTransformForOverlayCoordinates(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, ref HmdMatrix34_t pmatTransform)
override bool ReleaseVideoStreamFrame(uint nDeviceIndex, ref CameraVideoStreamFrame_t pFrameImage)
override void ClearLastSubmittedFrame()
CVRChaperone(IntPtr VRChaperone)
static IntPtr GetGenericInterface(string pchInterfaceVersion, ref EVRInitError peError)
override EVROverlayError ShowKeyboardForOverlay(ulong ulOverlayHandle, int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText, bool bUseMinimalMode, ulong uUserValue)
HmdMatrix34_t mTrackingToComponentLocal
override EVROverlayError ClearOverlayTexture(ulong ulOverlayHandle)
override EVRApplicationError GetApplicationKeyByProcessId(uint unProcessId, string pchAppKeyBuffer, uint unAppKeyBufferLen)
override void SetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose)
override IntPtr GetIntPtr()
override HiddenAreaMesh_t GetHiddenAreaMesh(EVREye eEye)
override float GetFloatTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError)
override uint DriverDebugRequest(uint unDeviceIndex, string pchRequest, string pchResponseBuffer, uint unResponseBufferSize)
override void SetTrackingSpace(ETrackingUniverseOrigin eOrigin)
override bool AreBoundsVisible()
override EVROverlayError SetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, uint unTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform)
override EVROverlayError GetOverlayAlpha(ulong ulOverlayHandle, ref float pfAlpha)
override string GetApplicationsErrorNameFromEnum(EVRApplicationError error)
override void RemoveSection(string pchSection, ref EVRSettingsError peError)
float m_flClientFrameIntervalMs
override EVROverlayError GetOverlayImageData(ulong ulOverlayHandle, IntPtr pvBuffer, uint unBufferSize, ref uint punWidth, ref uint punHeight)
override bool PauseVideoStream(uint nDeviceIndex)
override EVRApplicationError IdentifyApplication(uint unProcessId, string pchAppKey)
override EVROverlayError SetOverlayTransformAbsolute(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform)
override void FreeRenderModel(IntPtr pRenderModel)