Multitouch issue: cannot focus more than one touch on single object

Hi,

I want to be able to focus touches on background of my scene, so that when finger hovers over different object, which has a listener, it won’t trigger it.
The moment I set focus on the background for the first touch, following touches won’t trigger it.
If I comment the line with setFocus, multitouch will work ok.

Here’s a sample project with the setFocus on:
https://www.dropbox.com/s/d33l7u71nmnru5j/TestFocus.zip

and the apk ready to deploy:
https://www.dropbox.com/s/9w45a65b9jcvgfw/TestFocus.apk
My goal is to have multiple touches focused on the background [i.e. when hovering/finishing touch over different listeners they will not be triggered].

Any help will be appreciated [import]uid: 109453 topic_id: 26613 reply_id: 326613[/import]

Hi Krystian,
I have raised a very similar question a while ago on forums, still waiting for any response from Ansca. However, please check if this is the same issues you are facing, or maybe it will give you some idea - I tried to summarize setFocus behavior, which is confusingly working differently if you provide event.id (for multitouch) or not:
http://developer.anscamobile.com/forum/2012/04/24/inconsistent-api-stagesetfocus-obj-eventid
[import]uid: 80100 topic_id: 26613 reply_id: 107869[/import]

I’ve raised a bug #14418, since thanks to this “feature” I am loosing ability to use multitouch. [import]uid: 109453 topic_id: 26613 reply_id: 107890[/import]

hello there,

i too had the same issue, so i wrote my own touch manager to take care of the problem.

http://developer.anscamobile.com/code/dmc-lib-touch-manager

give it a spin and let me know if you find any issues. there is an example included in the code and more on the way.

cheers,
dmc [import]uid: 74908 topic_id: 26613 reply_id: 109938[/import]

The moment I set focus on the background for the first touch, following touches won’t trigger it.
If I comment the line with setFocus, multitouch will work ok.

The moment I set focus on the background for the first touch, following touches won’t trigger it.
If I comment the line with setFocus, multitouch will work ok.