• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to get deviceDeltaX/Y from NSScrollWheel..?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to get deviceDeltaX/Y from NSScrollWheel..?
      • From: Elmar Krieger <email@hidden>
  • Prev by Date: Access aperture library
  • Next by Date: NSString encoding and perl script encoding
  • Previous by thread: Access aperture library
  • Next by thread: Re: How to get deviceDeltaX/Y from NSScrollWheel..?
  • Index(es):
    • Date
    • Thread