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 protected]> wrote: > On Nov 28, 2012, at 7:35 AM, Akhil Jindal <[email protected]> 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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
