Skip to content

Commit 534d719

Browse files
authored
CHANGE: APIVerificationTests exclusions cleanup (#2398)
1 parent c335859 commit 534d719

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

Assets/Tests/InputSystem/APIVerificationTests.cs

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -551,45 +551,29 @@ public class OpenVRControllerWMR : UnityEngine.InputSystem.XR.XRController
551551
public class OpenVROculusTouchController : UnityEngine.InputSystem.XR.XRControllerWithRumble
552552
public class ViveWand : UnityEngine.InputSystem.XR.XRControllerWithRumble
553553
")]
554-
// API scraper in 1.0.0 emitted incomplete default argument expressions for these overloads.
554+
// New scraper version (com.unity.coding:0.1.0-preview.26) includes default argument expressions for these overloads.
555555
[Property("Exclusions", @"1.0.0
556556
public static string GetBindingDisplayString(this InputAction action, int bindingIndex, InputBinding.DisplayStringOptions options = );
557557
public static string GetBindingDisplayString(this InputAction action, InputBinding bindingMask, InputBinding.DisplayStringOptions options = );
558558
public static string GetBindingDisplayString(this InputAction action, InputBinding.DisplayStringOptions options = , string group = default(string));
559559
public static string GetBindingDisplayString(this InputAction action, int bindingIndex, out string deviceLayoutName, out string controlPath, InputBinding.DisplayStringOptions options = );
560560
public string ToDisplayString(InputBinding.DisplayStringOptions options = , InputControl control = default(InputControl));
561561
public string ToDisplayString(out string deviceLayoutName, out string controlPath, InputBinding.DisplayStringOptions options = , InputControl control = default(InputControl));
562-
DontIncludeInteractions = 4,
563-
DontOmitDevice = 2,
564-
DontUseShortDisplayNames = 1,
565-
IgnoreBindingOverrides = 8,
566-
OmitDevice = 2,
567-
UseShortNames = 4,
568-
BufferedBytes = 256,
569-
Constant = 1,
570-
NonLinear = 16,
571-
NoPreferred = 32,
572-
NullState = 64,
573-
Relative = 4,
574-
Variable = 2,
575-
Volatile = 128,
576-
Wrap = 8,
577-
public FourCC(char a, char b = , char c = , char d = ) {}
578562
public static string ToHumanReadableString(string path, InputControlPath.HumanReadableStringOptions options = InputControlPath.HumanReadableStringOptions.None, InputControl control = default(InputControl));
579563
public static string ToHumanReadableString(string path, out string deviceLayoutName, out string controlPath, InputControlPath.HumanReadableStringOptions options = InputControlPath.HumanReadableStringOptions.None, InputControl control = default(InputControl));
580-
public class InputStateHistory<TValue> : InputStateHistory, System.Collections.Generic.IEnumerable<UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue>>, System.Collections.Generic.IReadOnlyCollection<UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue>>, System.Collections.Generic.IReadOnlyList<UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue>>, System.Collections.IEnumerable where TValue : struct, new()
564+
public UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> RecordStateChange(UnityEngine.InputSystem.InputControl<TValue> control, TValue value, double time = -1d);
565+
")]
566+
// New scraper version (com.unity.coding:0.1.0-preview.26) is able to qualify nested types inside a generic class.
567+
[Property("Exclusions", @"1.0.0
581568
public UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> this[int index] { get; set; }
582569
public UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> AddRecord(UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> record);
583570
public System.Collections.Generic.IEnumerator<UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue>> GetEnumerator();
584-
public UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> RecordStateChange(UnityEngine.InputSystem.InputControl<TValue> control, TValue value, double time = -1d);
585571
public struct Record : System.IEquatable<UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue>>
586572
public UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> next { get; }
587-
public UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> owner { get; }
588573
public UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> previous { get; }
589574
public void CopyFrom(UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> record);
590575
public bool Equals(UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue> other);
591-
public SteamHandle(ulong handle) {}
592-
public static ulong op_Explicit(UnityEngine.InputSystem.Steam.SteamHandle<TObject> handle);
576+
public class InputStateHistory<TValue> : InputStateHistory, System.Collections.Generic.IEnumerable<UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue>>, System.Collections.Generic.IReadOnlyCollection<UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue>>, System.Collections.Generic.IReadOnlyList<UnityEngine.InputSystem.LowLevel.InputStateHistory<TValue>>, System.Collections.IEnumerable where TValue : struct, new()
593577
")]
594578
// Api scraper seems to be unstable with fields with default values, sometimes "= 0;" appears (locally) and sometimes (on CI) doesn't.
595579
[Property("Exclusions", @"1.0.0
@@ -605,10 +589,13 @@ public SteamHandle(ulong handle) {}
605589
[ScopedExclusionProperty("1.0.0", "UnityEngine.InputSystem.LowLevel", "public struct KeyboardState : IInputStateTypeInfo", "public fixed byte keys[14];")]
606590
// Allow Key.IMESelected to be marked as Obsolete
607591
[ScopedExclusionProperty("1.0.0", "UnityEngine.InputSystem", "public enum Key", "IMESelected = 111,")]
608-
609-
#if !UNITY_ENABLE_STEAM_CONTROLLER_SUPPORT
610592
// Steam support is conditional (#if UNITY_ENABLE_STEAM_CONTROLLER_SUPPORT) and absent when
611593
// the steam plugin is not installed, so all Steam types are excluded from the comparison.
594+
[Property("Exclusions", @"1.0.0
595+
public SteamHandle(ulong handle) {}
596+
public static ulong op_Explicit(UnityEngine.InputSystem.Steam.SteamHandle<TObject> handle);
597+
")]
598+
#if !UNITY_ENABLE_STEAM_CONTROLLER_SUPPORT
612599
[Property("Exclusions", @"1.0.0
613600
namespace UnityEngine.InputSystem.Steam
614601
public interface ISteamControllerAPI

0 commit comments

Comments
 (0)