Add check on Vive HandTracking support availability
This commit is contained in:
parent
1c0ac513af
commit
38bd96aa03
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user