Skip to content

Commit 176b58f

Browse files
committed
**OpenVR SDK 1.8.19**
Properties: * Added Prop_DashboardScale_Float. Each headset has the opportunity to provide a scale for 'comfortable dashboard UI legibility'. For reference, Vive is 1.0 scale and Index is 0.75 scale. * Added Prop_IpdUIRangeMinMeters_Float, Prop_IpdUIRangeMaxMeters_Float to control the IPD user interface range, in-headset. * Added Prop_Audio_DefaultPlaybackDeviceId_String, Prop_Audio_DefaultRecordingDeviceId_String for HMDs to provide identifiers for associated audio playback and recording devices. On Windows these are Endpoint ID Strings. * Added Prop_Audio_DefaultPlaybackDeviceVolume_Float for HMDs to specify a default volume level which will be set the first time the HMDs associated audio playback device is selected. Prop_Audio_DefaultPlaybackDeviceId_String must also be set. The volume range is 0 to 1. IVRApplications: * Added GetSceneApplicationState(), which returns the running application state ( None, Starting, Quitting, Running, etc). See VREvent_SceneApplicationStateChanged * Removed GetTransitionState() * Removed IsQuitUserPromptRequested() IVRSystem: * Removed AcknowledgeQuit_UserPrompt(). "Prompt user on quit" functionality is no longer supported. IVROverlay: * Added VROverlayFlags_HideLaserIntersection - This causes the laser mouse to not draw the intersection blob for this overlay. The overlay is responsible for drawing its own cursor, if appropriate. * Added support for rendering overlays as gravity aligned curved surfaces. See new Set/GetOverlayCurvature definitions for details. * Removed gamepad support in overlays. This includes GetGamepadFocusOverlay(), SetGamepadFocusOverlay(), SetOverlayNeighbor(), and MoveGamepadFocusToNeighbor(). Going forward gamepads will be supported via lasermouse instead of with these custom calls. IVRInput: * Added OpenBindingUI - This function opens the binding user interface. Events: * Added VREvent_SceneApplicationStateChanged * Removed VREvent_SceneFocusLost, VREvent_SceneFocusGained, VREvent_SceneApplicationSecondaryRenderingStarted, VREvent_ApplicationTransition{*} * Removed VREvent_QuitAborted_UserPrompt [git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 5469045]
1 parent 4864a54 commit 176b58f

29 files changed

+433
-445
lines changed

bin/linux32/empty.dir

Whitespace-only changes.

bin/linux32/libopenvr_api.so

4 KB
Binary file not shown.

bin/linux32/libopenvr_api.so.dbg

5.26 KB
Binary file not shown.

bin/linux64/libopenvr_api.so

0 Bytes
Binary file not shown.

bin/linux64/libopenvr_api.so.dbg

1.53 KB
Binary file not shown.

bin/osx32/libopenvr_api.dylib

0 Bytes
Binary file not shown.

bin/win32/openvr_api.dll

1 KB
Binary file not shown.

bin/win32/openvr_api.dll.sig

1.42 KB
Binary file not shown.

bin/win32/openvr_api.pdb

0 Bytes
Binary file not shown.

bin/win64/openvr_api.dll

512 Bytes
Binary file not shown.

bin/win64/openvr_api.dll.sig

1.42 KB
Binary file not shown.

bin/win64/openvr_api.pdb

0 Bytes
Binary file not shown.

headers/openvr.h

+85-101
Large diffs are not rendered by default.

headers/openvr_api.cs

+138-132
Large diffs are not rendered by default.

headers/openvr_api.json

+84-111
Large diffs are not rendered by default.

headers/openvr_capi.h

+59-66
Large diffs are not rendered by default.

headers/openvr_driver.h

+42-23
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
namespace vr
1616
{
1717
static const uint32_t k_nSteamVRVersionMajor = 1;
18-
static const uint32_t k_nSteamVRVersionMinor = 7;
19-
static const uint32_t k_nSteamVRVersionBuild = 15;
18+
static const uint32_t k_nSteamVRVersionMinor = 8;
19+
static const uint32_t k_nSteamVRVersionBuild = 19;
2020
} // namespace vr
2121

