开发者

Implement gestures on Microsoft Surface

Is there any tutorial or example available that shows how to implement a custom gesture into Mic开发者_运维百科rosoft 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?


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