I’m writing a Max external using an embedded Juce-rendered GUI . To do this, I am rendering to juce::Graphics and grabbing bitmap data to paste in to Max’s graphics context, as described in this thread - it’s a little hacky, but it works and I don’t see any other option.
That’s all working fine. The trouble I’m now faced with is passing back the mouse events from Max so that I can just rely on Juce to resolve the actioned Component and call the relevant listener. The Max API gives me a bunch of mouse event methods with which I was hoping to just call the relevant handlers in Juce as if the event had occurred on my Juce-rendered GUI rather than on my Max bitmap-copy of the GUI - I’m just not sure of the best way to do this. My solution needs to remain platform independent.
Any help would be much appreciated.