MouseCursor::setMouseCursor() problem


#1

In my JUCE 152, it seems like the MouseCursor only changes when the next mouseMove() is received.
But when I for instance set the MouseCursor to another shape on mouseDown() without moving the mouse, nothing happens, even after updateMouseCursor().


#2

Hmm, yes… The updateMouseCursor call actually just triggers a fake mouse move, so if the button is down, that’s not going to do very much. Does this sort it out?

void Component::updateMouseCursor() const { Desktop::getInstance().getMainMouseSource().forceMouseCursorUpdate(); }


#3

Yes, thanks!


#4

On OS X 10.9.5 desktop app I am having the issue as described, but updateMouseCursor() is no help.