SFML community forums

Help => Window => Topic started by: miki151 on January 26, 2015, 09:15:06 pm

Title: Mouse wheel unusable on Mac
Post by: miki151 on January 26, 2015, 09:15:06 pm
Mouse scrolling is very sensitive on Mac, merely touching the wheel or touchpad causes an event to be generated with non-zero delta.

I realize this is because OSX has a different scrolling mechanism. Is there any way around this?
Title: Re: Mouse wheel unusable on Mac
Post by: Hapax on January 26, 2015, 11:18:48 pm
If it's too sensitive, you could try reducing the value before using it.
To emulate lower sensitivity, you could keep a static accumulation value that stores delta each time and then you only act on the delta upon it reaching a certain value.