Skip to content

Commit d645dba

Browse files
committed
OpenVR SDK 0.9.20:
General: * Added VREvent_InputFocusChanged - This event is sent whenever input focus changes from one process to another. * Added VREvent_AudioSettingsHaveChanged - This event is sent whenever the user changes audio settings. * Added VREvent_ReprojectionSettingHasChanged - This event is sent when the user turns interleaved reprojection on or off. * Added VRInitError_Compositor_FirmwareRequiresUpdate - This error code will be returned by the compositor when there is a mandatory firmware update pending. IVRCompositor: * Compositor_FrameTiming now contains m_nReprojectionFlags. This will be 0 or more of: . VRCompositor_ReprojectionReason_Cpu . VRCompositor_ReprojectionReason_Gpu * Added ForceReconnectProcess. Call this to force a disconnect and reconnect to the compositor. * Added SuspendRendering. Call this when you know your process isn't going to render frames for a while. This often happens while loading new maps. IVROverlay: * Added overlay flag VROverlayFlags_TransferOwnershipToInternalProcess. This flag causes overlays owned by one process to be transferred to the new process spawned by a call to IVRApplications::LaunchInternalProcess. This can be useful for smoothing over such transitions from the user's point of view. Driver Interface: * Added VREvent_DriverRequestedQuit - A driver can post this event to ask the system to shut down. * Added IVRDisplayComponent:: GetNextSwapTextureSetIndex to retrieve the index in the texture set to use for the next frame's render targets. * Changed IVRDisplayComponet:: CreateSwapTextureSet to create three textures to allow a slightly longer round-robin list. NOTE: As of SDK 0.9.20 the driver interfaces will remain backward-compatible indefinitely. Future runtime changes will not break the ability to load drivers built against at least SDK 0.9.20. [git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 3426544]
1 parent a6c91ef commit d645dba

File tree

273 files changed

+28423
-2316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+28423
-2316
lines changed

bin/linux64/libopenvr_api.so

8.63 KB
Binary file not shown.

bin/linux64/libopenvr_api.so.dbg

89.1 KB
Binary file not shown.

bin/osx32/libopenvr_api.dylib

13.2 KB
Binary file not shown.
Binary file not shown.

bin/win32/openvr_api.dll

2.5 KB
Binary file not shown.

bin/win32/openvr_api.pdb

-464 KB
Binary file not shown.

bin/win64/openvr_api.dll

3.5 KB
Binary file not shown.

bin/win64/openvr_api.pdb

-424 KB
Binary file not shown.

headers/openvr.h

+110-50
Large diffs are not rendered by default.

headers/openvr_api.cs

+63-4
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,16 @@ public struct IVRCompositor
670670
[MarshalAs(UnmanagedType.FunctionPtr)]
671671
internal _ForceInterleavedReprojectionOn ForceInterleavedReprojectionOn;
672672

673+
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
674+
internal delegate void _ForceReconnectProcess();
675+
[MarshalAs(UnmanagedType.FunctionPtr)]
676+
internal _ForceReconnectProcess ForceReconnectProcess;
677+
678+
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
679+
internal delegate void _SuspendRendering(bool bSuspend);
680+
[MarshalAs(UnmanagedType.FunctionPtr)]
681+
internal _SuspendRendering SuspendRendering;
682+
673683
}
674684

675685
[StructLayout(LayoutKind.Sequential)]
@@ -1859,6 +1869,14 @@ public void ForceInterleavedReprojectionOn(bool bOverride)
18591869
{
18601870
FnTable.ForceInterleavedReprojectionOn(bOverride);
18611871
}
1872+
public void ForceReconnectProcess()
1873+
{
1874+
FnTable.ForceReconnectProcess();
1875+
}
1876+
public void SuspendRendering(bool bSuspend)
1877+
{
1878+
FnTable.SuspendRendering(bSuspend);
1879+
}
18621880
}
18631881

18641882

