File tree Expand file tree Collapse file tree
Packages/com.unity.inputsystem Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ however, it has to be formatted properly to pass verification tests.
2121- Added the display of the device flag ` CanRunInBackground ` in device debug view.
2222- Added analytics for programmatic ` InputAction ` setup via ` InputActionSetupExtensions ` when exiting play-mode.
2323
24+ ### Fixed
25+ - Removed a redundant warning when using fallback code to parse a HID descriptor. (UUM-71260)
26+
2427## [ 1.11.1] - 2024-09-26
2528
2629### Fixed
Original file line number Diff line number Diff line change 66using UnityEngine . InputSystem . LowLevel ;
77using UnityEngine . InputSystem . Utilities ;
88using Unity . Collections . LowLevel . Unsafe ;
9+ using Unity . Profiling ;
910using UnityEngine . InputSystem . Layouts ;
1011using UnityEngine . Scripting ;
1112#if UNITY_2021_2_OR_NEWER
@@ -84,6 +85,8 @@ public HIDDeviceDescriptor hidDescriptor
8485 private bool m_HaveParsedHIDDescriptor ;
8586 private HIDDeviceDescriptor m_HIDDescriptor ;
8687
88+ private static readonly ProfilerMarker k_HIDParseDescriptorFallback = new ProfilerMarker ( "HIDParseDescriptorFallback" ) ;
89+
8790 // This is the workhorse for figuring out fallback options for HIDs attached to the system.
8891 // If the system cannot find a more specific layout for a given HID, this method will try
8992 // to produce a layout builder on the fly based on the HID descriptor received from
@@ -1130,8 +1133,10 @@ public static HIDDeviceDescriptor FromJson(string json)
11301133 }
11311134 catch ( Exception )
11321135 {
1133- Debug . LogWarning ( $ "Couldn't parse HID descriptor with fast parser. Using fallback") ;
1134- return JsonUtility . FromJson < HIDDeviceDescriptor > ( json ) ;
1136+ k_HIDParseDescriptorFallback . Begin ( ) ;
1137+ var descriptor = JsonUtility . FromJson < HIDDeviceDescriptor > ( json ) ;
1138+ k_HIDParseDescriptorFallback . End ( ) ;
1139+ return descriptor ;
11351140 }
11361141#else
11371142 return JsonUtility . FromJson < HIDDeviceDescriptor > ( json ) ;
You can’t perform that action at this time.
0 commit comments