Add check on Vive HandTracking support availability

This commit is contained in:
Pascal Serrarens 2022-01-26 16:57:25 +01:00
parent 1c0ac513af
commit 38bd96aa03

View File

@ -834,7 +834,7 @@ namespace Passer.Humanoid {
} }
public static bool CheckExtensionOpenVR(Configuration configuration) { public static bool CheckExtensionOpenVR(Configuration configuration) {
bool enabled = true; // configuration.openVRSupport; bool enabled = isViveHandSupportAvailable; // configuration.openVRSupport;
CheckExtension(isViveHandTrackingAvailable, "hVIVEHAND"); CheckExtension(isViveHandTrackingAvailable, "hVIVEHAND");
return CheckExtension(enabled, openVRPath, "hOPENVR"); return CheckExtension(enabled, openVRPath, "hOPENVR");
} }
@ -1277,9 +1277,9 @@ namespace Passer.Humanoid {
} }
#endregion SDKs #endregion SDKs
#region Support #region Support
private static bool isOpenVrSupportAvailable { private static bool isOpenVrSupportAvailable {
get { get {
@ -1293,6 +1293,12 @@ namespace Passer.Humanoid {
} }
} }
private static bool isViveHandSupportAvailable {
get {
return DoesTypeExist("Passer.Tracking.ViveHandSkeleton");
}
}
private static bool isViveTrackerSupportAvailable { private static bool isViveTrackerSupportAvailable {
get { get {
return DoesTypeExist("Passer.Tracking.ViveTrackerComponent"); return DoesTypeExist("Passer.Tracking.ViveTrackerComponent");
@ -1435,9 +1441,9 @@ namespace Passer.Humanoid {
} }
} }
#endregion Support #endregion Support
#endregion #endregion
} }
public static class CustomAssetUtility { public static class CustomAssetUtility {