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

Author Topic: Mouse wheel unusable on Mac  (Read 1414 times)

0 Members and 1 Guest are viewing this topic.

miki151

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Mouse wheel unusable on Mac
« 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?

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Mouse wheel unusable on Mac
« Reply #1 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.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*