Skip to content

Commit 9699703

Browse files
Removed superfluous code to get pointer state that is never used in InputSystemUIInputModule.
1 parent b40142f commit 9699703

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,8 +2234,6 @@ private void FilterPointerStatesByType()
22342234
// We have touch or tracked input. Kill mouse/pen pointer, if we have it.
22352235
for (var i = 0; i < m_PointerStates.length; ++i)
22362236
{
2237-
ref var state = ref GetPointerStateForIndex(i);
2238-
// Touch pointers need to get forced to no longer be pressed otherwise they will not get released in subsequent frames.
22392237
if (m_PointerStates[i].pointerType == UIPointerType.MouseOrPen)
22402238
{
22412239
SendPointerExitEventsAndRemovePointer(i);

0 commit comments

Comments
 (0)