在 Microsoft Surface 上实现手势

发布于 2024-10-03 05:26:19 字数 177 浏览 0 评论 0原文

是否有任何教程或示例展示如何在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

稍尽春風 2024-10-10 05:26:19

不幸的是 Surface 没有任何手势框架。您只需深入研究并亲自跟踪联系人的移动、出现和消失即可。

Unfortunately the Surface doesn't have any gesture framework. You just have to dive in and do it yourself by tracking Contacts as they move, appear, and disappear.

安稳善良 2024-10-10 05:26:19

一般来说,在应用程序中创建像这样的复杂手势并不是一个好主意,因为人们很难发现它们。也就是说,您可以跟踪触摸来创建折线,然后应用类似于

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!

和影子一齐双人舞 2024-10-10 05:26:19

与此同时,我按照此文档实现了自己的手势识别工具

如果有人感兴趣,我可以分享来源。

In the meantime I implemented my own gesture recognition tool following this documentation

If somebody is interested, I could share the source.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文