SFML community forums
Help => Window => Topic started by: noodlesgc on November 02, 2009, 04:54:38 am
-
Is it possible to change the cursor in SFML?
I suppose a crude hack way to do it would be to hide the cursor, and just track a sprite to mouse coordinates.
Is there a better way to do it?
Thanks
-
No, this is the best solution to do it (and the only one). Why do you think it is a hack?
-
How would you hide the cursor :?:
-
sfmlWindow.ShowMouseCursor(false);
-
No, this is the best solution to do it (and the only one). Why do you think it is a hack?
I don't know, it just feels weird. It feels like there should be a SetCursorSprite function somwhere.
-
I don't know, it just feels weird. It feels like there should be a SetCursorSprite function somwhere.
And then what? It would be implemented using the same "hack" ;)
There's no such function in the low-level OS API, if that's what you have in mind.