SFML community forums

Help => Window => Topic started by: TenHenEggs on February 26, 2018, 08:03:27 pm

Title: Trouble with setting cursor icon.
Post by: TenHenEggs on February 26, 2018, 08:03:27 pm
I wanted to change cursor icon using the OS (windows in this case). I have found a tutorial: https://github.com/SFML/SFML/wiki/Tutorial:-Change-Cursor (https://github.com/SFML/SFML/wiki/Tutorial:-Change-Cursor). It does work, but I'm not happy with the result. The problem is, that every mouse movement or pressing/releasing a mouse button causes the cursor icon to reset back to arrow one. With unanimated icons it's hard to notice it, because there are single frames with the arrow icon. But for the animated ones (like spinning circle), it's hard not to notice it. The animation constantly starts over.

Is there anyway to fix it?
Title: Re: Trouble with setting cursor icon.
Post by: Laurent on February 26, 2018, 09:56:43 pm
It is implemented (https://github.com/SFML/SFML/blob/master/include/SFML/Window/Cursor.hpp) in current master.
Title: Re: Trouble with setting cursor icon.
Post by: TenHenEggs on February 27, 2018, 03:56:38 pm
Thanks. But the animated icons don't animate.

Will it be fixed?
Title: Re: Trouble with setting cursor icon.
Post by: Laurent on February 27, 2018, 08:45:03 pm
I don't know, but you can open an issue on the tracker if you feel like something's wrong.