button bangs on push/release ?

tomaso's icon

Hello people..

I can't find a way to trigger an event when i release the button object..I mean the simple bang button...

I need to trigger 2 events..one for press and one for release.
Is there a button type that works like mouse or key presses (1 on press, 0 on release)?

Ben Bracken's icon

Hi Tom,

Check out ubutton. The left-middle outlet sends a bang when the mouse
is clicked on the button, and left outlet sends a bang when the mouse
button is released.

-ben

tom wrote:
> Hello people..
>
> I can't find a way to trigger an event when i release the button object..I mean the simple bang button...
>
> I need to trigger 2 events..one for press and one for release.
> Is there a button type that works like mouse or key presses (1 on press, 0 on release)?
>

daniel.vatsky's icon

Probably many approaches, but you could try lcd object - the 3rd
outlet sends data you can use.

On Apr 1, 2008, at 7:00 PM, tom wrote:

>
> Hello people..
>
> I can't find a way to trigger an event when i release the button
> object..I mean the simple bang button...
>
> I need to trigger 2 events..one for press and one for release.
> Is there a button type that works like mouse or key presses (1 on
> press, 0 on release)?

LoneMonad aka don malone's icon
roger.carruthers's icon

See also rs.textbutton, which outputs the mousedown/up
state out of it's right outlet - see maxobjects.com
for url,
cheers
Roger

--- tom wrote:

>
> Hello people..
>
> I can't find a way to trigger an event when i
> release the button object..I mean the simple bang
> button...
>
> I need to trigger 2 events..one for press and one
> for release.
> Is there a button type that works like mouse or key
> presses (1 on press, 0 on release)?
>

tomaso's icon

thank you people, it was so obvious with the u button!!
I will try the other objects too!