Button held down


#1

Hi - This seems like a simple question I cant seem to solve in JUCE: How do I perform an action while a button is being held down? For example, if I want to play an audio file ony while the user is holding down a play button, then stop when the button is released.

 

Thanks.


#2

Have a look at Button::Listener::buttonStateChanged


#3

solved. Thanks Jules, I wasnt looking hard enough at the listener classes!