i’ve got a component that listens to an imageButton and i’d like to do stuffs depending on whether the right or the left mouse button originated the buttonClicked() callback.
But i can’t find any way to get this information in buttonClicked() callback…
Did I miss something ?
What would be the most convenient way to do that ?
In fact, rather than implementing my own button class (inheriting from juce::Button),
i was looking for a way to do that using ButtonListener and ButtonListener::buttonClicked (Button *button).
Best to avoid that kind of thing, because a button click could be triggered by other means - e.g. a key shortcut or programatically, so you shouldn’t always expect to get mouse info associated with it.