2222
// vrtypes.h
@@ -440,7 +440,10 @@ enum ETrackedDeviceProperty
440440
Prop_DisplayColorMultLeft_Vector3 = 2082,
441441
Prop_DisplayColorMultRight_Vector3 = 2083,
442442

443-
Prop_DashboardLayoutPathName_String = 2090,
443+
Prop_DashboardLayoutPathName_String = 2090,
444+
Prop_DashboardScale_Float = 2091,
445+
Prop_IpdUIRangeMinMeters_Float = 2100,
446+
Prop_IpdUIRangeMaxMeters_Float = 2101,
444447

445448
// Driver requested mura correction properties
446449
Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200,
@@ -453,6 +456,10 @@ enum ETrackedDeviceProperty
453456
Prop_DriverRequestedMuraFeather_OuterTop_Int32 = 2207,
454457
Prop_DriverRequestedMuraFeather_OuterBottom_Int32 = 2208,
455458

459+
Prop_Audio_DefaultPlaybackDeviceId_String = 2300,
460+
Prop_Audio_DefaultRecordingDeviceId_String = 2301,
461+
Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
462+
456463
// Properties that are unique to TrackedDeviceClass_Controller
457464
Prop_AttachedDeviceId_String = 3000,
458465
Prop_SupportedButtons_Uint64 = 3001,
@@ -696,18 +703,20 @@ enum EVREventType
696703

697704
VREvent_InputFocusCaptured = 400, // data is process DEPRECATED
698705
VREvent_InputFocusReleased = 401, // data is process DEPRECATED
699-
VREvent_SceneFocusLost = 402, // data is process
700-
VREvent_SceneFocusGained = 403, // data is process
706+
// VREvent_SceneFocusLost = 402, // data is process
707+
// VREvent_SceneFocusGained = 403, // data is process
701708
VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor)
702709
VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene
703710
VREvent_InputFocusChanged = 406, // data is process
704-
VREvent_SceneApplicationSecondaryRenderingStarted = 407, // data is process
711+
// VREvent_SceneApplicationSecondaryRenderingStarted = 407,
705712
VREvent_SceneApplicationUsingWrongGraphicsAdapter = 408, // data is process
706713
VREvent_ActionBindingReloaded = 409, // data is process - The App that action binds reloaded for
707714

708715
VREvent_HideRenderModels = 410, // Sent to the scene application to request hiding render models temporarily
709716
VREvent_ShowRenderModels = 411, // Sent to the scene application to request restoring render model visibility
710717

718+
VREvent_SceneApplicationStateChanged = 412, // No data; but query VRApplications()->GetSceneApplicationState();
719+
711720
VREvent_ConsoleOpened = 420,
712721
VREvent_ConsoleClosed = 421,
713722

@@ -752,7 +761,7 @@ enum EVREventType
752761

753762
VREvent_Quit = 700, // data is process
754763
VREvent_ProcessQuit = 701, // data is process
755-
VREvent_QuitAborted_UserPrompt = 702, // data is process
764+
//VREvent_QuitAborted_UserPrompt = 702, // data is process
756765
VREvent_QuitAcknowledged = 703, // data is process
757766
VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down
758767
VREvent_RestartRequested = 705, // A driver or other component wants the user to restart SteamVR
@@ -801,12 +810,12 @@ enum EVREventType
801810
VREvent_KeyboardCharInput = 1201,
802811
VREvent_KeyboardDone = 1202, // Sent when DONE button clicked on keyboard
803812

804-
VREvent_ApplicationTransitionStarted = 1300,
805-
VREvent_ApplicationTransitionAborted = 1301,
806-
VREvent_ApplicationTransitionNewAppStarted = 1302,
813+
//VREvent_ApplicationTransitionStarted = 1300,
814+
//VREvent_ApplicationTransitionAborted = 1301,
815+
//VREvent_ApplicationTransitionNewAppStarted = 1302,
807816
VREvent_ApplicationListUpdated = 1303,
808817
VREvent_ApplicationMimeTypeLoad = 1304,
809-
VREvent_ApplicationTransitionNewAppLaunchComplete = 1305,
818+
// VREvent_ApplicationTransitionNewAppLaunchComplete = 1305,
810819
VREvent_ProcessConnected = 1306,
811820
VREvent_ProcessDisconnected = 1307,
812821

