forked from ViveSoftware/ViveInputUtility-Unity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improvement - [WaveVRModule] Support WaveVR simulator (Enable VIVE Focus support in Editor mode) * Bug Fix - [WaveVRModule] Fix WaveVR tracking glitter issue - [WaveVRModule] Fix VIU simulator cannot launch (ONLY enable VIU simulator)
- Loading branch information
Showing
36 changed files
with
1,949 additions
and
1,272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Assets/HTC.UnityPlugin/VRModule/Modules/Editor/GoogleVRModuleEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//========= Copyright 2016-2018, HTC Corporation. All rights reserved. =========== | ||
|
||
using SymbolRequirement = HTC.UnityPlugin.VRModuleManagement.VRModuleManagerEditor.SymbolRequirement; | ||
using SymbolRequirementCollection = HTC.UnityPlugin.VRModuleManagement.VRModuleManagerEditor.SymbolRequirementCollection; | ||
|
||
namespace HTC.UnityPlugin.VRModuleManagement | ||
{ | ||
public class GoogleVRSymbolRequirementCollection : SymbolRequirementCollection | ||
{ | ||
public GoogleVRSymbolRequirementCollection() | ||
{ | ||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_GOOGLEVR", | ||
reqTypeNames = new string[] { "GvrUnitySdkVersion" }, | ||
reqFileNames = new string[] { "GvrUnitySdkVersion.cs" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_GOOGLEVR_1_150_0_NEWER", | ||
reqTypeNames = new string[] { "GvrControllerInputDevice" }, | ||
reqFileNames = new string[] { "GvrControllerInputDevice.cs" }, | ||
}); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/HTC.UnityPlugin/VRModule/Modules/Editor/GoogleVRModuleEditor.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
Assets/HTC.UnityPlugin/VRModule/Modules/Editor/OculusVRModuleEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//========= Copyright 2016-2018, HTC Corporation. All rights reserved. =========== | ||
|
||
using SymbolRequirement = HTC.UnityPlugin.VRModuleManagement.VRModuleManagerEditor.SymbolRequirement; | ||
using SymbolRequirementCollection = HTC.UnityPlugin.VRModuleManagement.VRModuleManagerEditor.SymbolRequirementCollection; | ||
|
||
namespace HTC.UnityPlugin.VRModuleManagement | ||
{ | ||
public class OculusVRSymbolRequirementCollection : SymbolRequirementCollection | ||
{ | ||
public OculusVRSymbolRequirementCollection() | ||
{ | ||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_OCULUSVR", | ||
reqTypeNames = new string[] { "OVRInput" }, | ||
reqFileNames = new string[] { "OVRInput.cs" }, | ||
}); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/HTC.UnityPlugin/VRModule/Modules/Editor/OculusVRModuleEditor.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
119 changes: 119 additions & 0 deletions
119
Assets/HTC.UnityPlugin/VRModule/Modules/Editor/SteamVRModuleEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
//========= Copyright 2016-2018, HTC Corporation. All rights reserved. =========== | ||
|
||
using System.Reflection; | ||
using SymbolRequirement = HTC.UnityPlugin.VRModuleManagement.VRModuleManagerEditor.SymbolRequirement; | ||
using SymbolRequirementCollection = HTC.UnityPlugin.VRModuleManagement.VRModuleManagerEditor.SymbolRequirementCollection; | ||
|
||
namespace HTC.UnityPlugin.VRModuleManagement | ||
{ | ||
public class SteamVRSymbolRequirementCollection : SymbolRequirementCollection | ||
{ | ||
public SteamVRSymbolRequirementCollection() | ||
{ | ||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_OPENVR_API", | ||
reqTypeNames = new string[] { "Valve.VR.OpenVR" }, | ||
reqFileNames = new string[] { "openvr_api.cs" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_STEAMVR", | ||
reqTypeNames = new string[] { "Valve.VR.OpenVR" }, | ||
reqAnyTypeNames = new string[] { "SteamVR", "Valve.VR.SteamVR" }, | ||
reqFileNames = new string[] { "openvr_api.cs", "SteamVR.cs" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_STEAMVR_1_1_1", | ||
reqTypeNames = new string[] { "SteamVR_Utils+Event" }, | ||
reqFileNames = new string[] { "SteamVR_Utils.cs" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_STEAMVR_1_2_0_OR_NEWER", | ||
reqTypeNames = new string[] { "SteamVR_Events" }, | ||
reqFileNames = new string[] { "SteamVR_Events.cs" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_STEAMVR_1_2_1_OR_NEWER", | ||
reqMethods = new SymbolRequirement.ReqMethodInfo[] | ||
{ | ||
new SymbolRequirement.ReqMethodInfo() | ||
{ | ||
typeName = "SteamVR_Events", | ||
name = "System", | ||
argTypeNames = new string[] { "Valve.VR.EVREventType" }, | ||
bindingAttr = BindingFlags.Public | BindingFlags.Static, | ||
} | ||
}, | ||
reqFileNames = new string[] { "SteamVR_Events.cs" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_STEAMVR_1_2_2_OR_NEWER", | ||
reqFields = new SymbolRequirement.ReqFieldInfo[] | ||
{ | ||
new SymbolRequirement.ReqFieldInfo() | ||
{ | ||
typeName = "SteamVR_ExternalCamera+Config", | ||
name = "r", | ||
bindingAttr = BindingFlags.Public | BindingFlags.Instance, | ||
} | ||
}, | ||
reqFileNames = new string[] { "SteamVR_ExternalCamera.cs" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_STEAMVR_1_2_3_OR_NEWER", | ||
reqMethods = new SymbolRequirement.ReqMethodInfo[] | ||
{ | ||
new SymbolRequirement.ReqMethodInfo() | ||
{ | ||
typeName = "Valve.VR.CVRSystem", | ||
name = "IsInputAvailable", | ||
bindingAttr = BindingFlags.Public | BindingFlags.Instance, | ||
} | ||
}, | ||
reqFileNames = new string[] { "openvr_api.cs" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_STEAMVR_2_0_0_OR_NEWER", | ||
reqTypeNames = new string[] { "Valve.VR.SteamVR" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_STEAMVR_2_1_0_OR_NEWER", | ||
reqTypeNames = new string[] { "Valve.VR.SteamVR_ActionSet_Manager" }, | ||
}); | ||
|
||
Add(new SymbolRequirement() | ||
{ | ||
symbol = "VIU_STEAMVR_2_2_0_OR_NEWER", | ||
reqMethods = new SymbolRequirement.ReqMethodInfo[] | ||
{ | ||
new SymbolRequirement.ReqMethodInfo() | ||
{ | ||
typeName = "Valve.VR.SteamVR_ActionSet_Manager", | ||
name = "UpdateActionStates", | ||
argTypeNames = new string[] | ||
{ | ||
"System.Boolean", | ||
}, | ||
bindingAttr = BindingFlags.Public | BindingFlags.Static, | ||
} | ||
}, | ||
}); | ||
} | ||
} | ||
} |
Oops, something went wrong.