Colored cursors

Hi! I’d be very glad if someone is able to tell me if there’s a way to create
colored cursors instead of black and white ones.

Think this is covered in the docs:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fCreateCursorOn Wed, Mar 26, 2008 at 10:35 AM, CODER <riccardo.cianci at alice.it> wrote:

Hi! I’d be very glad if someone is able to tell me if there’s a way to create
colored cursors instead of black and white ones.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

The fact it’s documented doesn’t deny to implement them in 1.3/2.0 :slight_smile:

MacOSX, Win32, X11 all support colored hardware cursors so it’s possible to
write a common API that will work at least on the major OSes targeted by
SDL!

One of the bigger complaints about my latest OSX/Linux port is the fact the
mouse isn’t as smooth as on Windows cause it uses a software pointer and if
the framerate is not very high the mouse movement is jerky…On 3/26/08, JDE wrote:

Think this is covered in the docs:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fCreateCursor


Bye,
Gabry

MacOSX, Win32, X11 all support colored hardware cursors so it’s possible to
write a common API that will work at least on the major OSes targeted by
SDL!

One of the bigger complaints about my latest OSX/Linux port is the fact the
mouse isn’t as smooth as on Windows cause it uses a software pointer and if
the framerate is not very high the mouse movement is jerky…

Yes, let’s definitely add that to the feature list for SDL 1.3.

Anyone want to take a shot at implementing it? :slight_smile:

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Sam Lantinga <slouken devolution.com> writes:

MacOSX, Win32, X11 all support colored hardware cursors so it’s possible to
write a common API that will work at least on the major OSes targeted by
SDL!

One of the bigger complaints about my latest OSX/Linux port is the fact the
mouse isn’t as smooth as on Windows cause it uses a software pointer and if
the framerate is not very high the mouse movement is jerky…

Yes, let’s definitely add that to the feature list for SDL 1.3.

Anyone want to take a shot at implementing it? :slight_smile:

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Thanks to all who answered this thread giving a good solution to my question. I
have applied the tip resulted working 100%. Glad to hear about the presence of
colored cursors in the next release of SDL.

Thanks again

Coder