how to detect mouse-double-click?

prko's icon

Dear users,

how can max detect double click?

best,
prko

Luke Hall's icon

Here's an abstraction to do it. It will send a bang out the first outlet on a double click and the second outlet on a single click. The first inlet is an on/off toggle and the second sets the interval.

lh

Max Patch
Copy patch and select New From Clipboard in Max.

prko's icon

thanks,
but I can paste your code.
Max crashes or I don't see anything.

best,
prko

Luke Hall's icon

I've attached the patch here. Hopefully this one works for you.

lh