Skip to content

Commit dd3127a

Browse files
committed
Fix again compile errors
1 parent f4c8e15 commit dd3127a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,27 +1721,9 @@ private int GetPointerStateIndexFor(InputControl control, bool createIfNotExists
17211721
////REVIEW: Any way we can cut down on the hops all over memory that we're doing here?
17221722
var device = control.device;
17231723

1724-
////TODO: We're repeatedly inspecting the control setup here. Do this once and only redo it if the control setup changes.
1725-
1726-
////REVIEW: It seems wrong that we are picking up an input here that is *NOT* reflected in our actions. We just end
1727-
//// up reading a touchId control implicitly instead of allowing actions to deliver IDs to us. On the other hand,
1728-
//// making that setup explicit in actions may be quite awkward and not nearly as robust.
17291724
// Determine the pointer (and touch) ID. We default the pointer ID to the device
17301725
// ID of the InputDevice.
17311726
var controlParent = control.parent;
1732-
1733-
if (!(pointerTouchControl is TouchControl) ||
1734-
(pointerState.eventData.touchId == ((TouchControl)pointerTouchControl).touchId.value))
1735-
{
1736-
// For touches, we cache a reference to the control of a pointer so that we don't
1737-
// have to continuously do ReadValue() on the touch ID control.
1738-
m_CurrentPointerId = m_PointerIds[touchControlIndex];
1739-
m_CurrentPointerIndex = touchControlIndex;
1740-
m_CurrentPointerType = UIPointerType.Touch;
1741-
return touchControlIndex;
1742-
}
1743-
}
1744-
17451727
var pointerId = device.deviceId;
17461728
var touchId = 0;
17471729
var touchPosition = Vector2.zero;

0 commit comments

Comments
 (0)