@@ -820,6 +829,7 @@ enum EVREventType
820829
VREvent_Compositor_ApplicationNotResponding = 1415,
821830
VREvent_Compositor_ApplicationResumed = 1416,
822831
VREvent_Compositor_OutOfVideoMemory = 1417,
832+
VREvent_Compositor_DisplayModeNotSupported = 1418, // k_pch_SteamVR_PreferredRefreshRate
823833

824834
VREvent_TrackedCamera_StartVideoStream = 1500,
825835
VREvent_TrackedCamera_StopVideoStream = 1501,
@@ -871,6 +881,7 @@ enum EDeviceActivityLevel
871881
k_EDeviceActivityLevel_UserInteraction = 1, // Activity (movement or prox sensor) is happening now
872882
k_EDeviceActivityLevel_UserInteraction_Timeout = 2, // No activity for the last 0.5 seconds
873883
k_EDeviceActivityLevel_Standby = 3, // Idle for at least 5 seconds (configurable in Settings -> Power Management)
884+
k_EDeviceActivityLevel_Idle_Timeout = 4,
874885
};
875886

876887

@@ -1537,6 +1548,7 @@ enum EVRInitError
15371548
VRInitError_Init_AlreadyRunning = 143,
15381549
VRInitError_Init_FailedForVrMonitor = 144,
15391550
VRInitError_Init_PropertyManagerInitFailed = 145,
1551+
VRInitError_Init_WebServerFailed = 146,
15401552

15411553
VRInitError_Driver_Failed = 200,
15421554
VRInitError_Driver_Unknown = 201,
@@ -1653,6 +1665,7 @@ enum EVRInitError
16531665
VRInitError_Compositor_CreateLastFrameRenderTexture = 484,
16541666
VRInitError_Compositor_CreateMirrorOverlay = 485,
16551667
VRInitError_Compositor_FailedToCreateVirtualDisplayBackbuffer = 486,
1668+
VRInitError_Compositor_DisplayModeNotSupported = 487,
16561669

16571670
VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000,
16581671
VRInitError_VendorSpecific_WindowsNotInDevMode = 1001,
@@ -2184,16 +2197,19 @@ namespace vr
21842197
static const char * const k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius";
21852198
static const char * const k_pch_SteamVR_GridColor_String = "gridColor";
21862199
static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor";
2200+
static const char * const k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor";
21872201
static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage";
21882202
static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers";
21892203
static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers";
21902204
static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
21912205
static const char * const k_pch_SteamVR_BaseStationPowerManagement_Int32 = "basestationPowerManagement";
2206+
static const char * const k_pch_SteamVR_ShowBaseStationPowerManagementTip_Int32 = "ShowBaseStationPowerManagementTip";
21922207
static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses";
21932208
static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale";
21942209
static const char * const k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution";
21952210
static const char * const k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing";
21962211
static const char * const k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride";
2212+
static const char * const k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync";
21972213
static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking";
21982214
static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView";
21992215
static const char * const k_pch_SteamVR_ShowLegacyMirrorView_Bool = "showLegacyMirrorView";
@@ -2254,7 +2270,6 @@ namespace vr
22542270
static const char * const k_pch_Lighthouse_PowerManagedBaseStations2_String = "PowerManagedBaseStations2";
22552271
static const char * const k_pch_Lighthouse_InactivityTimeoutForBaseStations_Int32 = "InactivityTimeoutForBaseStations";
22562272
static const char * const k_pch_Lighthouse_EnableImuFallback_Bool = "enableImuFallback";
2257-
static const char * const k_pch_Lighthouse_NewPairing_Bool = "newPairing";
22582273

22592274
//-----------------------------------------------------------------------------
22602275
// null keys
@@ -2316,6 +2331,7 @@ namespace vr
23162331
static const char * const k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG";
23172332
static const char * const k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB";
23182333
static const char * const k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA";
2334+
static const char * const k_pch_CollisionBounds_EnableDriverImport = "enableDriverBoundsImport";
23192335

