Re: Getting Styluses/Track Pad Input in Cocoa
Re: Getting Styluses/Track Pad Input in Cocoa
- Subject: Re: Getting Styluses/Track Pad Input in Cocoa
- From: Graham Cox <email@hidden>
- Date: Mon, 27 Oct 2008 09:58:25 +1100
On 27 Oct 2008, at 9:44 am, Pierce Freeman wrote:
Hi everyone.
I am currently looking into if there is some way to get input from a
styluses using Cocoa. I have seen that there is a fair bit of
information
using Carbon but so far I haven't seen any that cover Cocoa.
In addition I am looking to get user input based on the track pad.
For
example, if the application sees the scrolling gesture in the
application it
will do something besides scrolling. I am not sure if this part is
locked
up on the system level, as I could see some uses coming out of
this. If
someone could steer me in the right direction for one/both of these
problems, it would be great.
Pierce F.
NSEvent contains information about pen (stylus) events including
pressure.
I think TrackPad gestures are automatically converted to the
equivalent scroll wheel events, though some of the newest ones like
the four-finger salute may require an enhancement to NSEvent that
hasn't been put into the public APIs yet. (I'm only guessing, so may
be way off).
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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