button bangs on push/release ?

Apr 1, 2008 at 11:00pm

button bangs on push/release ?

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)?

#36675
Apr 1, 2008 at 11:18pm

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)?
>

#126011
Apr 1, 2008 at 11:21pm

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)?

#126012
Apr 2, 2008 at 4:45am

[mousestate]

#126013
Apr 2, 2008 at 7:40am

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)?
>

#126014
Apr 2, 2008 at 11:34am

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

#126015

You must be logged in to reply to this topic.