触摸屏编程问题

发布于 2024-08-03 11:30:32 字数 213 浏览 3 评论 0 原文

假设我有一个支持单指触摸的触摸屏,使用基于软件的解决方案(例如编程来检测多指触摸和移动)使触摸屏支持多点触摸是否很困难?

就像我买了一部便宜的单指触摸手机,通过编程我让它像 iPhone、Gphone 或其他很酷的东西(支持多点触控)一样工作。 :-)

我正在使用 VSTS 2008 + C# + .Net 3.5。我是认真问的,不是开玩笑。如果我很愚蠢并且方向错误,请纠正我。

Suppose I have a touch screen which supports single finger touch, is it very hard to use software based solution (e.g. programming to detect multi-finger touch and movement) to make the touch screen support multi-touch?

Just like I bought a cheap single finger touch cell phone and through programming I make it work as iPhone, Gphone or what so ever cool (supporting multi-touch). :-)

I am using VSTS 2008 + C# + .Net 3.5. I am asking seriously, not joking. Please correct me if I am stupid and on a wrong direction.

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

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

发布评论

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

评论(2

旧时浪漫 2024-08-10 11:30:32

这可能取决于您的设备的驱动程序接收到的信息类型。如果来自触摸面板的原始数据可用,那么您也许能够获得一些额外的信息并进行一些伪多点触摸。

然而,我的直觉是单点触控界面将像标准 USB 或 PS/2 鼠标一样配置自身。这样做是为了简化驱动程序接口——制造商将能够通过已经建立的协议公开硬件。

如果您想要购买一款设备,您可以随时联系制造商,询问他们可以向您提供哪些附加信息。

It would likely depend upon what sort of information the driver for your device receives. If raw data from the touch panel is available, then you might be able to get some extra information and do some pseudo multi-touch.

My gut feeling, however, is that a single-touch interface will configure itself like a standard USB or PS/2 mouse. This would be done to simplify the driver interface - the manufacturer would be able to expose the hardware via already-established protocols.

If you have a device in mind you could always contact the manufacturer and ask them what sort of additional information they might be able to feed to you.

烙印 2024-08-10 11:30:32

触摸在 .NET 3.5 中并不存在。但好消息是,我很确定 4.0 工具集(特别是 WPF 4.0,请参阅此处)。

在 3.5 中,我亲自唯一一次看到良好的触摸支持是当我使用“surface”设备和 Surface SDK 时;请注意,Surface SDK与常规触摸 API 兼容(尽管我认为他们已经尝试将两者结合在一起)。

哦,我怀疑你需要 Windows 7。

Touch isn't hugely "there" in .NET 3.5; but the good news is that I'm pretty sure it is much better supported in the 4.0 toolset (WPF 4.0 in particular, see here).

In 3.5, the only time I've personally seen good touch support is when I was using a "surface" device and the surface SDK; note that the surface SDK is not compatible with the regular touch API (although I think they've tried to bring the two together).

Oh, and I suspect you'll need windows 7.

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