This is my story… I’m testing a joystick and a simple button. Joystick controls movement and button controls well, nothing at the moment. It just rotates my player “image” The issue I’m having is without multi-touch I cannot use but the joystick and the button separately. Which I knew would happen, but I don’t understand is when I turn on multi-touch I cannot click on EITHER of them. I looked around and found some focus things but apparently I’m doing that wrong too. The code for the button is
local function touchAttack(event)
local t = event.target
if(event.phase == "began") then
display.getCurrentStage():setFocus( t, event.id )
button.alpha = 0.5;
player:rotate(180);
elseif(event.phase == "ended" or event.phse == "cancelled") then
display.getCurrentStage():setFocus( t, nil )
button.alpha = 1;
end
end
and the joystick I’m using is Matt Pringle’s and apparently it has taken care of the focus requirements for me.
Any ideas on what would be causing me to lose all touch events when activating multi-touch? [import]uid: 110229 topic_id: 30469 reply_id: 330469[/import]