diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index 269ed3455a..a914ac69c6 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -24,6 +24,7 @@ however, it has to be formatted properly to pass verification tests. - Fixed Gamepad stick up/down inputs that were not recognized in WebGL. [ISXB-1090](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1090) - Fixed PlayerInput component automatically switching away from the default ActionMap set to 'None'. - Fixed a console error being shown when targeting visionOS builds in 2022.3. +- Fixed unknown event source error in XR when receiving events from a TrackedDevice. ## [1.14.0] - 2025-03-20 diff --git a/Packages/com.unity.inputsystem/InputSystem/Plugins/InputForUI/InputSystemProvider.cs b/Packages/com.unity.inputsystem/InputSystem/Plugins/InputForUI/InputSystemProvider.cs index 98dec05a6b..f5e9d7382d 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Plugins/InputForUI/InputSystemProvider.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Plugins/InputForUI/InputSystemProvider.cs @@ -365,6 +365,11 @@ EventSource GetEventSource(InputDevice device) if (device is Gamepad) return EventSource.Gamepad; +#if UNITY_INPUT_SYSTEM_TRACKEDDEVICE_EVENTSOURCE + if (device is TrackedDevice) + return EventSource.TrackedDevice; +#endif + return EventSource.Unspecified; } diff --git a/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef b/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef index cbf773a654..b9a1c81fa6 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef +++ b/Packages/com.unity.inputsystem/InputSystem/Unity.InputSystem.asmdef @@ -107,6 +107,11 @@ "expression": "6000.0.15", "define": "UNITY_INPUT_SYSTEM_SENDPOINTERHOVERTOPARENT" }, + { + "name": "Unity", + "expression": "6000.2.0a5", + "define": "UNITY_INPUT_SYSTEM_TRACKEDDEVICE_EVENTSOURCE" + }, { "name": "com.unity.modules.unityanalytics", "expression": "1",