diff --git a/ExternalSampleProjects/InputDeviceTester/Assets/InputDeviceTester/Scripts/Input/TouchISX.cs b/ExternalSampleProjects/InputDeviceTester/Assets/InputDeviceTester/Scripts/Input/TouchISX.cs index 1015177e9d..a67aa67ed1 100644 --- a/ExternalSampleProjects/InputDeviceTester/Assets/InputDeviceTester/Scripts/Input/TouchISX.cs +++ b/ExternalSampleProjects/InputDeviceTester/Assets/InputDeviceTester/Scripts/Input/TouchISX.cs @@ -84,7 +84,8 @@ private void NewTouchInput(TouchControl control) int id = control.touchId.ReadValue(); // Sometimes the Began phase is detected twice. The redundant one needs to be filtered out - if (m_HighlightPool.Find(id.ToString()) != null) return; + if (m_HighlightPool.Find(id.ToString())?.gameObject?.activeSelf ?? false) + return; Vector2 pos = Camera.main.ScreenToWorldPoint(control.position.ReadValue()); diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index e0cd2d121b..e31516ffc1 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -13,6 +13,7 @@ however, it has to be formatted properly to pass verification tests. ### Fixed - Fixed memory allocation on every frame when using UIDocument without EventSystem. [ISXB-953](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-953) - Fixed Action Maps name edition which could be inconsistent in Input Action Editor UI. +- Fixed InputDeviceTester sample only visualizing a given touch contact once. [ISXB-1017](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1017) ### Added - Added Hinge Angle sensor support for foldable devices.