diff --git a/Assets/VRTK/Documentation/API.md b/Assets/VRTK/Documentation/API.md index aba71c80d..c7742d779 100644 --- a/Assets/VRTK/Documentation/API.md +++ b/Assets/VRTK/Documentation/API.md @@ -7477,6 +7477,7 @@ The Device Finder offers a collection of static methods that can be called to fi * `Vive` - A summary of all HTC Vive headset versions. * `ViveMV` - A specific version of the HTC Vive headset, the first consumer version. * `ViveDVT` - A specific version of the HTC Vive headset, the first consumer version. + * `OculusRiftES07` - A specific version of the Oculus Rift headset, the rare ES07. ### Class Methods @@ -7740,7 +7741,7 @@ The ResetHeadsetTypeCache resets the cache holding the current headset type valu > `public static Headsets GetHeadsetType(bool summary = false)` * Parameters - * `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). + * `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). * Returns * `Headsets` - The Headset type that is connected. diff --git a/Assets/VRTK/Source/Scripts/Utilities/VRTK_DeviceFinder.cs b/Assets/VRTK/Source/Scripts/Utilities/VRTK_DeviceFinder.cs index bd9facea2..725d6babd 100644 --- a/Assets/VRTK/Source/Scripts/Utilities/VRTK_DeviceFinder.cs +++ b/Assets/VRTK/Source/Scripts/Utilities/VRTK_DeviceFinder.cs @@ -60,7 +60,11 @@ public enum Headsets /// /// A specific version of the HTC Vive headset, the first consumer version. /// - ViveDVT + ViveDVT, + /// + /// A specific version of the Oculus Rift headset, the rare ES07. + /// + OculusRiftES07 } private static string cachedHeadsetType = ""; @@ -368,7 +372,7 @@ public static void ResetHeadsetTypeCache() /// /// The GetHeadsetType method returns the type of headset connected to the computer. /// - /// 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). + /// 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). /// The Headset type that is connected. public static Headsets GetHeadsetType(bool summary = false) { @@ -379,6 +383,9 @@ public static Headsets GetHeadsetType(bool summary = false) case "oculusriftcv1": returnValue = (summary ? Headsets.OculusRift : Headsets.OculusRiftCV1); break; + case "oculusriftes07": + returnValue = (summary ? Headsets.OculusRift : Headsets.OculusRiftES07); + break; case "vivemv": returnValue = (summary ? Headsets.Vive : Headsets.ViveMV); break;