@@ -2487,6 +2505,8 @@ public enum ETrackedDeviceProperty
24872505
Prop_Firmware_ProgrammingTarget_String = 1028,
24882506
Prop_DeviceClass_Int32 = 1029,
24892507
Prop_HasCamera_Bool = 1030,
2508+
Prop_DriverVersion_String = 1031,
2509+
Prop_Firmware_ForceUpdateRequired_Bool = 1032,
24902510
Prop_ReportsTimeSinceVSync_Bool = 2000,
24912511
Prop_SecondsFromVsyncToPhotons_Float = 2001,
24922512
Prop_DisplayFrequency_Float = 2002,
@@ -2566,6 +2586,7 @@ public enum EVRState
25662586
Ready = 3,
25672587
Ready_Alert = 4,
25682588
NotReady = 5,
2589+
Standby = 6,
25692590
}
25702591
public enum EVREventType
25712592
{
@@ -2596,6 +2617,7 @@ public enum EVREventType
25962617
VREvent_SceneFocusGained = 403,
25972618
VREvent_SceneApplicationChanged = 404,
25982619
VREvent_SceneFocusChanged = 405,
2620+
VREvent_InputFocusChanged = 406,
25992621
VREvent_HideRenderModels = 410,
26002622
VREvent_ShowRenderModels = 411,
26012623
VREvent_OverlayShown = 500,
@@ -2612,6 +2634,8 @@ public enum EVREventType
26122634
VREvent_OverlayGamepadFocusGained = 511,
26132635
VREvent_OverlayGamepadFocusLost = 512,
26142636
VREvent_OverlaySharedTextureChanged = 513,
2637+
VREvent_DashboardGuideButtonDown = 514,
2638+
VREvent_DashboardGuideButtonUp = 515,
26152639
VREvent_Notification_Shown = 600,
26162640
VREvent_Notification_Hidden = 601,
26172641
VREvent_Notification_BeginInteraction = 602,
@@ -2620,13 +2644,16 @@ public enum EVREventType
26202644
VREvent_ProcessQuit = 701,
26212645
VREvent_QuitAborted_UserPrompt = 702,
26222646
VREvent_QuitAcknowledged = 703,
2647+
VREvent_DriverRequestedQuit = 704,
26232648
VREvent_ChaperoneDataHasChanged = 800,
26242649
VREvent_ChaperoneUniverseHasChanged = 801,
26252650
VREvent_ChaperoneTempDataHasChanged = 802,
26262651
VREvent_ChaperoneSettingsHaveChanged = 803,
26272652
VREvent_SeatedZeroPoseReset = 804,
2653+
VREvent_AudioSettingsHaveChanged = 820,
26282654
VREvent_BackgroundSettingHasChanged = 850,
26292655
VREvent_CameraSettingsHaveChanged = 851,
2656+
VREvent_ReprojectionSettingHasChanged = 852,
26302657
VREvent_StatusUpdate = 900,
26312658
VREvent_MCImageUpdated = 1000,
26322659
VREvent_FirmwareUpdateStarted = 1100,
@@ -2735,6 +2762,7 @@ public enum EVRApplicationType
27352762
VRApplication_Overlay = 2,
27362763
VRApplication_Background = 3,
27372764
VRApplication_Utility = 4,
2765+
VRApplication_VRMonitor = 5,
27382766
}
27392767
public enum EVRFirmwareError
27402768
{
@@ -2777,6 +2805,7 @@ public enum EVRInitError
27772805
Init_NoServerForBackgroundApp = 121,
27782806
Init_NotSupportedWithCompositor = 122,
27792807
Init_NotAvailableToUtilityApps = 123,
2808+
Init_Internal = 124,
27802809
Driver_Failed = 200,
27812810
Driver_Unknown = 201,
27822811
Driver_HmdUnknown = 202,
@@ -2794,6 +2823,7 @@ public enum EVRInitError
27942823
IPC_Failed = 305,
27952824
Compositor_Failed = 400,
27962825
Compositor_D3D11HardwareRequired = 401,
2826+
Compositor_FirmwareRequiresUpdate = 402,
27972827
VendorSpecific_UnableToConnectToOculusRuntime = 1000,
27982828
VendorSpecific_HmdFound_CantOpenDevice = 1101,
27992829
VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102,
@@ -2831,6 +2861,7 @@ public enum EVRApplicationError
28312861
BufferTooSmall = 200,
28322862
PropertyNotSet = 201,
28332863
UnknownProperty = 202,
2864+
InvalidParameter = 203,
28342865
}
28352866
public enum EVRApplicationProperty
28362867
{
@@ -2913,6 +2944,7 @@ public enum VROverlayFlags
29132944
SendVRScrollEvents = 6,
29142945
SendVRTouchpadEvents = 7,
29152946
ShowTouchPadScrollWheel = 8,
2947+
TransferOwnershipToInternalProcess = 9,
29162948
}
29172949
public enum EGamepadTextInputMode
29182950
{
@@ -3158,8 +3190,7 @@ public enum EVRSettingsError
31583190
}
31593191
[StructLayout(LayoutKind.Sequential)] public struct VREvent_Keyboard_t
31603192
{
3161-
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
3162-
public string cNewInput; //char[8]
3193+
public byte cNewInput0,cNewInput1,cNewInput2,cNewInput3,cNewInput4,cNewInput5,cNewInput6,cNewInput7;
31633194
public ulong uUserValue;
31643195
}
31653196
[StructLayout(LayoutKind.Sequential)] public struct VREvent_Ipd_t
@@ -3261,6 +3292,7 @@ public enum EVRSettingsError
32613292
public float m_flCompositorRenderStartMs;
32623293
public TrackedDevicePose_t m_HmdPose;
32633294
public int m_nFidelityLevel;
3295+
public uint m_nReprojectionFlags;
32643296
}
32653297
[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionParams_t
32663298
{
@@ -3384,7 +3416,7 @@ public static uint GetInitToken()
33843416
public const string IVRApplications_Version = "IVRApplications_005";
33853417
public const string IVRChaperone_Version = "IVRChaperone_003";
33863418
public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_005";
3387-
public const string IVRCompositor_Version = "IVRCompositor_013";
3419+
public const string IVRCompositor_Version = "IVRCompositor_014";
33883420
public const uint k_unVROverlayMaxKeyLength = 128;
33893421
public const uint k_unVROverlayMaxNameLength = 128;
33903422
public const uint k_unMaxOverlayCount = 32;
@@ -3398,6 +3430,7 @@ public static uint GetInitToken()
33983430
public const uint k_unNotificationTextMaxSize = 256;
33993431
public const string IVRNotifications_Version = "IVRNotifications_002";
34003432
public const uint k_unMaxSettingsKeyLength = 128;
3433+
public const string IVRSettings_Version = "IVRSettings_001";
34013434
public const string k_pch_SteamVR_Section = "steamvr";
34023435
public const string k_pch_SteamVR_RequireHmd_String = "requireHmd";
34033436
public const string k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver";
@@ -3424,6 +3457,8 @@ public static uint GetInitToken()
34243457
public const string k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
34253458
public const string k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement";
34263459
public const string k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses";
3460+
public const string k_pch_SteamVR_RenderTargetMultiplier_Float = "renderTargetMultiplier";
3461+
public const string k_pch_SteamVR_AllowReprojection_Bool = "allowReprojection";
34273462
public const string k_pch_Lighthouse_Section = "driver_lighthouse";
34283463
public const string k_pch_Lighthouse_DisableIMU_Bool = "disableimu";
34293464
public const string k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation";
@@ -3455,18 +3490,42 @@ public static uint GetInitToken()
34553490
public const string k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb";
34563491
public const string k_pch_Keyboard_Section = "keyboard";
34573492
public const string k_pch_Keyboard_TutorialCompletions = "TutorialCompletions";
3493+
public const string k_pch_Keyboard_ScaleX = "ScaleX";
3494+
public const string k_pch_Keyboard_ScaleY = "ScaleY";
3495+
public const string k_pch_Keyboard_OffsetLeftX = "OffsetLeftX";
3496+
public const string k_pch_Keyboard_OffsetRightX = "OffsetRightX";
3497+
public const string k_pch_Keyboard_OffsetY = "OffsetY";
3498+
public const string k_pch_Keyboard_Smoothing = "Smoothing";
34583499
public const string k_pch_Perf_Section = "perfcheck";
34593500
public const string k_pch_Perf_HeuristicActive_Bool = "heuristicActive";
34603501
public const string k_pch_Perf_NotifyInHMD_Bool = "warnInHMD";
34613502
public const string k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce";
34623503
public const string k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore";
34633504
public const string k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit";
34643505
public const string k_pch_Perf_TestData_Float = "perfTestData";
3506+
public const string k_pch_CollisionBounds_Section = "collisionBounds";
3507+
public const string k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle";
3508+
public const string k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn";
3509+
public const string k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn";
3510+
public const string k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn";
3511+
public const string k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance";
3512+
public const string k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR";
3513+
public const string k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG";
3514+
public const string k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB";
3515+
public const string k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA";
34653516
public const string k_pch_Camera_Section = "camera";
3466-
public const string IVRSettings_Version = "IVRSettings_001";
3517+
public const string k_pch_Camera_EnableCamera_Bool = "enableCamera";
3518+
public const string k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard";
3519+
public const string k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds";
3520+
public const string k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView";
3521+
public const string k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR";
3522+
public const string k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG";
3523+
public const string k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB";
3524+
public const string k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA";
34673525
public const string k_pch_audio_Section = "audio";
34683526
public const string k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice";
34693527
public const string k_pch_audio_OnRecordDevice_String = "onRecordDevice";
3528+
public const string k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice";
34703529
public const string k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice";
34713530
public const string k_pch_audio_OffRecordDevice_String = "offRecordDevice";
34723531
public const string k_pch_audio_VIVEHDMIGain = "viveHDMIGain";

0 commit comments

Comments
 (0)