Skip to content

Commit 54806bb

Browse files
committed
Fix compiling error
1 parent 10343ea commit 54806bb

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/UI/InputSystemUIInputModule.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,21 +1729,6 @@ private int GetPointerStateIndexFor(InputControl control, bool createIfNotExists
17291729
// Determine the pointer (and touch) ID. We default the pointer ID to the device
17301730
// ID of the InputDevice.
17311731
var controlParent = control.parent;
1732-
// NOTE: m_PointerTouchControls stores references to TouchControl instances. e.g. this means that "touch0"
1733-
// in the same frame can have different touchId values.
1734-
var touchControlIndex = m_PointerTouchControls.IndexOfReference(controlParent);
1735-
if (touchControlIndex != -1)
1736-
{
1737-
// Pointers are deallocated in the frame after their release (unpressed), which means the pointer state
1738-
// and the m_PointerTouchControls entry is only removed in the next frame
1739-
// (see UI_TouchPointersAreKeptForOneFrameAfterRelease).
1740-
// To accomodate for cases when touch is released and pressed in the same frame, the pointer
1741-
// state touchId needs to be checked against the cached touch control touchId (in m_PointerTouchControls)
1742-
// This is because the pointer state of the released touch (unpressed) still exists.
1743-
// If touchIDs are different, a new pointer should be allocated. Otherwise, a cached reference will
1744-
// be used.
1745-
var pointerTouchControl = m_PointerTouchControls[touchControlIndex];
1746-
ref var pointerState = ref GetPointerStateForIndex(touchControlIndex);
17471732

17481733
if (!(pointerTouchControl is TouchControl) ||
17491734
(pointerState.eventData.touchId == ((TouchControl)pointerTouchControl).touchId.value))

0 commit comments

Comments
 (0)