Skip to content

Commit e8446e8

Browse files
committed
Adjust placement of WMR_ENABLED
1 parent 4cbff8a commit e8446e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public abstract class BaseWindowsMixedRealityXRSDKSource : GenericXRSDKControlle
2424
protected BaseWindowsMixedRealityXRSDKSource(TrackingState trackingState, Handedness sourceHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
2525
: base(trackingState, sourceHandedness, inputSource, interactions) { }
2626

27+
#if WMR_ENABLED
2728
private Vector3 currentPointerPosition = Vector3.zero;
2829
private Quaternion currentPointerRotation = Quaternion.identity;
2930
private MixedRealityPose currentPointerPose = MixedRealityPose.ZeroIdentity;
@@ -40,7 +41,6 @@ protected override void UpdatePoseData(MixedRealityInteractionMapping interactio
4041
// Update the interaction data source
4142
switch (interactionMapping.InputType)
4243
{
43-
#if WMR_ENABLED
4444
case DeviceInputType.SpatialPointer:
4545
if (inputDevice.TryGetFeatureValue(WindowsMRUsages.PointerPosition, out currentPointerPosition))
4646
{
@@ -61,10 +61,10 @@ protected override void UpdatePoseData(MixedRealityInteractionMapping interactio
6161
CoreServices.InputSystem?.RaisePoseInputChanged(InputSource, ControllerHandedness, interactionMapping.MixedRealityInputAction, interactionMapping.PoseData);
6262
}
6363
break;
64-
#endif // WMR_ENABLED
6564
default:
6665
return;
6766
}
6867
}
68+
#endif // WMR_ENABLED
6969
}
7070
}

0 commit comments

Comments
 (0)