File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Packages/com.unity.inputsystem/InputSystem/Plugins/UI Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff 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 ) )
You can’t perform that action at this time.
0 commit comments