Surface SDK 中的手势是如何实现的?
我想知道Surface SDK中如何实现移动、缩放、旋转等手势。您需要收听特定事件吗?他们提供缩放/旋转中心点吗?他们感觉自然吗? (当您移动一根手指但不移动另一根手指时,中心点位于第二根手指)手势如何处理多个手指,而不仅仅是不同的触摸?
I wonder how gestures like move, scale, rotate are implemented in Surface SDK. Do you need to listen to specific events? Do they provide scale/rotate center point? Do they feel natural? (where natural is when you move one finger but don't move another one the CENTER point is at the second one) How gestures cope with multiple fingers, not just tho distinct touches?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有 2 个组件:
1) ManipulationProcessor API。这需要一系列触摸输入事件并告诉您总共完成了多少旋转/缩放/平移。此版本以及 C++、XNA/WinForms、Silverlight 和 WPF 的不同版本有很多配置参数 - 每个版本都针对目标开发平台量身定制
2) 更常见的是,开发人员只需使用 SDK 附带的众多 WPF 控件之一和。其中包括 ScatterView(让用户在屏幕上移动/旋转/调整多个对象的大小)以及更简单的控件(例如 SurfaceListBox 和 SurfaceScrollViewer)(让用户在列表或其他任意 UI 元素上进行简单的平移手势)。
There are 2 components:
1) A ManipulationProcessor API. This takes a series of touch input events and tells you in aggregate how much rotation/scaling/translation has been done. There are lots of configuration parameters on this and different versions for C++, XNA/WinForms, Silverlight, and WPF - each tailored towards the target development platform
2) More frequently, developers will simply work with one of the many WPF controls that the SDK comes with. These include ScatterView which fascilitates the user moving/rotating/resizing several objects around the screen and also simpler controls like SurfaceListBox and SurfaceScrollViewer which fascilitate simple translation gestures over a list or other arbitrary UI element.