Game Development Community

iT2D 1.4 Beta 2 - Multitouch Not Correlating Touch Data to Touches Over Touch Lifetime

by Edward F. Maurina III · in iTorque 2D · 05/23/2010 (2:10 pm) · 1 replies

Build: 1.3, 1.4 Beta1, and 1.4 Beta 2

Platform: iPhone Simulator, and iDevices

Target: Device

Issues: The current multitouch system accumulates 'current' touches and sends them to callbacks in a set. The first argument of each of the oniPhoneTouch[Down,Move,Up]() callbacks is a count of current touch events. This is not enough data to correlate a prior touch-down event to a current touch-move or touch-up event. The same is true from prior touch-move to current touch-move events.


Steps to Repeat:
In any app that uses the multitouch sytem, do the following:

1. Fingers 1,2,3 down
2. Fingers 1,3 move

Now, ask yourself, "How can my scripts easily and consistently tell whether the second x and y for the move data is for finger 3 or 2?"

Suggested Fix:
1. Examine the code supplied with my recent resource 'fix' for iTGB1.3 and iTGB 1.4 Beta2.
2. Implement something like it that meets the team's standards.
3. Release an update to the community showing the small change required for the current oniPhoneTouch[Down,Move,Up]() callbacks.