File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Assets/MixedRealityToolkit.Providers/WindowsMixedReality Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1515using Windows . Perception ;
1616using Windows . Perception . People ;
1717using Windows . UI . Input . Spatial ;
18+ using Microsoft . MixedReality . Toolkit . Windows . Utilities ;
1819#endif
1920
2021namespace Microsoft . MixedReality . Toolkit . WindowsMixedReality . Input
@@ -220,6 +221,14 @@ protected override void UpdateControllerData(InteractionSourceState interactionS
220221 base . UpdateControllerData ( interactionSourceState ) ;
221222
222223#if WINDOWS_UWP
224+ // The articulated hand support is only present in the 18361 version and beyond Windows
225+ // SDK (which contains the V8 drop of the Universal API Contract). In particular,
226+ // the HandPose related APIs are only present on this version and above.
227+ if ( ! WindowsApiChecker . UniversalApiContractV8_IsAvailable )
228+ {
229+ return ;
230+ }
231+
223232 PerceptionTimestamp perceptionTimestamp = PerceptionTimestampHelper . FromHistoricalTargetTime ( DateTimeOffset . Now ) ;
224233 IReadOnlyList < SpatialInteractionSourceState > sources = spatialInteractionManager ? . GetDetectedSourcesAtTimestamp ( perceptionTimestamp ) ;
225234 foreach ( SpatialInteractionSourceState sourceState in sources )
You can’t perform that action at this time.
0 commit comments