I also did the app in Adobe AIR, and just noticed that the multitouch bug does not occur with the Adobe AIR version. Overall performance is much better with the Corona app, with the exception of this multitouch issue.
I have 10 objects listening for touch events, and intend to simulate TOUCH_ROLL_OVER events. I keep touch event.ids in a table until it generates an ended phase. So a touch is only valid during it’s begin phase, or once during it’s moved phase until another target generates a moved event.
[code]
system.activate( “multitouch” )
TOUCHES = {}
function MyObject:touched( event )
if( ‘began’ == event.phase ) then
print( ‘touch’ )
TOUCHES[event.id] = self.displayObject
elseif( ‘moved’ == event.phase and ( TOUCHES[event.id] ~= self.displayObject )) then
print( ‘touch’ )
TOUCHES[event.id] = self.displayObject
elseif( ‘ended’ == event.phase ) then
TOUCHES[event.id] = nil
end
end
[/code] [import]uid: 4596 topic_id: 9449 reply_id: 35020[/import]