3

有人可以告诉我 BetterTouchTool 等应用程序如何拦截系统范围的鼠标和触控板手势吗?

4

2 回答 2

2

事实证明,在 EventTap API 的帮助下,BTT 等应用程序正在使用私有的 MultiTouch API。

于 2012-11-30T19:08:28.113 回答
0

这个答案也应该适用于手势:
How to emulate the cmd-shift-4 screen capture interface?

除非您想在自定义视图/窗口中覆盖“触摸和手势事件”方法,例如NSResponder

  • magnifyWithEvent:

  • rotateWithEvent:

  • swipeWithEvent:

于 2012-11-27T11:11:18.160 回答