在 .Net Compact Framework 中检测手指滑动

发布于 2024-07-16 16:17:59 字数 98 浏览 5 评论 0原文

正在寻找一种在 Windows Mobile 应用程序中检测手指手势的方法。 主要目标:检测用户何时在屏幕上做出向左或向右滑动的手势。 类似于用于解锁 iPhone 的滑动动作。

Looking for a way to detect finger gestures in my Windows Mobile applications. Main goal: detect when user gestures a left or right swipe across the screen. Similar to the swipe motion used to unlock an iPhone.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

染柒℉ 2024-07-23 16:17:59

MouseDown 事件发生,同时存储位置。

  1. 如果您希望在用户将手指从屏幕上移开之前做出反应,请收听 MouseMove 事件,并检查执行操作所需的相对于 MouseDown 事件的方向和距离地方。
  2. 如果您希望等待用户先将手指从屏幕上移开,请收听 MouseUp 事件并检查方向和距离。

Set a flag when a MouseDown event occurs, storing the position as well.

  1. If you wish to react before the user removes his finger from the screen, listen to MouseMove events, and check the direction and distance relative to the MouseDown event that you require for an action to take place.
  2. If you wish to wait for the user to remove his finger from the screen first, listen to MouseUp events and check the direction and distance.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文