是否有 iOS 库可以帮助我检测更高级别的加速计手势?
例如,假设我想检测用户是否做出了圆形手势,以便我可以在游戏中触发某些内容。是否有一个库可以让我只监听某种“circleDetected”事件?
如果没有,如果我开发了这样的东西,有人会发现它的价值吗?谢谢!
For example, let's say I want to detect if the user made a circle gesture so I can trigger something in my game. Is there a library that would allow me to just listen for some sort of "circleDectected" event?
If there isn't, would anyone find value in something like this if I developed it? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它不存在(据我所知)。您必须手动执行此操作,这应该不会太难,但可能会很耗时。我认为如果有人建立一个图书馆来做这件事那就太棒了。
It doesn't exist (as far as I know). You would have to do it manually, which shouldn't be too hard, but it could potentially be time consuming. I think it'll be fantastic if somebody made a library to do it.
虚幻引擎似乎支持它——《无尽之剑》使用大量手势来施法。
Unreal Engine seems to have support for it - Infinity Blade uses a lot of gestures for casting spells.