Hi,
I have an issue with multiple touches, When I touch on button1 and before I release this touch I have touched on another button(with another finger), If I only release button1 and keeping the button2 on pressed, but the “ended” or “cancelled” none of these events is called for button1 event why(even If I remove the second touch later also)? Please suggest me.
I have tried this:
local function onPowerTouch(self,event)
local t=event.target
if event.phase == “began” then
– print(“began”)
event.target:toFront()
display.getCurrentStage():setFocus( t,event.id)
t.isFocus = true
elseif event.phase==“ended” or event.phase==“cancelled” then
display.getCurrentStage():setFocus( t,nil )
t.isFocus = false
end
end
button1:addEventListener(“touch”,button1)
Actually I want only one touch is acceptable not multiple (at a time).
Thanks in Advance [import]uid: 172535 topic_id: 33232 reply_id: 333232[/import]