How does TouchPhase really work

So i have 4 questions

1 does touchphase.begin = the first time you touch the screen or each time you re touch the screen.

2 does touchphase.moved = the time from when you started moving to the point you lift your fingures off, or if you fingures are in a new location from thouchphase.begin, or when ever your fingers move, not including pauses.

3 does touchphase.stationary = the time right after touchphase.begin but not waits after touchphase.moved, or all stops while your finger is on the screen.

4 does thouchphase.end = when you lift your fingers off the screen, or there are no fingeres on the screen.

Yes, test it, since you’ll think of other odd stuff and will want to rerun it. But:

Each finger down triggers one begin, for only that frame. If you manage to tap three fingers during the same frame, you get three touches, and all are begin. If you have an existing touch, and tap a second, the new one will be a begin.

Each frame after begin, the touch will be either move or stationary, depending on whether it moved that frame. It doesn’t “remember.” If you move then stop, it says stationary. If you want to know if the finger has moved ever, you have to remember it yourself.

End, like begin, is for each finger. Moving off the edge is an end. The only way I’ve seen an abort is slapping your palm on it.

The trick is, each finger has a permanent ID. So, during a touch, maybe it gets ID=2. There will be a single 2-begin, then a bunch of 2-move/stationaries, then a single 2-end. Now, maybe during those same frames, a 3-begin, move, move, move, end will be mixed in. Old ID’s are reused. For an iPad, the ID is always the first unused number, starting at 0.