Hi, I am re opening a discussion I had a few years ago:
I have looked over quite a few forum posts and haven’f found anything actually useful. According to everything I’ve seen, we should not be using setMouseCursor(), or juce:: Desktop::getInstance().setMousePostion() in favour of using the mouse input source classes. But there is just one problem. - MouseInputSource IS ALWAYS CONST. When MouseDown() gets called it gets a Const MouseEvent, same with mouseDrag and mosueUp. If you call any of the Desktop methods to get mouse sources such as getMainMouseSource() or getMouseSources() it gives you const MouseInputSources.
Meaning I am not able to do what I want which is call source.hideCursor(), source.showCursor() and source.setScreenPosition(), wich I am not allowed to do when the MouseEvent or MouseInputSource is const.
All this being said it seems very obfuscated how to actually modify the mouse cursor using this better “modern” method. Can anyone shed some light?