Button held down

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.



Have a look at Button::Listener::buttonStateChanged

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