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

Checking if mouse event was generated by touch


  • Subject: Checking if mouse event was generated by touch
  • From: Akhil Jindal <email@hidden>
  • Date: Wed, 28 Nov 2012 21:05:54 +0530

Hi,


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.


On windows, the following check does it for me:

if ((GetMessageExtraInfo() & 0xFF515700) == 0xFF515700) {

	// Click was generated by Touch
}else{
	// Click was generated by the mouse.
}



Is something similar available on Cocoa?



The problem is that there doesn't seem to be any well-defined mapping
between the touch and mouse events. Also, I do not want to switch off
all mouse events during a touch action. I just want to ignore mouse
events generated for the touch event already processed, and process
events from the actual mouse.



Thanks,

Akhil Jindal
_______________________________________________

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

  • Follow-Ups:
    • Re: Checking if mouse event was generated by touch
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Reordering a table insanity
  • Next by Date: Re: Reordering a table insanity
  • Previous by thread: Re: Reordering a table insanity
  • Next by thread: Re: Checking if mouse event was generated by touch
  • Index(es):
    • Date
    • Thread