Touch screen Pong

Hey, I got stuck with the 2 Player mode. I was wondering who could help me with the part of moving 2 paddles independently with two fingers. I am stuck with all the index logic. Thank you

I wouldn’t focus on index to much because index depends on the order of fingers are placed, I would divide the screen onto areas that are associated with each paddle.

When the finger touches a side it could move that paddle, or its index will be saved with the paddle until the finger is released. Then the paddle becomes unassigned