Button – Bang on up && Bang on down

Oct 27, 2010 at 9:17pm

Button – Bang on up && Bang on down

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

#52959
Oct 27, 2010 at 9:35pm

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

– Pasted Max Patch, click to expand. –
#190484
Oct 27, 2010 at 9:47pm

i like MIB’s better of course…

– Pasted Max Patch, click to expand. –
#190485
Oct 27, 2010 at 9:53pm

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.

– Pasted Max Patch, click to expand. –
#190486
Oct 27, 2010 at 10:45pm

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

– Pasted Max Patch, click to expand. –
#190487
Oct 27, 2010 at 11:19pm

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

– Pasted Max Patch, click to expand. –
#190489
Oct 27, 2010 at 11:38pm

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

#190490
Oct 27, 2010 at 11:56pm

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

#190491

You must be logged in to reply to this topic.