Button - Bang on up && Bang on down

David Butler's icon

Does anyone have a clever way to make a textbutton report a bang on button up AND on button down?

MIB's icon
Max Patch
Copy patch and select New From Clipboard in Max.

not sure how clever it is, but this does the trick.

pid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

i like MIB's better of course...

David Butler's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Thanks guys. Ending up using this as I need separate events for up and down. I was fooling around with various ways of doing this using mousestate but I couldn't get the timing right. Using gate sorts that out.

MIB's icon
Max Patch
Copy patch and select New From Clipboard in Max.

of course you could always fake it with ubutton as well...

Ben Bracken's icon
Max Patch
Copy patch and select New From Clipboard in Max.

another way to do it with ubutton and textbutton in toggle mode:

David Butler's icon

Would be nice perhaps if textbutton just had the same outlets that ubutton does to avoid this annoyance...

Ben Bracken's icon

Requested noted, but ubutton doesn't do everything that textbutton does either, they are just different objects. Welcome to the world of UI design. One person's annoyance is another person's fantasy and vice versa.

-Ben