Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Recommended way to change mouse cursor  (Read 3347 times)

0 Members and 1 Guest are viewing this topic.

smilesprower

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • Email
Recommended way to change mouse cursor
« 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.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Recommended way to change mouse cursor
« Reply #1 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
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

smilesprower

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • Email
Re: Recommended way to change mouse cursor
« Reply #2 on: March 31, 2020, 06:42:49 pm »
Thank you I will try much appreciated.

 

anything