since there is a touch screen monitors now how can we implement touch and told in an object?
using mouse and hotkey works fine but in touch screen it does not work..
anyone have ideas how to implement?
i have found this in corona
Hold = true Count = 0 local Add = function(event) if (event.phase == "press") then Hold = true Adding(event) elseif (event.phase == "release") then Hold = false end end Adding = function(event) while (Hold == true) do Count = Count + 1 CountLabel:setText(Count) end end Thank you.
using mouse and hotkey works fine but in touch screen it does not work..
anyone have ideas how to implement?
i have found this in corona
Hold = true Count = 0 local Add = function(event) if (event.phase == "press") then Hold = true Adding(event) elseif (event.phase == "release") then Hold = false end end Adding = function(event) while (Hold == true) do Count = Count + 1 CountLabel:setText(Count) end end Thank you.
Comment