Skip to content

Commit 6e21421

Browse files
committed
FIX: InputDeviceTester only shows first touch contact (IXSB-1017)
The logic checking for duplicate "Began" phases with a touch contact was incorrect and has been corrected.
1 parent 445db66 commit 6e21421

File tree

1 file changed

+2
-1
lines changed
  • ExternalSampleProjects/InputDeviceTester/Assets/InputDeviceTester/Scripts/Input

1 file changed

+2
-1
lines changed

ExternalSampleProjects/InputDeviceTester/Assets/InputDeviceTester/Scripts/Input/TouchISX.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ private void NewTouchInput(TouchControl control)
8484
int id = control.touchId.ReadValue();
8585

8686
// Sometimes the Began phase is detected twice. The redundant one needs to be filtered out
87-
if (m_HighlightPool.Find(id.ToString()) != null) return;
87+
if (m_HighlightPool.Find(id.ToString())?.gameObject?.activeSelf ?? false)
88+
return;
8889

8990
Vector2 pos = Camera.main.ScreenToWorldPoint(control.position.ReadValue());
9091

0 commit comments

Comments
 (0)