Button object that reports mouse-down and mouse-up?

gpvillamil's icon

Is there any user-interface object that reports mouse-down and mouse-up events separately? I need something like a ubutton that would report when the button is pressed, and when released, as separate events, like a MIDI note-on and note-off sequence.

As far as I can tell, most (all?) Max objects bang on mouse-down.

bkshepard's icon

Check out [mousestate] but note that it needs to receive an initial bang (use [loadbang]) in order to work.

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

Tim Lloyd's icon

ubutton