Hi there,
I have a big problem with some android devices regarding touch events of buttons.
A touch of the button isn’t recognized or slowly after touching the button about 10x times.
On iPhone, Kindle and new Samsung devices there is no problem…
e. g.
function touchBack (event) – function to handle touching of menu buttons
local obj = event.target – localise button pressed
local bid = obj.id – get the ID of the button pressed
if event.phase==“began” then
display.getCurrentStage():setFocus(event.target)
end
if event.phase == “ended” and moving == false then
display.getCurrentStage():setFocus(nil)
playsound(sounds[“click”])
MainMenu()
end
end
Best
Christian