SFML community forums

Help => Window => Topic started by: smilesprower on March 31, 2020, 04:18:00 pm

Title: Recommended way to change mouse cursor
Post by: smilesprower on March 31, 2020, 04:18:00 pm
Hello,

This is just a quick question about changing the mouse cursor image for different events, "Move, Click, etc".
What is the recommended way to do this ?
1) Create new sf::Cursors for each event ?
2) Use a sprite ?
3) Is there a way I am missing ?

Regards.
Title: Re: Recommended way to change mouse cursor
Post by: Hapax on March 31, 2020, 06:16:32 pm
Sprite's are infinitely more flexible so, as long as that works for you, I'd recommend that.

Sometimes, sprite cursors can be considered "laggy" although, that's mostly unnoticeable, so, at that point, try sf::Cursors.

I haven't actually tried out sf::Cursors yet, to be honest, so they may be better or worse than you or I expect ;D
Title: Re: Recommended way to change mouse cursor
Post by: smilesprower on March 31, 2020, 06:42:49 pm
Thank you I will try much appreciated.