SFML community forums

Help => Window => Topic started by: Groogy on April 06, 2009, 01:15:02 am

Title: MouseWheelEvent - How do you use it?
Post by: Groogy 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?
Title: MouseWheelEvent - How do you use it?
Post by: Laurent 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).
Title: MouseWheelEvent - How do you use it?
Post by: Groogy on April 06, 2009, 02:07:10 pm
Aight I was right. I tested it and negative is down and positive is up.
Title: MouseWheelEvent - How do you use it?
Post by: Tank on April 06, 2009, 06:03:36 pm
Something for Doxygen, maybe? :)