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()
2355
2355
// We have input on a mouse or pen. Kill all touch and tracked pointers we may have.
2356
2356
for ( var i = 0 ; i < m_PointerStates . length ; ++ i )
2357
2357
{
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
-
2370
2358
if ( m_PointerStates [ i ] . pointerType != UIPointerType . MouseOrPen )
2371
2359
{
2372
2360
if ( SendPointerExitEventsAndRemovePointer ( i ) )
You can’t perform that action at this time.
0 commit comments