在 Microsoft Surface 上实现手势
是否有任何教程或示例展示如何在 Microsoft Surface 中实现自定义手势?经过几个小时的谷歌搜索,我找不到任何东西。
不幸的是,SDK甚至没有提供识别手势的框架。
我对像圆圈这样的手势特别感兴趣,或者?或 x
编辑: 这里有消息吗?或者有什么好的提示如何识别 UI 元素上的 X?
Is there any tutorial or example available that shows how to implement a custom gesture into Microsoft Surface? After hours of googling I couldn't find any.
Unfortunately, the SDK does not even provide a framework to recognize gestures.
Im particularly intersted in gestures like a circle, or ? or x
Edit:
Is there any news here? Or any good hints how to just recognize a X over a UI element?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不幸的是 Surface 没有任何手势框架。您只需深入研究并亲自跟踪
联系人
的移动、出现和消失即可。Unfortunately the Surface doesn't have any gesture framework. You just have to dive in and do it yourself by tracking
Contact
s as they move, appear, and disappear.一般来说,在应用程序中创建像这样的复杂手势并不是一个好主意,因为人们很难发现它们。也就是说,您可以跟踪触摸来创建折线,然后应用类似于
http://faculty.washington.edu/wobbrock/pubs/uist-07.1.pdf
用于区分一组手势中的路径。
另一种选择(但可能不是您想要的)是使用 SurfaceInkCanvas 并识别在那里输入的文本。
谢谢!
Generally it is not a good idea to creat complex gestures like that in your application because they are really hard for people to discover. That said, you could track the touches to create a polyline and then apply an algorithm like the one outlined at
http://faculty.washington.edu/wobbrock/pubs/uist-07.1.pdf
to distinguish the path in a set of gestures.
Another option, but maybe not what you want is to use the SurfaceInkCanvas and recognize the text entered there.
Thanks!
与此同时,我按照此文档实现了自己的手势识别工具
如果有人感兴趣,我可以分享来源。
In the meantime I implemented my own gesture recognition tool following this documentation
If somebody is interested, I could share the source.