有人可以告诉我,BetterTouchTool等应用程序如何拦截系统范围的鼠标和触控板手势?
答案 0 :(得分:1)
事实证明,BTT等应用程序正在使用私有MultiTouch API,并提供EventTap API的一些帮助。
答案 1 :(得分:0)
这个答案也适用于手势:
的 How to emulate the cmd-shift-4 screen capture interface? 强>
除了您想要在自定义视图/窗口中覆盖NSResponder
的“触摸和手势事件”方法,例如
magnifyWithEvent:
rotateWithEvent:
swipeWithEvent: