Re: Checking if mouse event was generated by touch
Re: Checking if mouse event was generated by touch
- Subject: Re: Checking if mouse event was generated by touch
- From: Akhil Jindal <email@hidden>
- Date: Fri, 30 Nov 2012 16:44:46 +0530
Hi Kyle,
The subtype for the mouse event comes to be NSMouseEventSubtype(same as
that for a normal mouse event). The mouse events for the pen have the
subtype of NSTabletPointEventSubtype, but not touch.
On Wed, Nov 28, 2012 at 10:09 PM, Kyle Sluder <email@hidden> wrote:
> On Nov 28, 2012, at 7:35 AM, Akhil Jindal <email@hidden> wrote:
>
> > I want to check whether the mouse event received was generated through
> > an actual mouse, or through a touch(possibly on an external direct
> > touch display attached to the machine(like the Wacom Cintiq)).
> >
> >
> >
> > I can receive the touch events through the Wacom APIs and want to
> > ignore the mouse event generated for the same action, by the OS.
>
> See the documentation for -[NSEvent subtype] and NSTabletPointEventSubtype.
>
> --Kyle Sluder
>
_______________________________________________
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