tarmes
tarmes

Reputation: 15442

OS X - Intercepting gestures

Can someone please tell me how applications such as BetterTouchTool intercept system wide mouse and trackpad gestures?

Upvotes: 3

Views: 330

Answers (2)

tarmes
tarmes

Reputation: 15442

It turns out that apps such as BTT are using the private MultiTouch API, with some help from the EventTap API.

Upvotes: 2

Jay
Jay

Reputation: 6638

This answer should work for gestures as well:
How to emulate the cmd-shift-4 screen capture interface?

except you'd want to override the "Touch and Gesture Events" methods of NSResponder instead in your custom view/window, like

  • magnifyWithEvent:

  • rotateWithEvent:

  • swipeWithEvent:

Upvotes: 0

Related Questions