Hello,
is there any way to know how much time between mouse_down and mouse_up?
Hello,
is there any way to know how much time between mouse_down and mouse_up?
Yes, measure it yourself:
function on_input(self, action_id, action)
if action_id == hash("touch") then
if action.pressed then
self.pressed_timestamp = socket.gettime()
elseif action.released then
local time = socket.gettime() - self.pressed_timestamp
print("Pressed for " .. tostring(time) .. " seconds")
end
end
end