Hi,
I’m trying to use double press on my grid in a script I’m writing for my norns.
Does anyone have a suggestion on how to do this? Double press meaning, the same button pushed twice fast, on my grid.
I’m imaging something like a function that would return true/1 if it had been triggered twice fast enough by two button presses of the same button.
That way I could use it in a condition for executing some specific code only for double press.
if x == 1 and y == 3 and z == 1 then
If doublepress() true then … end
end
I’m still learning lua, and I tried to have a look through some of the other scripts, but couldn’t find something I understood to be it. Is this even the right way to approach this problem?
Thanks in advance,
Anders