Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouse button to trigger actions



So I'm trying to get a mouse button press (or press and hold) to
trigger an action. Specifically, I'd like to trigger color changes if
a button is clicked, or while it is held down. Is this possible? I was
looking at the patches and nothing popped out to me of how to read
that boolean and translate it into an action.

You could use a multiplexer or a math patch, or some Javascript. muxer is good if you want the event to last as long as the button is held, while JS will allow you to do all kinds of things, like countdowns, one-shots, fades, etc. You could use a counter to cycle through the available indexes of a multiplexer too, if you want.


Also, I have the x and y
coordinates of the mouse mapped to the x-y translation and noticed
that sometimes if I click the mouse button the point of particle
generation stays for a bit where the mouse click occured. Is there a
way to disable that?

I don't know exactly what's goin on here, so I can't help with this part. Sorry :/


Have a lot of fun :)

--
[ christopher wright ]
email@hidden
http://softpixel.com/~cwright/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >mouse button to trigger actions (From: "aaron speard" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.