Skip to content

Commit 8f88e94

Browse files
author
Dmytro Ivanov
committed
Porting some test changes from 1.1
1 parent 2e9db23 commit 8f88e94

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Assets/Tests/InputSystem/Plugins/DualShockTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
using UnityEngine.InputSystem;
33
using UnityEngine.InputSystem.LowLevel;
44
using UnityEngine.InputSystem.DualShock;
5+
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WSA
56
using UnityEngine.InputSystem.DualShock.LowLevel;
7+
#endif
68
using UnityEngine.InputSystem.Processors;
79
using NUnit.Framework;
810
using UnityEngine;

Assets/Tests/InputSystem/Plugins/HIDTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
using UnityEngine.InputSystem.Layouts;
1414
using UnityEngine.InputSystem.Processors;
1515
using UnityEngine.InputSystem.Utilities;
16+
using UnityEngine.TestTools;
1617
using UnityEngine.TestTools.Utils;
1718

1819
////TODO: add test to make sure we're not grabbing HIDs that have more specific layouts
1920

21+
// No HID devices on Android
22+
#if (!UNITY_ANDROID && !UNITY_IOS) || UNITY_EDITOR
2023
internal class HIDTests : InputTestFixture
2124
{
2225
[Test]
@@ -1301,3 +1304,4 @@ public void Utilities_CanRecognizeVendorDefinedUsages()
13011304
Assert.That(HID.UsageToString((HID.UsagePage) 0xff01, 0x33), Is.Null);
13021305
}
13031306
}
1307+
#endif

0 commit comments

Comments
 (0)