Skip to content

Commit b44444a

Browse files
committed
Changed namespace, added preprocessor directives to includes
1 parent 3d78391 commit b44444a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Assets/HoloToolkit/Input/Scripts/Utilities/AttachToController.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33

44
using HoloToolkit.Unity.InputModule;
55
using UnityEngine;
6+
#if UNITY_2017_2_OR_NEWER
67
using UnityEngine.XR.WSA.Input;
8+
#else
9+
using UnityEngine.VR.WSA.Input;
10+
#endif
711

8-
namespace HoloToolkit.Unity.Controllers
12+
namespace HoloToolkit.Unity.InputModule
913
{
1014
/// <summary>
1115
/// Waits for a controller to be instantiated, then attaches itself to a specified element

Assets/HoloToolkit/Input/Scripts/Utilities/MotionControllerInfo.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

44
using UnityEngine;
5+
#if UNITY_2017_2_OR_NEWER
56
using UnityEngine.XR.WSA.Input;
7+
#else
8+
using UnityEngine.VR.WSA.Input;
9+
#endif
610

711
namespace HoloToolkit.Unity.InputModule
812
{

0 commit comments

Comments
 (0)