objective c - Cocoa: distinguish input device / scrollWheel: as mouse-scroll wheel and TrackPad -
i looking method reliably distinguish within [nsresponder scrollwheel:]
if users input device has one-dimensional scroll-wheel or 2 dimensional trackpad/magicmouse?
in first implement different behavior. taking on deltax of nsevent
little weak. suggestions?
you can use private method call [theevent _scrollphase]
tell whether device using inertial scrolling, indicates apple-supplied input device. (note: won't work if user has disabled inertial scrolling)
Comments
Post a Comment