Reputation: 22668
I have seen that it is possible to use addGlobalMonitorForEventsMatchingMask:
to watch for system wide events for mouse events, scroll events, key events, and even gesture events. I looked at NSEvents.h for the available event masks, but just could not find one for multi-touch events. Is it possible to do this for multi-touch events?
Upvotes: 2
Views: 542
Reputation: 400
I looked at NSEvents.h for the available event masks, but just could not find one for multi-touch events.
Looks like developer.apple.com has some documentation on the NSEvent class and refer to some touch events/gestures.
"Support for touch and gesture events masks have been added to NSEvent in Mac OS X v10.6...." developer.apple.com
If you're developing for an older OS version than the one specified in the quote, let me know.
EDIT: As far as the function you referenced it looks like the documentation says that touch events are currently not supported.
"In Mac OS X v 10.6, event monitors are only able to monitor the following event types..." addGlobalMonitorForEventsMatchingMask:handler
Upvotes: 2