Change Point<int> broke FakeMouseMoveGenerator


#1

On FAkeMouseMoveGenerator:

// workaround for carbon windows not getting mouse-moves..

        const Point<int> screenPos (Desktop::getInstance().getMainMouseSource().getScreenPosition());

That breaks the build i change it to:

// workaround for carbon windows not getting mouse-moves..

        const Point<int> screenPos (Desktop::getInstance().getMainMouseSource().getScreenPosition().roundToInt());

Seemed to work.. didnt did further tests.

Cheers Jules


#2

Ah, thanks - I didn't realise I hadn't tried compiling that. Should be fixed now!


#3

Loading the Audio Plugin Demo in Xcode, I still get a build error for line 51:

if (Component* const comp = Desktop::getInstance().findComponentAt (screenPos))

No viable conversion to const Point<float> to Point<int>



The suggestion from Bernard Shaw is a viable work around if you set screenPos and lastScreenPos back to Point<int>.


#4

Sorry.. I thought I had tested the plugin build, but just realised I was testing an out-of-date version of it, doh! Should be ok now.


#5

Thanks, confirmed working for me.