From 70a46186c4484aa63ff40796231f51440f4fcacb Mon Sep 17 00:00:00 2001 From: Anthony Yakovlev Date: Thu, 30 Oct 2025 17:53:55 +0300 Subject: [PATCH] an example use case for the new vector analytics api --- Packages/com.unity.inputsystem/InputSystem/InputManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs index bd6bf63487..0ffc7dbbea 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputManager.cs @@ -2526,6 +2526,12 @@ private unsafe void InitializeDeviceState(InputDevice device) private void OnNativeDeviceDiscovered(int deviceId, string deviceDescriptor) { + var deviceTag = InputDeviceDescription.FromJson(deviceDescriptor).product; + + Debug.Log($"OnNativeDeviceDiscovered {deviceTag}"); + + NativeInputSystem.LogDeviceConnectedInsight( deviceTag ); + // Make sure we're not adding to m_AvailableDevices before we restored what we // had before a domain reload. RestoreDevicesAfterDomainReloadIfNecessary();