Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Stop ofxPanel calling listener on mouse release?

$
0
0

@russ wrote:

I've set up an ofxPanel to control my app (a GPU-side fractal generator), added some float parameters, and registered listeners as usual. While debugging, I noticed that the sliders are calling the listener on mouse release as well as mouse press. Since the listener marks my mesh as dirty and dispatches a whole string of compute shaders to rebuild it, I'd like to avoid the extra calls if i can. Is there any way to deactivate the call on mouse release? I don't mind subclassing and overriding methods if I have to, but I'm pretty clueless about the events side of things at the moment and documentation is fairly sparse so not sure how to go about it.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles