You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(DeviceFinder): add oculus headset type for rare es07
The Oculus Rift headset can have a rare reported type of es07 which
is now being caught and returned correctly.
Thanks to @avik-das for identifying the issue.
* `bool summary` - If this is true, then the generic name for the headset is returned not including the version type (e.g. OculusRift will be returned for DK2 and CV1).
7744
+
* `bool summary` - If this is `true`, then the generic name for the headset is returned not including the version type (e.g. OculusRift will be returned for DK2 and CV1).
7744
7745
* Returns
7745
7746
* `Headsets` - The Headset type that is connected.
Copy file name to clipboardExpand all lines: Assets/VRTK/Source/Scripts/Utilities/VRTK_DeviceFinder.cs
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,11 @@ public enum Headsets
60
60
/// <summary>
61
61
/// A specific version of the HTC Vive headset, the first consumer version.
62
62
/// </summary>
63
-
ViveDVT
63
+
ViveDVT,
64
+
/// <summary>
65
+
/// A specific version of the Oculus Rift headset, the rare ES07.
66
+
/// </summary>
67
+
OculusRiftES07
64
68
}
65
69
66
70
privatestaticstringcachedHeadsetType="";
@@ -368,7 +372,7 @@ public static void ResetHeadsetTypeCache()
368
372
/// <summary>
369
373
/// The GetHeadsetType method returns the type of headset connected to the computer.
370
374
/// </summary>
371
-
/// <param name="summary">If this is true, then the generic name for the headset is returned not including the version type (e.g. OculusRift will be returned for DK2 and CV1).</param>
375
+
/// <param name="summary">If this is `true`, then the generic name for the headset is returned not including the version type (e.g. OculusRift will be returned for DK2 and CV1).</param>
372
376
/// <returns>The Headset type that is connected.</returns>
0 commit comments