How to get deviceDeltaX/Y from NSScrollWheel..?
How to get deviceDeltaX/Y from NSScrollWheel..?
- Subject: How to get deviceDeltaX/Y from NSScrollWheel..?
- From: Elmar Krieger <email@hidden>
- Date: Thu, 01 Feb 2007 16:30:31 +0100
Hi,
I'm porting an application that needs 3 mouse buttons to Intel Macs, and with
only one button on the MacBooks, I desperately need the two-finger smooth
scrolling feature to make up for the single button.
My event loop receives NSScrollWheel events, most of which have deltaX/Y/Z all
at 0. I assume these contain the high precision scrolling data. But how can I
get it?
The posting below mentions deviceDeltaX/Y methods, which should match the Carbon
parameters kEventParamMouseWheelSmoothVertical/HorizontalDelta in the
kEventMouseScroll Carbon event:
http://lists.apple.com/archives/carbon-dev/2005/Nov/msg01070.html
But a "grep -r deviceDelta *" in directory /System/Library/Frameworks finds only
binaries, but no header files. So deviceDeltaX/Y doesn't seem to be declared
anywhere...?
Thanks for your help,
Elmar
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden