SFML community forums
Help => General => Topic started by: Elgan on January 21, 2012, 03:19:24 am
-
Hello!
is it possible through sfml to change the mouse cursor? Ive no idea how standard this is
-
With SFML, no it isn't. You'd have to use the specific libraries for the platform you're developing on.
There's some code on the old wiki which might help you out. It only works on Windows and Linux, and I can only confirm the code for Linux to be working (I actually fixed some if it).
http://www.sfml-dev.org/wiki/en/tutoriels/cursor
-
Thanx v.much....thought as much.
bit annoying actually :(
well I may go down picture route :(..
thank you
-
I'm not really sure what people have against just drawing a sprite and hiding the OS cursor.
-
I'm not really sure what people have against just drawing a sprite and hiding the OS cursor.
I may go down this route, just means I have to include the sprites and find images:P
I suck at images :(
-
I'm not really sure what people have against just drawing a sprite and hiding the OS cursor.
This.
Simple and fast, i think, and you can do all you want :lol
I'm not really sure what people have against just drawing a sprite and hiding the OS cursor.
I may go down this route, just means I have to include the sprites and find images:P
I suck at images :(
http://www.appleblossomart.com/cursors.htm
Google :)
-
hehe thank you
a few reasons really:
...it means I have to pack the images...I may release what I'm working on to show.
..I'm also near blind so not a fan of images :P
...I want 5 different cursors :(
however thanx, will go down image rout anyway
-
Hardware cursors can be really useful, if you'd like to show the cursor even while being close to the border (in windowed mode). In fullscreen there's no difference, but there's the border of the screen anyway. Also, the cursor can still be moved while the application "hangs" (e.g. during some loading screen), which still gives the user some feedback to see the computer/game didn't freeze.