The logic for the 5 touches is there because the way that touch currently works.
The first touch on screen changes attributes for touch 1, 2nd for touch 2, etc up to 5.
If you release any of those, its position is opened up. i.e. if you have 4 touches and release #3 the #3 spot is now open for the next new touch.
So to make sure the 2 joysticks can be used and you don't have to worry about touching one before the other before any other touch, all that logic needed to be done.
Comments
http://gamesalad.com/wiki/how_tos:gsc_controls#how_do_i_make_a_joystick_control
how can I make the joystick work with physics activated without the stick being "stucked" ?
The first touch on screen changes attributes for touch 1, 2nd for touch 2, etc up to 5.
If you release any of those, its position is opened up. i.e. if you have 4 touches and release #3 the #3 spot is now open for the next new touch.
So to make sure the 2 joysticks can be used and you don't have to worry about touching one before the other before any other touch, all that logic needed to be done.