Skip to content

Commit 32373fc

Browse files
committed
Add #define gating
1 parent 1e1457f commit 32373fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/MixedRealityToolkit.Providers/WindowsMixedReality/XRSDK/Controllers/WindowsMixedRealityXRSDKArticulatedHand.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
#if WINDOWS_UWP
1212
using Microsoft.MixedReality.Toolkit.WindowsMixedReality;
13+
#if WMR_ENABLED
1314
using UnityEngine.XR.WindowsMR;
15+
#endif // WMR_ENABLED
1416
using Windows.Perception.People;
1517
using Windows.UI.Input.Spatial;
1618
#endif // WINDOWS_UWP
@@ -171,7 +173,9 @@ private void UpdateHandData(InputDevice inputDevice)
171173
}
172174

173175
List<object> states = new List<object>();
176+
#if WMR_ENABLED
174177
XRSDKSubsystemHelpers.InputSubsystem?.GetCurrentSourceStates(states);
178+
#endif // WMR_ENABLED
175179

176180
foreach (SpatialInteractionSourceState sourceState in states)
177181
{

0 commit comments

Comments
 (0)