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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -