Re: Tablet events from ordinary touchpad?
Re: Tablet events from ordinary touchpad?
- Subject: Re: Tablet events from ordinary touchpad?
- From: Raleigh Ledet <email@hidden>
- Date: Mon, 21 Sep 2009 14:20:11 -0700
Tablet proximity events are sent to the first responder of the window
the cursor is over. Which is probably not what you want. You have two
options:
1) On 10.6, add a local event monitor to catch proximity events
directly by the objects that care.
2) Create your own NSApplication subclass and override sendEvent:.
When you find a tabletProximity event, wrap it up in your own
notification and post that. All objects that care about the proximity
should listen for your notification instead of the tabletProximity:
responder method.
-raleigh
On Sep 21, 2009, at 1:40 PM, Uli Kusterer wrote:
Am 21.09.2009 um 21:05 schrieb Sander Stoks:
However, I'm still not getting the tabletProximity: event in my
NSView. In the Event Tabs Testbench I do see it. Is there
anything special I must do to my NSView to receive these tablet-
only events?
I don't think there was anything special needed. See if anything in
this article from when I last did pressure-sensitivity helps:
http://zathras.de/blog-wacom-pens-stirring-cocoa.htm
For one thing, it has a link to WACOM sample code that may be useful.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://groups.yahoo.com/group/mac-gui-dev/
_______________________________________________
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
_______________________________________________
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