[Resolved] display.getCurrentStage( ):setFocus( self ); on touch event

Not very clear to me the use of this function in the touch event.
I have multiple instances of an object and enabled multitouch, but if I put “display.getCurrentStage( ):setFocus( self );” in my touch event function multitouch does not work until you finish processing one.

I hope someone can help me, and thank you very much. [import]uid: 179972 topic_id: 31659 reply_id: 331659[/import]

I just used this in my program!

Try this:
[lua]display.getCurrentStage( ):setFocus( self, event.id );[/lua]

And check out the documentation here:
http://docs.coronalabs.com/api/type/StageObject/setFocus.html [import]uid: 7721 topic_id: 31659 reply_id: 126505[/import]

OOH thanks a lot my friend, you’re absolutely right, it worked perfectly. Thanks!! [import]uid: 179972 topic_id: 31659 reply_id: 126512[/import]

I just used this in my program!

Try this:
[lua]display.getCurrentStage( ):setFocus( self, event.id );[/lua]

And check out the documentation here:
http://docs.coronalabs.com/api/type/StageObject/setFocus.html [import]uid: 7721 topic_id: 31659 reply_id: 126505[/import]

OOH thanks a lot my friend, you’re absolutely right, it worked perfectly. Thanks!! [import]uid: 179972 topic_id: 31659 reply_id: 126512[/import]