Skip to content

Commit

Permalink
OpenVR SDK 0.9.20:
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
JoeLudwig committed May 3, 2016
1 parent a6c91ef commit d645dba
Show file tree
Hide file tree
Showing 273 changed files with 28,423 additions and 2,316 deletions.
Binary file modified bin/linux64/libopenvr_api.so
Binary file not shown.
Binary file modified bin/linux64/libopenvr_api.so.dbg
Binary file not shown.
Binary file modified bin/osx32/libopenvr_api.dylib
Binary file not shown.
Binary file not shown.
Binary file modified bin/win32/openvr_api.dll
Binary file not shown.
Binary file modified bin/win32/openvr_api.pdb
Binary file not shown.
Binary file modified bin/win64/openvr_api.dll
Binary file not shown.
Binary file modified bin/win64/openvr_api.pdb
Binary file not shown.
160 changes: 110 additions & 50 deletions headers/openvr.h

Large diffs are not rendered by default.

67 changes: 63 additions & 4 deletions headers/openvr_api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,16 @@ public struct IVRCompositor
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _ForceInterleavedReprojectionOn ForceInterleavedReprojectionOn;

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void _ForceReconnectProcess();
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _ForceReconnectProcess ForceReconnectProcess;

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void _SuspendRendering(bool bSuspend);
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _SuspendRendering SuspendRendering;

}

[StructLayout(LayoutKind.Sequential)]
Expand Down Expand Up @@ -1859,6 +1869,14 @@ public void ForceInterleavedReprojectionOn(bool bOverride)
{
FnTable.ForceInterleavedReprojectionOn(bOverride);
}
public void ForceReconnectProcess()
{
FnTable.ForceReconnectProcess();
}
public void SuspendRendering(bool bSuspend)
{
FnTable.SuspendRendering(bSuspend);
}
}


