简体   繁体   English

自定义多点触控手势(OS X)

[英]Customizing Multi-Touch Gestures (OS X)

Is it possible to create custom multi-touch gestures for OS X? 是否可以为OS X创建自定义多点触摸手势? I know you can now make up your own gestures through the System Preferences but my question is if it's possible for the gesture to perform an action that isn't listed in the possible Trackpad options in the OS default. 我知道您现在可以通过“系统偏好设置”来制作自己的手势,但是我的问题是,该手势是否有可能执行操作系统默认中可能的触控板选项中未列出的动作。 For example, let's say I want to close an application by swiping with three fingers or something along those lines. 例如,假设我要通过用三根手指或其他手指沿着这些行滑动来关闭应用程序。

I understand that this would most likely be an outside application that would need to be written but I'm just trying to get an idea of where to start to read about this (the functions in Objective C to look at, etc.). 我知道这很可能是需要编写的外部应用程序,但我只是想了解一个从哪里开始阅读此内容的想法(要查看的目标C中的功能,等等)。

Thanks for the help! 谢谢您的帮助!

是的,请覆盖touchesBegan并编写自己的自定义代码以解释相应的触摸事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM