Hi guys,
Is there chance to have the button_elapse_time function also for the Utility Button? I do use it a lot and would be very useful to program single /double click actions.
I can create it using the timer but would be a waste of code characters having that function already for buttons, what do you think?
Here a example I use for normal button:
-- On Button
if self:button_state() > 0 then
local ET = 100
if self:button_elapsed_time() < ET then
print("secondary function")
else
print("primary function")
end
end
Thank you in advance!