Skip to content

Commit e0f10fb

Browse files
committed
added comments
1 parent 0a65443 commit e0f10fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Tests/InputSystem/CoreTests_MouseEvents.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public IEnumerator MouseEvents_CanReceiveOnMouseOver([ValueSource(nameof(_testDe
116116

117117
void Set(Pointer pointer, Vector2 point, bool pressed, bool released)
118118
{
119+
// Touch needs special handling in InputTestFixture
119120
if (pointer is Touchscreen touchscreen)
120121
{
121122
if (pressed)
@@ -126,6 +127,7 @@ void Set(Pointer pointer, Vector2 point, bool pressed, bool released)
126127
MoveTouch(0, point, delta: default, false, touchscreen);
127128
return;
128129
}
130+
// all other Pointer, e.g. Mouse, Pen...
129131
Move(pointer.position, point);
130132
if (pressed)
131133
Press(pointer.press);

0 commit comments

Comments
 (0)