hi,
i'm trying correctly respond both "traditional mouse wheel" events , mighty mouse ("scroll ball") events application runs on 10.4 tiger (yes, old, has run on tiger, sorry).
taking @ how wxwidgets (lines 519-541 http://trac.wxwidgets.org/browser/svn-wx/wxwidgets/trunk/src/osx/cocoa/window.mm?rev=63370 ), see carbon event nsevent using eventref, , check keventmousescroll in order see if it's scroll wheel or scroll ball.
unfortunately, eventref introduced in 10.5 leopard. and, unfortunately, errors if try access devicedeltax , devicedeltay if event didn't came scroll ball. so, need check whether event came scroll wheel or scroll ball, know if need access deltax/deltay or devicedeltax/devicedeltay.
suggestions on how can achieve on tiger?
lot!
nevermind, after deeper search, found there's undocumented '_eventref' works fine on 10.4. renamed 'eventref' on 10.5 (and turned documented too).
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment