is there any way enables me to deactivate multitouch at run time after its activated using
[lua] system.activate( “multitouch” )[/lua]
thanks in advance
[import]uid: 74537 topic_id: 19346 reply_id: 319346[/import]
http://developer.anscamobile.com/forum/2010/11/07/disable-multitouch [import]uid: 70635 topic_id: 19346 reply_id: 74672[/import]
Thank you @canupa but i have new problem if i touch object (and still touch it without leave it ) began phase will be fired the problem is while i am touching my object and put another finger in another place in the screen the ended phase will not fired for my object so it will stick without executing ended phase code how can i prevent that from being ??
with respect …
[import]uid: 74537 topic_id: 19346 reply_id: 74682[/import]
in the thread, setting a boolean flag is suggested.
did you try that? could you post some of your code?
[import]uid: 70635 topic_id: 19346 reply_id: 74684[/import]
i have try the flag option its perfect but my new problem is something like this
[lua]local image = display.newImageRect(“myImage.png”,33,33);
local function imageTouchHandler(event)
if (event.phase == “began”) then
isActive = true – its global variable
elseif (event.phase == “ended”) then
– if my finger stationary on the image began will fires
– and if i use another finger while the first is still touching the screen the ended phase is not fired if i remove my two fingers from the screen
isActive = false ;
end
end
image:addEventListener(“touch”,imageTouchHandler);[/lua] [import]uid: 74537 topic_id: 19346 reply_id: 74685[/import]