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

Author Topic: different mouse cursors  (Read 1653 times)

0 Members and 1 Guest are viewing this topic.

battosaijenkins

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • Email
different mouse cursors
« on: April 18, 2020, 07:48:36 am »
If this has been asked before then I apologize but I was wondering if there's more cursors besides the following:

// available types
enum     Type {
  Arrow, ArrowWait, Wait, Text,
  Hand, SizeHorizontal, SizeVertical, SizeTopLeftBottomRight,
  SizeBottomLeftTopRight, SizeAll, Cross, Help,
  NotAllowed
}

More specifically I was looking for drag and isDrag (open hand) (close hand) kind of a cursor for when mouse button is pressed and then released. I suppose I can get a png image to appear on my mouse cursor and do the handling but I was wondering if there's been more additions to the available types,  thx in advance!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: different mouse cursors
« Reply #1 on: April 19, 2020, 10:53:03 am »
If there were more types available, they would be listed under available type ;)

Lots of drag functions don't have special cursors, but if you think it's essential, you can load an image yourself.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything