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) {
bool enabled = true; // configuration.openVRSupport;
bool enabled = isViveHandSupportAvailable; // configuration.openVRSupport;
CheckExtension(isViveHandTrackingAvailable, "hVIVEHAND");
return CheckExtension(enabled, openVRPath, "hOPENVR");
}
@ -1293,6 +1293,12 @@ namespace Passer.Humanoid {
}
}
private static bool isViveHandSupportAvailable {
get {
return DoesTypeExist("Passer.Tracking.ViveHandSkeleton");
}
}
private static bool isViveTrackerSupportAvailable {
get {
return DoesTypeExist("Passer.Tracking.ViveTrackerComponent");