Checking if mouse event was generated by touch
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