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

Author Topic: SFML support for double click  (Read 2835 times)

0 Members and 2 Guests are viewing this topic.

danthebeliever

  • Newbie
  • *
  • Posts: 10
    • View Profile
SFML support for double click
« on: February 11, 2011, 02:23:23 am »
Hey all,

Just wondering if SFML has built in double click functionality?

Thanks

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
SFML support for double click
« Reply #1 on: February 11, 2011, 05:40:41 am »
No, you have to program it yourself when handling events.
I use the latest build of SFML2

danthebeliever

  • Newbie
  • *
  • Posts: 10
    • View Profile
SFML support for double click
« Reply #2 on: February 11, 2011, 05:56:24 am »
Great. I was planning on implementing with a sf::Clock, but open to advice.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
SFML support for double click
« Reply #3 on: February 14, 2011, 01:46:38 am »
Quote from: "danthebeliever"
Great. I was planning on implementing with a sf::Clock, but open to advice.
That's how I would do it, and it's probably the best way.
I use the latest build of SFML2