Coloured image for mouse cursor


Hi Jules,
Hi everyone,

I’d like to use a coloured (png) image for my mouse cursor but, whereas it works under windows,
under macosx the cursor is displayed in black and white…

Any idea ?

here is my code :

Image* image = ImageCache::getFromMemory(Resources::mousecursor_png, Resources::mousecursor_pngSize);

MouseCursor cursor = MouseCursor (*image, image->getWidth() / 2, image->getHeight()/2);

setMouseCursor (cursor);


I could never find anything in OSX that let you create a coloured cursor - I think it might not actually be possible using Carbon, but maybe in Cocoa…


ok, thanx for the answer !

think i’ve got to get used to this black and white cursor for the moment :slight_smile: