Skip to content

Commit bd091b8

Browse files
committed
Remove commented code
1 parent 16cd820 commit bd091b8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2355,18 +2355,6 @@ private void FilterPointerStatesByType()
23552355
// We have input on a mouse or pen. Kill all touch and tracked pointers we may have.
23562356
for (var i = 0; i < m_PointerStates.length; ++i)
23572357
{
2358-
// ref var state = ref GetPointerStateForIndex(i);
2359-
// // Touch pointers need to get forced to no longer be pressed otherwise they will not get released in subsequent frames.
2360-
// if (m_PointerStates[i].pointerType == UIPointerType.Touch)
2361-
// {
2362-
// state.leftButton.isPressed = false;
2363-
// }
2364-
// if (m_PointerStates[i].pointerType != UIPointerType.MouseOrPen && m_PointerStates[i].pointerType != UIPointerType.Touch || (m_PointerStates[i].pointerType == UIPointerType.Touch && !state.leftButton.isPressed && !state.leftButton.wasReleasedThisFrame))
2365-
// {
2366-
// if (SendPointerExitEventsAndRemovePointer(i))
2367-
// --i;
2368-
// }
2369-
23702358
if (m_PointerStates[i].pointerType != UIPointerType.MouseOrPen)
23712359
{
23722360
if (SendPointerExitEventsAndRemovePointer(i))

0 commit comments

Comments
 (0)