23202336
//-----------------------------------------------------------------------------
23212337
// camera keys
@@ -2334,11 +2350,19 @@ namespace vr
23342350
//-----------------------------------------------------------------------------
23352351
// audio keys
23362352
static const char * const k_pch_audio_Section = "audio";
2337-
static const char * const k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice";
2338-
static const char * const k_pch_audio_OnRecordDevice_String = "onRecordDevice";
2339-
static const char * const k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice";
2340-
static const char * const k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice";
2341-
static const char * const k_pch_audio_OffRecordDevice_String = "offRecordDevice";
2353+
static const char * const k_pch_audio_SetOsDefaultPlaybackDevice_Bool = "setOsDefaultPlaybackDevice";
2354+
static const char * const k_pch_audio_EnablePlaybackDeviceOverride_Bool = "enablePlaybackDeviceOverride";
2355+
static const char * const k_pch_audio_PlaybackDeviceOverride_String = "playbackDeviceOverride";
2356+
static const char * const k_pch_audio_PlaybackDeviceOverrideName_String = "playbackDeviceOverrideName";
2357+
static const char * const k_pch_audio_SetOsDefaultRecordingDevice_Bool = "setOsDefaultRecordingDevice";
2358+
static const char * const k_pch_audio_EnableRecordingDeviceOverride_Bool = "enableRecordingDeviceOverride";
2359+
static const char * const k_pch_audio_RecordingDeviceOverride_String = "recordingDeviceOverride";
2360+
static const char * const k_pch_audio_RecordingDeviceOverrideName_String = "recordingDeviceOverrideName";
2361+
static const char * const k_pch_audio_EnablePlaybackMirror_Bool = "enablePlaybackMirror";
2362+
static const char * const k_pch_audio_PlaybackMirrorDevice_String = "playbackMirrorDevice";
2363+
static const char * const k_pch_audio_PlaybackMirrorDeviceName_String = "playbackMirrorDeviceName";
2364+
static const char * const k_pch_audio_OldPlaybackMirrorDevice_String = "onPlaybackMirrorDevice";
2365+
static const char * const k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
23422366
static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
23432367

23442368
//-----------------------------------------------------------------------------
@@ -2356,11 +2380,8 @@ namespace vr
23562380
static const char * const k_pch_Dashboard_Section = "dashboard";
23572381
static const char * const k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard";
23582382
static const char * const k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode";
2359-
static const char * const k_pch_Dashboard_UseWebDashboard = "useWebDashboard";
2383+
static const char * const k_pch_Dashboard_UseWebKeyboard = "useWebKeyboard";
23602384
static const char * const k_pch_Dashboard_UseWebSettings = "useWebSettings";
2361-
static const char * const k_pch_Dashboard_UseWebIPD = "useWebIPD";
2362-
static const char * const k_pch_Dashboard_UseWebPowerMenu = "useWebPowerMenu";
2363-
static const char * const k_pch_Dashboard_UseWebNotifications = "useWebNotifications";
23642385

23652386
//-----------------------------------------------------------------------------
23662387
// model skin keys
@@ -2374,8 +2395,6 @@ namespace vr
23742395
//-----------------------------------------------------------------------------
23752396
// web interface keys
23762397
static const char* const k_pch_WebInterface_Section = "WebInterface";
2377-
static const char* const k_pch_WebInterface_WebEnable_Bool = "WebEnable";
2378-
static const char* const k_pch_WebInterface_WebPort_String = "WebPort";
23792398

23802399
//-----------------------------------------------------------------------------
23812400
// vrwebhelper keys

lib/linux32/libopenvr_api.so

5.26 KB
Binary file not shown.

lib/linux64/libopenvr_api.so

1.53 KB
Binary file not shown.

samples/bin/linux32/empty.dir

Whitespace-only changes.

samples/bin/linux32/libopenvr_api.so

4 KB
Binary file not shown.

samples/bin/linux64/libopenvr_api.so

0 Bytes
Binary file not shown.

samples/bin/osx32/libopenvr_api.dylib

24 Bytes
Binary file not shown.

samples/bin/win32/openvr_api.dll

1 KB
Binary file not shown.

samples/bin/win64/openvr_api.dll

512 Bytes
Binary file not shown.

src/openvr_api_public.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ EVRInitError VR_LoadHmdSystemInternal()
126126

127127
// Because we don't have a way to select debug vs. release yet we'll just
128128
// use debug if it's there
129-
#if defined( LINUX64 )
129+
#if defined( LINUX64 ) || defined( LINUXARM64 )
130130
std::string sTestPath = Path_Join( sRuntimePath, "bin", PLATSUBDIR );
131131
#else
132132
std::string sTestPath = Path_Join( sRuntimePath, "bin" );

