@@ -73,9 +73,9 @@ typedef union
73
73
74
74
75
75
unsigned int k_unTrackingStringSize = 32 ;
76
- unsigned int k_unMaxTrackedDeviceCount = 16 ;
77
- unsigned int k_unTrackedDeviceIndex_Hmd = 0 ;
78
76
unsigned int k_unMaxDriverDebugResponseSize = 32768 ;
77
+ unsigned int k_unTrackedDeviceIndex_Hmd = 0 ;
78
+ unsigned int k_unMaxTrackedDeviceCount = 16 ;
79
79
unsigned int k_unTrackedDeviceIndexInvalid = 4294967295 ;
80
80
unsigned int k_unMaxPropertyStringSize = 32768 ;
81
81
unsigned int k_unControllerStateAxisCount = 5 ;
@@ -106,6 +106,7 @@ char * k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY";
106
106
char * k_pch_SteamVR_SendSystemButtonToAllApps_Bool = "sendSystemButtonToAllApps" ;
107
107
char * k_pch_SteamVR_LogLevel_Int32 = "loglevel" ;
108
108
char * k_pch_SteamVR_IPD_Float = "ipd" ;
109
+ char * k_pch_SteamVR_Background_String = "background" ;
109
110
char * k_pch_Lighthouse_Section = "driver_lighthouse" ;
110
111
char * k_pch_Lighthouse_DisableIMU_Bool = "disableimu" ;
111
112
char * k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation" ;
@@ -134,6 +135,12 @@ char * k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons";
134
135
char * k_pch_Null_DisplayFrequency_Float = "displayFrequency" ;
135
136
char * k_pch_Notifications_Section = "notifications" ;
136
137
char * k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb" ;
138
+ char * k_pch_Perf_Section = "perfcheck" ;
139
+ char * k_pch_Perf_HeuristicActive_Bool = "heuristicActive" ;
140
+ char * k_pch_Perf_NotifyInHMD_Bool = "notifyInHMD" ;
141
+ char * k_pch_Perf_NotifyOnlyOnce_Bool = "notifyOnlyOnce" ;
142
+ char * k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore" ;
143
+ char * k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit" ;
137
144
char * IVRSettings_Version = "IVRSettings_001" ;
138
145
char * IVRCameraAccess_Version = "IVRCameraAccess_001" ;
139
146
char * IVRChaperoneSetup_Version = "IVRChaperoneSetup_002" ;
@@ -194,6 +201,7 @@ typedef enum TrackedDeviceProperty
194
201
TrackedDeviceProperty_Prop_VRCVersion_Uint64 = 1020 ,
195
202
TrackedDeviceProperty_Prop_RadioVersion_Uint64 = 1021 ,
196
203
TrackedDeviceProperty_Prop_DongleVersion_Uint64 = 1022 ,
204
+ TrackedDeviceProperty_Prop_BlockServerShutdown_Bool = 1023 ,
197
205
TrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool = 2000 ,
198
206
TrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float = 2001 ,
199
207
TrackedDeviceProperty_Prop_DisplayFrequency_Float = 2002 ,
@@ -205,6 +213,10 @@ typedef enum TrackedDeviceProperty
205
213
TrackedDeviceProperty_Prop_DisplayMCType_Int32 = 2008 ,
206
214
TrackedDeviceProperty_Prop_DisplayMCOffset_Float = 2009 ,
207
215
TrackedDeviceProperty_Prop_DisplayMCScale_Float = 2010 ,
216
+ TrackedDeviceProperty_Prop_VendorID_Int32 = 2011 ,
217
+ TrackedDeviceProperty_Prop_DisplayMCImageLeft_String = 2012 ,
218
+ TrackedDeviceProperty_Prop_DisplayMCImageRight_String = 2013 ,
219
+ TrackedDeviceProperty_Prop_DisplayGCBlackClamp_Float = 2014 ,
208
220
TrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000 ,
209
221
TrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001 ,
210
222
TrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002 ,
@@ -245,13 +257,15 @@ typedef enum VRSubmitFlags_t
245
257
VRSubmitFlags_t_Submit_Default = 0 ,
246
258
VRSubmitFlags_t_Submit_LensDistortionAlreadyApplied = 1 ,
247
259
} ;
248
- typedef enum VRStatusState_t
249
- {
250
- VRStatusState_t_State_OK = 0 ,
251
- VRStatusState_t_State_Error = 1 ,
252
- VRStatusState_t_State_Warning = 2 ,
253
- VRStatusState_t_State_Undefined = 3 ,
254
- VRStatusState_t_State_NotSet = 4 ,
260
+ typedef enum VRState_t
261
+ {
262
+ VRState_t_VRState_Undefined = -1 ,
263
+ VRState_t_VRState_Off = 0 ,
264
+ VRState_t_VRState_Searching = 1 ,
265
+ VRState_t_VRState_Searching_Alert = 2 ,
266
+ VRState_t_VRState_Ready = 3 ,
267
+ VRState_t_VRState_Ready_Alert = 4 ,
268
+ VRState_t_VRState_NotReady = 5 ,
255
269
} ;
256
270
typedef enum EVREventType
257
271
{
@@ -275,6 +289,7 @@ typedef enum EVREventType
275
289
EVREventType_VREvent_SceneFocusLost = 402 ,
276
290
EVREventType_VREvent_SceneFocusGained = 403 ,
277
291
EVREventType_VREvent_SceneApplicationChanged = 404 ,
292
+ EVREventType_VREvent_SceneFocusChanged = 405 ,
278
293
EVREventType_VREvent_OverlayShown = 500 ,
279
294
EVREventType_VREvent_OverlayHidden = 501 ,
280
295
EVREventType_VREvent_DashboardActivated = 502 ,
@@ -284,6 +299,7 @@ typedef enum EVREventType
284
299
EVREventType_VREvent_ResetDashboard = 506 ,
285
300
EVREventType_VREvent_RenderToast = 507 ,
286
301
EVREventType_VREvent_ImageLoaded = 508 ,
302
+ EVREventType_VREvent_ShowKeyboard = 509 ,
287
303
EVREventType_VREvent_Notification_Show = 600 ,
288
304
EVREventType_VREvent_Notification_Dismissed = 601 ,
289
305
EVREventType_VREvent_Notification_BeginInteraction = 602 ,
@@ -296,6 +312,11 @@ typedef enum EVREventType
296
312
EVREventType_VREvent_MCImageUpdated = 1000 ,
297
313
EVREventType_VREvent_FirmwareUpdateStarted = 1100 ,
298
314
EVREventType_VREvent_FirmwareUpdateFinished = 1101 ,
315
+ EVREventType_VREvent_KeyboardClosed = 1200 ,
316
+ EVREventType_VREvent_KeyboardCharInput = 1201 ,
317
+ EVREventType_VREvent_ApplicationTransitionStarted = 1300 ,
318
+ EVREventType_VREvent_ApplicationTransitionAborted = 1301 ,
319
+ EVREventType_VREvent_ApplicationTransitionNewAppStarted = 1302 ,
299
320
} ;
300
321
typedef enum EDeviceActivityLevel
301
322
{
@@ -309,13 +330,19 @@ typedef enum EVRButtonId
309
330
EVRButtonId_k_EButton_System = 0 ,
310
331
EVRButtonId_k_EButton_ApplicationMenu = 1 ,
311
332
EVRButtonId_k_EButton_Grip = 2 ,
333
+ EVRButtonId_k_EButton_DPad_Left = 3 ,
334
+ EVRButtonId_k_EButton_DPad_Up = 4 ,
335
+ EVRButtonId_k_EButton_DPad_Right = 5 ,
336
+ EVRButtonId_k_EButton_DPad_Down = 6 ,
337
+ EVRButtonId_k_EButton_A = 7 ,
312
338
EVRButtonId_k_EButton_Axis0 = 32 ,
313
339
EVRButtonId_k_EButton_Axis1 = 33 ,
314
340
EVRButtonId_k_EButton_Axis2 = 34 ,
315
341
EVRButtonId_k_EButton_Axis3 = 35 ,
316
342
EVRButtonId_k_EButton_Axis4 = 36 ,
317
343
EVRButtonId_k_EButton_SteamVR_Touchpad = 32 ,
318
344
EVRButtonId_k_EButton_SteamVR_Trigger = 33 ,
345
+ EVRButtonId_k_EButton_Dashboard_Back = 2 ,
319
346
EVRButtonId_k_EButton_Max = 64 ,
320
347
} ;
321
348
typedef enum EVRMouseButton
@@ -355,6 +382,7 @@ typedef enum VROverlayError
355
382
VROverlayError_RequestFailed = 23 ,
356
383
VROverlayError_InvalidTexture = 24 ,
357
384
VROverlayError_UnableToLoadFile = 25 ,
385
+ VROverlayError_VROVerlayError_KeyboardAlreadyInUse = 26 ,
358
386
} ;
359
387
typedef enum EVRApplicationType
360
388
{
@@ -391,6 +419,7 @@ typedef enum HmdError
391
419
HmdError_Init_InitCanceledByUser = 116 ,
392
420
HmdError_Init_AnotherAppLaunching = 117 ,
393
421
HmdError_Init_SettingsInitFailed = 118 ,
422
+ HmdError_Init_ShuttingDown = 119 ,
394
423
HmdError_Driver_Failed = 200 ,
395
424
HmdError_Driver_Unknown = 201 ,
396
425
HmdError_Driver_HmdUnknown = 202 ,
@@ -413,6 +442,11 @@ typedef enum HmdError
413
442
HmdError_VendorSpecific_HmdFound_ConfigTooSmall = 1105 ,
414
443
HmdError_VendorSpecific_HmdFound_UnableToInitZLib = 1106 ,
415
444
HmdError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107 ,
445
+ HmdError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108 ,
446
+ HmdError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109 ,
447
+ HmdError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110 ,
448
+ HmdError_VendorSpecific_HmdFound_UserDataAddressRange = 1111 ,
449
+ HmdError_VendorSpecific_HmdFound_UserDataError = 1112 ,
416
450
HmdError_Steam_SteamInstallationNotFound = 2000 ,
417
451
} ;
418
452
typedef enum EVRApplicationError
@@ -428,6 +462,9 @@ typedef enum EVRApplicationError
428
462
EVRApplicationError_VRApplicationError_InvalidManifest = 107 ,
429
463
EVRApplicationError_VRApplicationError_InvalidApplication = 108 ,
430
464
EVRApplicationError_VRApplicationError_LaunchFailed = 109 ,
465
+ EVRApplicationError_VRApplicationError_ApplicationAlreadyStarting = 110 ,
466
+ EVRApplicationError_VRApplicationError_LaunchInProgress = 111 ,
467
+ EVRApplicationError_VRApplicationError_OldApplicationQuitting = 112 ,
431
468
EVRApplicationError_VRApplicationError_BufferTooSmall = 200 ,
432
469
EVRApplicationError_VRApplicationError_PropertyNotSet = 201 ,
433
470
EVRApplicationError_VRApplicationError_UnknownProperty = 202 ,
@@ -446,6 +483,12 @@ typedef enum EVRApplicationProperty
446
483
EVRApplicationProperty_VRApplicationProperty_Source_String = 53 ,
447
484
EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool = 60 ,
448
485
} ;
486
+ typedef enum EVRApplicationTransitionState
487
+ {
488
+ EVRApplicationTransitionState_VRApplicationTransition_None = 0 ,
489
+ EVRApplicationTransitionState_VRApplicationTransition_OldAppQuitSent = 10 ,
490
+ EVRApplicationTransitionState_VRApplicationTransition_NewAppLaunched = 20 ,
491
+ } ;
449
492
typedef enum ChaperoneCalibrationState
450
493
{
451
494
ChaperoneCalibrationState_OK = 1 ,
@@ -485,6 +528,16 @@ typedef enum VROverlayFlags
485
528
VROverlayFlags_RGSS4X = 2 ,
486
529
VROverlayFlags_NoDashboardTab = 3 ,
487
530
} ;
531
+ typedef enum EGamepadTextInputMode
532
+ {
533
+ EGamepadTextInputMode_k_EGamepadTextInputModeNormal = 0 ,
534
+ EGamepadTextInputMode_k_EGamepadTextInputModePassword = 1 ,
535
+ } ;
536
+ typedef enum EGamepadTextInputLineMode
537
+ {
538
+ EGamepadTextInputLineMode_k_EGamepadTextInputLineModeSingleLine = 0 ,
539
+ EGamepadTextInputLineMode_k_EGamepadTextInputLineModeMultipleLines = 1 ,
540
+ } ;
488
541
typedef enum NotificationError_t
489
542
{
490
543
NotificationError_t_k_ENotificationError_OK = 0 ,
@@ -740,6 +793,8 @@ S_API void VR_IVRSystem_ReleaseInputFocus(intptr_t instancePtr);
740
793
S_API bool VR_IVRSystem_IsInputFocusCapturedByAnotherProcess (intptr_t instancePtr );
741
794
S_API uint32_t VR_IVRSystem_DriverDebugRequest (intptr_t instancePtr , TrackedDeviceIndex_t unDeviceIndex , const char * pchRequest , char * pchResponseBuffer , uint32_t unResponseBufferSize );
742
795
S_API VRFirmwareError VR_IVRSystem_PerformFirmwareUpdate (intptr_t instancePtr , TrackedDeviceIndex_t unDeviceIndex );
796
+ S_API bool VR_IVRSystem_IsDisplayOnDesktop (intptr_t instancePtr );
797
+ S_API bool VR_IVRSystem_SetDisplayVisibility (intptr_t instancePtr , bool bIsVisibleOnDesktop );
743
798
S_API EVRApplicationError VR_IVRApplications_AddApplicationManifest (intptr_t instancePtr , const char * pchApplicationManifestFullPath , bool bTemporary );
744
799
S_API EVRApplicationError VR_IVRApplications_RemoveApplicationManifest (intptr_t instancePtr , const char * pchApplicationManifestFullPath );
745
800
S_API bool VR_IVRApplications_IsApplicationInstalled (intptr_t instancePtr , const char * pchAppKey );
@@ -757,6 +812,10 @@ S_API EVRApplicationError VR_IVRApplications_GetHomeApplication(intptr_t instanc
757
812
S_API EVRApplicationError VR_IVRApplications_SetHomeApplication (intptr_t instancePtr , const char * pchAppKey );
758
813
S_API EVRApplicationError VR_IVRApplications_SetApplicationAutoLaunch (intptr_t instancePtr , const char * pchAppKey , bool bAutoLaunch );
759
814
S_API bool VR_IVRApplications_GetApplicationAutoLaunch (intptr_t instancePtr , const char * pchAppKey );
815
+ S_API EVRApplicationError VR_IVRApplications_GetStartingApplication (intptr_t instancePtr , char * pchAppKeyBuffer , uint32_t unAppKeyBufferLen );
816
+ S_API EVRApplicationTransitionState VR_IVRApplications_GetTransitionState (intptr_t instancePtr );
817
+ S_API EVRApplicationError VR_IVRApplications_PerformApplicationPrelaunchCheck (intptr_t instancePtr , const char * pchAppKey );
818
+ S_API char * VR_IVRApplications_GetApplicationsTransitionStateNameFromEnum (intptr_t instancePtr , EVRApplicationTransitionState state );
760
819
S_API ChaperoneCalibrationState VR_IVRChaperone_GetCalibrationState (intptr_t instancePtr );
761
820
S_API bool VR_IVRChaperone_GetSoftBoundsInfo (intptr_t instancePtr , struct ChaperoneSoftBoundsInfo_t * pInfo );
762
821
S_API bool VR_IVRChaperone_GetHardBoundsInfo (intptr_t instancePtr , struct HmdQuad_t * pQuadsBuffer , uint32_t * punQuadsCount );
@@ -787,6 +846,11 @@ S_API void VR_IVRCompositor_SetTrackingSpace(intptr_t instancePtr, TrackingUnive
787
846
S_API TrackingUniverseOrigin VR_IVRCompositor_GetTrackingSpace (intptr_t instancePtr );
788
847
S_API uint32_t VR_IVRCompositor_GetCurrentSceneFocusProcess (intptr_t instancePtr );
789
848
S_API bool VR_IVRCompositor_CanRenderScene (intptr_t instancePtr );
849
+ S_API void VR_IVRCompositor_ShowMirrorWindow (intptr_t instancePtr );
850
+ S_API void VR_IVRCompositor_HideMirrorWindow (intptr_t instancePtr );
851
+ S_API void VR_IVRCompositor_CompositorDumpImages (intptr_t instancePtr );
852
+ S_API float VR_IVRCompositor_GetFrameTimeRemaining (intptr_t instancePtr );
853
+ S_API uint32_t VR_IVRCompositor_GetLastFrameRenderer (intptr_t instancePtr );
790
854
S_API VROverlayError VR_IVROverlay_FindOverlay (intptr_t instancePtr , const char * pchOverlayKey , VROverlayHandle_t * pOverlayHandle );
791
855
S_API VROverlayError VR_IVROverlay_CreateOverlay (intptr_t instancePtr , const char * pchOverlayKey , const char * pchOverlayFriendlyName , VROverlayHandle_t * pOverlayHandle );
792
856
S_API VROverlayError VR_IVROverlay_DestroyOverlay (intptr_t instancePtr , VROverlayHandle_t ulOverlayHandle );
@@ -836,6 +900,9 @@ S_API bool VR_IVROverlay_IsActiveDashboardOverlay(intptr_t instancePtr, VROverla
836
900
S_API VROverlayError VR_IVROverlay_SetDashboardOverlaySceneProcess (intptr_t instancePtr , VROverlayHandle_t ulOverlayHandle , uint32_t unProcessId );
837
901
S_API VROverlayError VR_IVROverlay_GetDashboardOverlaySceneProcess (intptr_t instancePtr , VROverlayHandle_t ulOverlayHandle , uint32_t * punProcessId );
838
902
S_API void VR_IVROverlay_ShowDashboard (intptr_t instancePtr , const char * pchOverlayToShow );
903
+ S_API VROverlayError VR_IVROverlay_ShowKeyboard (intptr_t instancePtr , EGamepadTextInputMode eInputMode , EGamepadTextInputLineMode eLineInputMode , const char * pchDescription , uint32_t unCharMax , const char * pchExistingText , bool bUseMinimalMode );
904
+ S_API uint32_t VR_IVROverlay_GetKeyboardText (intptr_t instancePtr , char * pchText , uint32_t cchText );
905
+ S_API void VR_IVROverlay_HideKeyboard (intptr_t instancePtr );
839
906
S_API bool VR_IVRRenderModels_LoadRenderModel (intptr_t instancePtr , const char * pchRenderModelName , struct RenderModel_t * pRenderModel );
840
907
S_API void VR_IVRRenderModels_FreeRenderModel (intptr_t instancePtr , struct RenderModel_t * pRenderModel );
841
908
S_API uint32_t VR_IVRRenderModels_GetRenderModelName (intptr_t instancePtr , uint32_t unRenderModelIndex , char * pchRenderModelName , uint32_t unRenderModelNameLen );
0 commit comments