Expand Down Expand Up @@ -2487,6 +2505,8 @@ public enum ETrackedDeviceProperty
Prop_Firmware_ProgrammingTarget_String = 1028,
Prop_DeviceClass_Int32 = 1029,
Prop_HasCamera_Bool = 1030,
Prop_DriverVersion_String = 1031,
Prop_Firmware_ForceUpdateRequired_Bool = 1032,
Prop_ReportsTimeSinceVSync_Bool = 2000,
Prop_SecondsFromVsyncToPhotons_Float = 2001,
Prop_DisplayFrequency_Float = 2002,
Expand Down Expand Up @@ -2566,6 +2586,7 @@ public enum EVRState
Ready = 3,
Ready_Alert = 4,
NotReady = 5,
Standby = 6,
}
public enum EVREventType
{
Expand Down Expand Up @@ -2596,6 +2617,7 @@ public enum EVREventType
VREvent_SceneFocusGained = 403,
VREvent_SceneApplicationChanged = 404,
VREvent_SceneFocusChanged = 405,
VREvent_InputFocusChanged = 406,
VREvent_HideRenderModels = 410,
VREvent_ShowRenderModels = 411,
VREvent_OverlayShown = 500,
Expand All @@ -2612,6 +2634,8 @@ public enum EVREventType
VREvent_OverlayGamepadFocusGained = 511,
VREvent_OverlayGamepadFocusLost = 512,
VREvent_OverlaySharedTextureChanged = 513,
VREvent_DashboardGuideButtonDown = 514,
VREvent_DashboardGuideButtonUp = 515,
VREvent_Notification_Shown = 600,
VREvent_Notification_Hidden = 601,
VREvent_Notification_BeginInteraction = 602,
Expand All @@ -2620,13 +2644,16 @@ public enum EVREventType
VREvent_ProcessQuit = 701,
VREvent_QuitAborted_UserPrompt = 702,
VREvent_QuitAcknowledged = 703,
VREvent_DriverRequestedQuit = 704,
VREvent_ChaperoneDataHasChanged = 800,
VREvent_ChaperoneUniverseHasChanged = 801,
VREvent_ChaperoneTempDataHasChanged = 802,
VREvent_ChaperoneSettingsHaveChanged = 803,
VREvent_SeatedZeroPoseReset = 804,
VREvent_AudioSettingsHaveChanged = 820,
VREvent_BackgroundSettingHasChanged = 850,
VREvent_CameraSettingsHaveChanged = 851,
VREvent_ReprojectionSettingHasChanged = 852,
VREvent_StatusUpdate = 900,
VREvent_MCImageUpdated = 1000,
VREvent_FirmwareUpdateStarted = 1100,
Expand Down Expand Up @@ -2735,6 +2762,7 @@ public enum EVRApplicationType
VRApplication_Overlay = 2,
VRApplication_Background = 3,
VRApplication_Utility = 4,
VRApplication_VRMonitor = 5,
}
public enum EVRFirmwareError
{
Expand Down Expand Up @@ -2777,6 +2805,7 @@ public enum EVRInitError
Init_NoServerForBackgroundApp = 121,
Init_NotSupportedWithCompositor = 122,
Init_NotAvailableToUtilityApps = 123,
Init_Internal = 124,
Driver_Failed = 200,
Driver_Unknown = 201,
Driver_HmdUnknown = 202,
Expand All @@ -2794,6 +2823,7 @@ public enum EVRInitError
IPC_Failed = 305,
Compositor_Failed = 400,
Compositor_D3D11HardwareRequired = 401,
Compositor_FirmwareRequiresUpdate = 402,
VendorSpecific_UnableToConnectToOculusRuntime = 1000,
VendorSpecific_HmdFound_CantOpenDevice = 1101,
VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102,
Expand Down Expand Up @@ -2831,6 +2861,7 @@ public enum EVRApplicationError
BufferTooSmall = 200,
PropertyNotSet = 201,
UnknownProperty = 202,
InvalidParameter = 203,
}
public enum EVRApplicationProperty
{
Expand Down Expand Up @@ -2913,6 +2944,7 @@ public enum VROverlayFlags
SendVRScrollEvents = 6,
SendVRTouchpadEvents = 7,
ShowTouchPadScrollWheel = 8,
TransferOwnershipToInternalProcess = 9,
}
public enum EGamepadTextInputMode
{
Expand Down Expand Up @@ -3158,8 +3190,7 @@ public enum EVRSettingsError
}
[StructLayout(LayoutKind.Sequential)] public struct VREvent_Keyboard_t
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
public string cNewInput; //char[8]
public byte cNewInput0,cNewInput1,cNewInput2,cNewInput3,cNewInput4,cNewInput5,cNewInput6,cNewInput7;
public ulong uUserValue;
}
[StructLayout(LayoutKind.Sequential)] public struct VREvent_Ipd_t
Expand Down Expand Up @@ -3261,6 +3292,7 @@ public enum EVRSettingsError
public float m_flCompositorRenderStartMs;
public TrackedDevicePose_t m_HmdPose;
public int m_nFidelityLevel;
public uint m_nReprojectionFlags;
}
[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionParams_t
{
Expand Down Expand Up @@ -3384,7 +3416,7 @@ public static uint GetInitToken()
public const string IVRApplications_Version = "IVRApplications_005";
public const string IVRChaperone_Version = "IVRChaperone_003";
public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_005";
public const string IVRCompositor_Version = "IVRCompositor_013";
public const string IVRCompositor_Version = "IVRCompositor_014";
public const uint k_unVROverlayMaxKeyLength = 128;
public const uint k_unVROverlayMaxNameLength = 128;
public const uint k_unMaxOverlayCount = 32;
Expand All @@ -3398,6 +3430,7 @@ public static uint GetInitToken()
public const uint k_unNotificationTextMaxSize = 256;
public const string IVRNotifications_Version = "IVRNotifications_002";
public const uint k_unMaxSettingsKeyLength = 128;
public const string IVRSettings_Version = "IVRSettings_001";
public const string k_pch_SteamVR_Section = "steamvr";
public const string k_pch_SteamVR_RequireHmd_String = "requireHmd";
public const string k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver";
Expand All @@ -3424,6 +3457,8 @@ public static uint GetInitToken()
public const string k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
public const string k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement";
public const string k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses";
public const string k_pch_SteamVR_RenderTargetMultiplier_Float = "renderTargetMultiplier";
public const string k_pch_SteamVR_AllowReprojection_Bool = "allowReprojection";
public const string k_pch_Lighthouse_Section = "driver_lighthouse";
public const string k_pch_Lighthouse_DisableIMU_Bool = "disableimu";
public const string k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation";
Expand Down Expand Up @@ -3455,18 +3490,42 @@ public static uint GetInitToken()
public const string k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb";
public const string k_pch_Keyboard_Section = "keyboard";
public const string k_pch_Keyboard_TutorialCompletions = "TutorialCompletions";
public const string k_pch_Keyboard_ScaleX = "ScaleX";
public const string k_pch_Keyboard_ScaleY = "ScaleY";
public const string k_pch_Keyboard_OffsetLeftX = "OffsetLeftX";
public const string k_pch_Keyboard_OffsetRightX = "OffsetRightX";
public const string k_pch_Keyboard_OffsetY = "OffsetY";
public const string k_pch_Keyboard_Smoothing = "Smoothing";
public const string k_pch_Perf_Section = "perfcheck";
public const string k_pch_Perf_HeuristicActive_Bool = "heuristicActive";
public const string k_pch_Perf_NotifyInHMD_Bool = "warnInHMD";
public const string k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce";
public const string k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore";
public const string k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit";
public const string k_pch_Perf_TestData_Float = "perfTestData";
public const string k_pch_CollisionBounds_Section = "collisionBounds";
public const string k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle";
public const string k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn";
public const string k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn";
public const string k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn";
public const string k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance";
public const string k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR";
public const string k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG";
public const string k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB";
public const string k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA";
public const string k_pch_Camera_Section = "camera";
public const string IVRSettings_Version = "IVRSettings_001";
public const string k_pch_Camera_EnableCamera_Bool = "enableCamera";
public const string k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard";
public const string k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds";
public const string k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView";
public const string k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR";
public const string k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG";
public const string k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB";
public const string k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA";
public const string k_pch_audio_Section = "audio";
public const string k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice";
public const string k_pch_audio_OnRecordDevice_String = "onRecordDevice";
public const string k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice";
public const string k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice";
public const string k_pch_audio_OffRecordDevice_String = "offRecordDevice";
public const string k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
Expand Down

0 comments on commit d645dba

Please sign in to comment.