src/vrcommon/hmderrors_public.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ const char *GetIDForVRInitError( vr::EVRInitError eError )
172172
RETURN_ENUM_AS_STRING( VRInitError_Init_AlreadyRunning );
173173
RETURN_ENUM_AS_STRING( VRInitError_Init_FailedForVrMonitor);
174174
RETURN_ENUM_AS_STRING( VRInitError_Init_PropertyManagerInitFailed );
175-
175+
RETURN_ENUM_AS_STRING( VRInitError_Init_WebServerFailed );
176+
176177
RETURN_ENUM_AS_STRING( VRInitError_Driver_Failed );
177178
RETURN_ENUM_AS_STRING( VRInitError_Driver_Unknown );
178179
RETURN_ENUM_AS_STRING( VRInitError_Driver_HmdUnknown);
@@ -287,6 +288,7 @@ const char *GetIDForVRInitError( vr::EVRInitError eError )
287288
RETURN_ENUM_AS_STRING( VRInitError_Compositor_CreateLastFrameRenderTexture );
288289
RETURN_ENUM_AS_STRING( VRInitError_Compositor_CreateMirrorOverlay );
289290
RETURN_ENUM_AS_STRING( VRInitError_Compositor_FailedToCreateVirtualDisplayBackbuffer );
291+
RETURN_ENUM_AS_STRING( VRInitError_Compositor_DisplayModeNotSupported );
290292

291293
// Vendor-specific errors
292294
RETURN_ENUM_AS_STRING( VRInitError_VendorSpecific_UnableToConnectToOculusRuntime);

src/vrcommon/pathtools_public.h

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ bool Path_UnlinkFile( const std::string &strFilename );
136136
#define PROGRAM_EXT ""
137137
#if defined( LINUX32 )
138138
#define PLATSUBDIR "linux32"
139+
#elif defined( ANDROIDARM64 )
140+
#define PLATSUBDIR "androidarm64"
141+
#elif defined( LINUXARM64 )
142+
#define PLATSUBDIR "linuxarm64"
139143
#else
140144
#define PLATSUBDIR "linux64"
141145
#endif

src/vrcommon/vrpathregistry_public.cpp

+17-10
Original file line numberDiff line numberDiff line change
@@ -231,18 +231,25 @@ bool CVRPathRegistry_Public::BLoadFromFile()
231231
Json::Value root;
232232
Json::Reader reader;
233233

234-
if( !reader.parse( sRegistryContents, root ) )
235-
{
236-
VRLog( "Unable to parse %s: %s\n", sRegPath.c_str(), reader.getFormattedErrorMessages().c_str() );
237-
return false;
238-
}
234+
try {
235+
if ( !reader.parse( sRegistryContents, root ) )
236+
{
237+
VRLog( "Unable to parse %s: %s\n", sRegPath.c_str(), reader.getFormattedErrorMessages().c_str() );
238+
return false;
239+
}
239240

240-
ParseStringListFromJson( &m_vecRuntimePath, root, "runtime" );
241-
ParseStringListFromJson( &m_vecConfigPath, root, "config" );
242-
ParseStringListFromJson( &m_vecLogPath, root, "log" );
243-
if (root.isMember( "external_drivers" ) && root[ "external_drivers" ].isArray() )
241+
ParseStringListFromJson( &m_vecRuntimePath, root, "runtime" );
242+
ParseStringListFromJson( &m_vecConfigPath, root, "config" );
243+
ParseStringListFromJson( &m_vecLogPath, root, "log" );
244+
if ( root.isMember( "external_drivers" ) && root["external_drivers"].isArray() )
245+
{
246+
ParseStringListFromJson( &m_vecExternalDrivers, root, "external_drivers" );
247+
}
248+
}
249+
catch ( ... )
244250
{
245-
ParseStringListFromJson( &m_vecExternalDrivers, root, "external_drivers" );
251+
VRLog( "Unable to parse %s: %s\n", sRegPath.c_str(), "exception thrown in JSON library" );
252+
return false;
246253
}
247254

248255
return true;

0 commit comments

Comments
 (0)