I am looking for a method to reliably distinguish within [NSResponder scrollWheel:] if the users input device has a one-dimensional scroll-wheel or a two dimensional trackPad/magicMouse?
In the first I would like to implement a different behavior.
But just taking a look on the deltaX of the NSEvent would be a little weak.
Any suggestions?
You can use the private method call
[theEvent _scrollPhase]to tell whether the device is using inertial scrolling, which indicates an Apple-supplied input device. (Note: this won’t work if the user has disabled inertial scrolling)