Forums > MaxMSP

Letting events happen only if a button is held down

August 21, 2008 | 6:41 pm

Is there a way of if say the left mouse button is held down I can let certain values through. But only if the button is held down.
Atm im using the wii remote acceleromter to control play back speed, but could i hold down a button and get it to control panning instead.

Any help would be great


August 21, 2008 | 11:09 pm


August 22, 2008 | 12:08 am

[mousefilter] ?


August 22, 2008 | 12:14 am

Gate yes, mousefilter no:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 139 242 41 196617 print B;
#P newex 55 242 42 196617 print A;
#P newex 139 116 52 196617 metro 99;
#P newex 55 190 27 196617 + 1;
#P newex 55 212 94 196617 gate 2 1;
#P newex 55 51 48 196617 loadbang;
#P newex 55 169 66 196617 mousestate;
#P connect 1 0 0 0;
#P connect 1 0 4 0;
#P connect 2 1 6 0;
#P connect 2 0 5 0;
#P connect 4 0 2 1;
#P connect 3 0 2 0;
#P connect 0 0 3 0;
#P window clipboard copycount 7;


August 22, 2008 | 3:31 pm

Quote: johnpitcairn wrote on Fri, 22 August 2008 02:14
—————————————————-
> Gate yes, mousefilter no:
—————————————————-

Fixed it:

#P button 199 293 15 0;
#P button 115 295 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 199 176 52 196617 metro 99;
#P newex 115 250 27 196617 + 1;
#P newex 115 272 94 196617 gate 2 1;
#P newex 199 151 60 196617 loadmess 1;
#P newex 115 229 66 196617 mousestate;
#P connect 2 0 5 0;
#P connect 2 1 6 0;
#P fasten 4 0 0 0 204 205 120 205;
#P connect 4 0 2 1;
#P connect 1 0 4 0;
#P connect 0 0 3 0;
#P connect 3 0 2 0;
#P window clipboard copycount 7;


August 22, 2008 | 4:09 pm

Wow thankyou for the swift replies seems like a gate was the way to go thanks guys
:D


Viewing 6 posts - 1 through 6 (of 6 total)