Hi,
I am trying to make an FSM which draws a line between two touch points. I.e. if a user briefly taps their left thumb and right thumb on a screen simultaneously, I want the two points of contacts to be recorded, a line drawn between them <-(which is easy enough), and then reset in preparation for the process to be repeated again.
I am having trouble recording the location of the two distinct points of touch contact when the screen is tapped simultaneously with both thumbs. I am also struggling with how to limit the number of simultaneous taps registered to 2 (so if the screen is tapped by three fingers at the same time, only 2 are registered). How would one go about implementing this in a FSM?
Thanks in advance!