Skip to content

Commit 7d7ac39

Browse files
committed
Apply changes based on review
1 parent 9e33ac8 commit 7d7ac39

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Assets/Tests/InputSystem/Plugins/UITests.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,6 @@ public IEnumerator UI_CanReleaseAndPressTouchesOnSameFrame()
17201720
scene.leftChildReceiver.events.Clear();
17211721

17221722
Assert.That(scene.eventSystem.IsPointerOverGameObject(), Is.False);
1723-
Assert.That(scene.eventSystem.IsPointerOverGameObject(touchScreen.deviceId), Is.False);
17241723
Assert.That(scene.eventSystem.IsPointerOverGameObject(1), Is.False);
17251724
Assert.That(scene.eventSystem.IsPointerOverGameObject(2), Is.False);
17261725

@@ -1733,7 +1732,6 @@ public IEnumerator UI_CanReleaseAndPressTouchesOnSameFrame()
17331732
var pointerIdTouch2 = ExtendedPointerEventData.MakePointerIdForTouch(touchScreen.deviceId, 2);
17341733

17351734
Assert.That(scene.eventSystem.IsPointerOverGameObject(), Is.True);
1736-
Assert.That(scene.eventSystem.IsPointerOverGameObject(touchScreen.deviceId), Is.True);
17371735
Assert.That(scene.eventSystem.IsPointerOverGameObject(1), Is.True);
17381736
Assert.That(scene.eventSystem.IsPointerOverGameObject(2), Is.False);
17391737

@@ -1763,7 +1761,6 @@ public IEnumerator UI_CanReleaseAndPressTouchesOnSameFrame()
17631761
yield return null;
17641762

17651763
Assert.That(scene.eventSystem.IsPointerOverGameObject(), Is.True);
1766-
Assert.That(scene.eventSystem.IsPointerOverGameObject(touchScreen.deviceId), Is.True);
17671764
Assert.That(scene.eventSystem.IsPointerOverGameObject(1), Is.True);
17681765
Assert.That(scene.eventSystem.IsPointerOverGameObject(2), Is.True);
17691766

@@ -1799,7 +1796,6 @@ public IEnumerator UI_CanReleaseAndPressTouchesOnSameFrame()
17991796
yield return null;
18001797

18011798
Assert.That(scene.eventSystem.IsPointerOverGameObject(), Is.True);
1802-
Assert.That(scene.eventSystem.IsPointerOverGameObject(touchScreen.deviceId), Is.True);
18031799
Assert.That(scene.eventSystem.IsPointerOverGameObject(1), Is.True);
18041800
Assert.That(scene.eventSystem.IsPointerOverGameObject(2), Is.True);
18051801

@@ -1826,7 +1822,6 @@ public IEnumerator UI_CanReleaseAndPressTouchesOnSameFrame()
18261822
yield return null;
18271823

18281824
Assert.That(scene.eventSystem.IsPointerOverGameObject(), Is.False);
1829-
Assert.That(scene.eventSystem.IsPointerOverGameObject(touchScreen.deviceId), Is.False);
18301825
Assert.That(scene.eventSystem.IsPointerOverGameObject(1), Is.False);
18311826
Assert.That(scene.eventSystem.IsPointerOverGameObject(2), Is.False);
18321827

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ however, it has to be formatted properly to pass verification tests.
1212

1313
### Fixed
1414
- Fixed an issue causing the Action context menu to not show on right click when right clicking an action in the Input Action Editor [ISXB-1134](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1134).
15-
- Fixed `ArgumentNullException: Value cannot be null.` during the migration of Project-wide Input Actions from `InputManager.asset` to `InputSystem_Actions.inputactions` asset which lead do the lost of the configuration [ISXB-1105](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1105)
15+
- Fixed `ArgumentN- Fixed pointerId staying the same when simultaneously releasing and then pressing in the same frame on mobile using touch. [ISXB-1006](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-845)
16+
- Fixed pointerId staying the same when simultaneously releasing and then pressing in the same frame on mobile using touch. [ISXB-1006](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-845)
1617

1718
### Changed
1819
- Added back the InputManager to InputSystem project-wide asset migration code with performance improvement (ISX-2086)

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,8 +1746,7 @@ private int GetPointerStateIndexFor(InputControl control, bool createIfNotExists
17461746
ref var pointerState = ref GetPointerStateForIndex(touchControlIndex);
17471747

17481748
if (!(pointerTouchControl is TouchControl) ||
1749-
(pointerTouchControl is TouchControl &&
1750-
pointerState.eventData.touchId == ((TouchControl)pointerTouchControl).touchId.value))
1749+
(pointerState.eventData.touchId == ((TouchControl)pointerTouchControl).touchId.value))
17511750
{
17521751
// For touches, we cache a reference to the control of a pointer so that we don't
17531752
// have to continuously do ReadValue() on the touch ID control.

0 commit comments

Comments
 (0)