Hello,
is there a way that the right mouse click is always executed?
It works with Ableton, but it doesn’t work with Reaper and VST3PluginTestHost, neither in debug nor release mode.
This is how I integrated it
class WaveformView : public VSTGUI::CViewContainer
{
public:
WaveformView(const VSTGUI::CRect& size);
~WaveformView();
void onMouseDownEvent(VSTGUI::MouseDownEvent& event)
{
if (event.buttonState.isLeft())
{
SMTG_DBPRT0("=====> WaveformView::onMouseDownEvent left \n");
setBackgroundColor(VSTGUI::kGreenCColor);
}
if (event.buttonState.isMiddle())
{
SMTG_DBPRT0("=====> WaveformView::onMouseDownEvent middle \n");
setBackgroundColor(VSTGUI::kGreenCColor);
}
if (event.buttonState.isRight())
{
SMTG_DBPRT0("=====> WaveformView::onMouseDownEvent right \n");
setBackgroundColor(VSTGUI::kGreenCColor);
}
}
};