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

Author Topic: MouseWheelEvent - How do you use it?  (Read 1978 times)

0 Members and 1 Guest are viewing this topic.

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
MouseWheelEvent - How do you use it?
« on: April 06, 2009, 01:15:02 am »
I'm just wondering how you use MouseWheelEvent? It's the event to use when the event type is MouseWheelMoved right?

Is it that negative is scrolling downwards and positive is upwards? Is it relative? So the more scroll the higher/lower number?
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
MouseWheelEvent - How do you use it?
« Reply #1 on: April 06, 2009, 08:29:07 am »
Quote
I'm just wondering how you use MouseWheelEvent? It's the event to use when the event type is MouseWheelMoved right?

Right.

Quote
Is it that negative is scrolling downwards and positive is upwards?

I never remember :lol:
You'd better test it ;)

Quote
Is it relative?

Yes, everytime you scroll you'll get a value starting at zero (so unless you scroll very fast, you'll probably only get 1 and -1).
Laurent Gomila - SFML developer

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
MouseWheelEvent - How do you use it?
« Reply #2 on: April 06, 2009, 02:07:10 pm »
Aight I was right. I tested it and negative is down and positive is up.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1485
    • View Profile
    • Blog
    • Email
MouseWheelEvent - How do you use it?
« Reply #3 on: April 06, 2009, 06:03:36 pm »
Something for Doxygen, maybe? :)