Is there a way to find out if the mouse has been released after having changed something in ofxGui. I don’t want to know when a specific parameter has changed just whether any parameter has changed and only after the mouse is released (otherwise the program will crash with too much drawing required).
Hmm. Good thought. I could make use of this as well. I’ve found that the standard mouseReleased functions will only trigger when NOT clicking on an ofParameter (header or group name, for example).
a video player with an ofxFloatSlider that indicates the current playback time, and allows jumping to any time in the video by clicking on the control.
the onTimeChanged function is called each time I change time inside update (30 or 60 fps), not just when I click on the gui, so I can’t use that event to call video.setPosition(...).
But I noticed that then the GUI (the “progress bar”) does not get updated unless I drag the panel around. Maybe the GUI needs the notification to update the component?
oh yeah didn’t realize the gui also relies on the events to update the visualization. you can just set a flag whenever updating the time through code and return right away from the callback that sets the position like: