Skip to content

Commit 7e95735

Browse files
committed
Version 2.2.0 - updating openvr_api.cs and a minor warning
1 parent 3feb996 commit 7e95735

File tree

3 files changed

+11
-42
lines changed

3 files changed

+11
-42
lines changed

Assets/SteamVR/Plugins/openvr_api.cs

Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ public struct IVRCompositor
691691
internal _GetFrameTiming GetFrameTiming;
692692

693693
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
694-
internal delegate uint _GetFrameTimings(ref Compositor_FrameTiming pTiming, uint nFrames);
694+
internal delegate uint _GetFrameTimings([In, Out] Compositor_FrameTiming[] pTiming, uint nFrames);
695695
[MarshalAs(UnmanagedType.FunctionPtr)]
696696
internal _GetFrameTimings GetFrameTimings;
697697

@@ -2523,9 +2523,9 @@ public bool GetFrameTiming(ref Compositor_FrameTiming pTiming,uint unFramesAgo)
25232523
bool result = FnTable.GetFrameTiming(ref pTiming,unFramesAgo);
25242524
return result;
25252525
}
2526-
public uint GetFrameTimings(ref Compositor_FrameTiming pTiming,uint nFrames)
2526+
public uint GetFrameTimings(Compositor_FrameTiming [] pTiming)
25272527
{
2528-
uint result = FnTable.GetFrameTimings(ref pTiming,nFrames);
2528+
uint result = FnTable.GetFrameTimings(pTiming,(uint) pTiming.Length);
25292529
return result;
25302530
}
25312531
public float GetFrameTimeRemaining()
@@ -3803,8 +3803,6 @@ public enum ETrackedDeviceProperty
38033803
Prop_AdditionalDeviceSettingsPath_String = 1042,
38043804
Prop_Identifiable_Bool = 1043,
38053805
Prop_BootloaderVersion_Uint64 = 1044,
3806-
Prop_AdditionalSystemReportData_String = 1045,
3807-
Prop_CompositeFirmwareVersion_String = 1046,
38083806
Prop_ReportsTimeSinceVSync_Bool = 2000,
38093807
Prop_SecondsFromVsyncToPhotons_Float = 2001,
38103808
Prop_DisplayFrequency_Float = 2002,
@@ -3901,8 +3899,6 @@ public enum ETrackedDeviceProperty
39013899
Prop_TrackingRangeMinimumMeters_Float = 4004,
39023900
Prop_TrackingRangeMaximumMeters_Float = 4005,
39033901
Prop_ModeLabel_String = 4006,
3904-
Prop_CanWirelessIdentify_Bool = 4007,
3905-
Prop_Nonce_Int32 = 4008,
39063902
Prop_IconPathName_String = 5000,
39073903
Prop_NamedIconPathDeviceOff_String = 5001,
39083904
Prop_NamedIconPathDeviceSearching_String = 5002,
@@ -4025,6 +4021,7 @@ public enum EVREventType
40254021
VREvent_OverlayHidden = 501,
40264022
VREvent_DashboardActivated = 502,
40274023
VREvent_DashboardDeactivated = 503,
4024+
VREvent_DashboardThumbSelected = 504,
40284025
VREvent_DashboardRequested = 505,
40294026
VREvent_ResetDashboard = 506,
40304027
VREvent_RenderToast = 507,
@@ -4047,7 +4044,6 @@ public enum EVREventType
40474044
VREvent_RoomViewShown = 526,
40484045
VREvent_RoomViewHidden = 527,
40494046
VREvent_ShowUI = 528,
4050-
VREvent_ShowDevTools = 529,
40514047
VREvent_Notification_Shown = 600,
40524048
VREvent_Notification_Hidden = 601,
40534049
VREvent_Notification_BeginInteraction = 602,
@@ -4103,11 +4099,6 @@ public enum EVREventType
41034099
VREvent_Compositor_MirrorWindowHidden = 1401,
41044100
VREvent_Compositor_ChaperoneBoundsShown = 1410,
41054101
VREvent_Compositor_ChaperoneBoundsHidden = 1411,
4106-
VREvent_Compositor_DisplayDisconnected = 1412,
4107-
VREvent_Compositor_DisplayReconnected = 1413,
4108-
VREvent_Compositor_HDCPError = 1414,
4109-
VREvent_Compositor_ApplicationNotResponding = 1415,
4110-
VREvent_Compositor_ApplicationResumed = 1416,
41114102
VREvent_TrackedCamera_StartVideoStream = 1500,
41124103
VREvent_TrackedCamera_StopVideoStream = 1501,
41134104
VREvent_TrackedCamera_PauseVideoStream = 1502,
@@ -4130,7 +4121,6 @@ public enum EVREventType
41304121
VREvent_SpatialAnchors_DescriptorUpdated = 1801,
41314122
VREvent_SpatialAnchors_RequestPoseUpdate = 1802,
41324123
VREvent_SpatialAnchors_RequestDescriptorUpdate = 1803,
4133-
VREvent_SystemReport_Started = 1900,
41344124
VREvent_VendorSpecific_Reserved_Start = 10000,
41354125
VREvent_VendorSpecific_Reserved_End = 19999,
41364126
}
@@ -4183,15 +4173,6 @@ public enum EShowUIType
41834173
ShowUI_ManageTrackers = 1,
41844174
ShowUI_QuickStart = 2,
41854175
ShowUI_Pairing = 3,
4186-
ShowUI_Settings = 4,
4187-
}
4188-
public enum EHDCPError
4189-
{
4190-
None = 0,
4191-
LinkLost = 1,
4192-
Tampered = 2,
4193-
DeviceRevoked = 3,
4194-
Unknown = 4,
41954176
}
41964177
public enum EVRInputError
41974178
{
@@ -4876,8 +4857,6 @@ public enum EIOBufferMode
48764857
[FieldOffset(0)] public VREvent_InputActionManifestLoad_t actionManifest;
48774858
[FieldOffset(0)] public VREvent_ProgressUpdate_t progressUpdate;
48784859
[FieldOffset(0)] public VREvent_ShowUI_t showUi;
4879-
[FieldOffset(0)] public VREvent_ShowDevTools_t showDevTools;
4880-
[FieldOffset(0)] public VREvent_HDCPError_t hdcpError;
48814860
[FieldOffset(0)] public VREvent_Keyboard_t keyboard; // This has to be at the end due to a mono bug
48824861
}
48834862

@@ -5075,8 +5054,7 @@ public enum EIOBufferMode
50755054
{
50765055
public float xdelta;
50775056
public float ydelta;
5078-
public uint unused;
5079-
public float viewportscale;
5057+
public uint repeatCount;
50805058
}
50815059
[StructLayout(LayoutKind.Sequential)] public struct VREvent_TouchPadMove_t
50825060
{
@@ -5238,14 +5216,6 @@ public string cNewInput
52385216
{
52395217
public EShowUIType eType;
52405218
}
5241-
[StructLayout(LayoutKind.Sequential)] public struct VREvent_ShowDevTools_t
5242-
{
5243-
public int nBrowserIdentifier;
5244-
}
5245-
[StructLayout(LayoutKind.Sequential)] public struct VREvent_HDCPError_t
5246-
{
5247-
public EHDCPError eCode;
5248-
}
52495219
[StructLayout(LayoutKind.Sequential)] public struct VREvent_t
52505220
{
52515221
public uint eventType;
@@ -6032,10 +6002,9 @@ public static uint GetInitToken()
60326002
public const string k_pch_Dashboard_Section = "dashboard";
60336003
public const string k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard";
60346004
public const string k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode";
6035-
public const string k_pch_Dashboard_UseWebDashboard = "useWebDashboard";
6036-
public const string k_pch_Dashboard_UseWebSettings = "useWebSettings";
6037-
public const string k_pch_Dashboard_UseWebIPD = "useWebIPD";
6038-
public const string k_pch_Dashboard_UseWebPowerMenu = "useWebPowerMenu";
6005+
public const string k_pch_Dashboard_EnableWebUI = "webUI";
6006+
public const string k_pch_Dashboard_EnableWebUIDevTools = "webUIDevTools";
6007+
public const string k_pch_Dashboard_EnableWebUIDashboardReplacement = "webUIDashboard";
60396008
public const string k_pch_modelskin_Section = "modelskins";
60406009
public const string k_pch_Driver_Enable_Bool = "enable";
60416010
public const string k_pch_WebInterface_Section = "WebInterface";

Assets/SteamVR/Scripts/SteamVR.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ private static string GetManifestFile()
520520

521521
private static void IdentifyEditorApplication(bool showLogs = true)
522522
{
523-
bool isInstalled = OpenVR.Applications.IsApplicationInstalled(SteamVR_Settings.instance.editorAppKey);
523+
//bool isInstalled = OpenVR.Applications.IsApplicationInstalled(SteamVR_Settings.instance.editorAppKey);
524524

525525
string manifestPath = GetManifestFile();
526526

Assets/SteamVR/readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SteamVR Unity Plugin - v2.2
1+
# SteamVR Unity Plugin - v2.2.0
22

33
Copyright (c) Valve Corporation, All rights reserved.
44

@@ -31,7 +31,7 @@ Support:
3131
If you'd like to discuss features, post guides, and give general feedback please post on the steam forum here: https://steamcommunity.com/app/250820/discussions/7/
3232

3333

34-
Changes for v2.2:
34+
Changes for v2.2.0:
3535

3636
* Removing some unused code
3737

0 commit comments

Comments
 (0)