• 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
Re: Checking if mouse event was generated by touch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Checking if mouse event was generated by touch (From: Akhil Jindal <email@hidden>)
 >Re: Checking if mouse event was generated by touch (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSUserUnixTask and the sandbox
  • Next by Date: Re: FileWrapper & iCloud
  • Previous by thread: Re: Checking if mouse event was generated by touch
  • Next by thread: Question about docs / window controllers...
  • Index(es):
    • Date
    • Thread