哪些设备可用于在台式机上测试 WM_GESTURE 和 WM_TOUCH 代码?
我正在编写一些代码来处理 Windows 7 中的 WM_GESTURE 和 WM_TOUCH 事件,但我不知道如何测试它。我在 17" Mac Book Pro 上的 Boot Camp 中进行开发。
到目前为止,我已经确定 Windows 7 中的 Boot Camp 触控板驱动程序不会生成这些事件,并且我在 Amazon.com 声称具有“多点触控”功能,如广告所示,但不是通过创建 WM_GESTURE 或 WM_TOUCH我通过使用 Spy++ 报告事件来验证这一点;没有报告
任何类型的硬件应该生成此类事件? (Windows CE)硬件,但我希望有其他建议
可以解决这个问题 - 我想要获得类似于 Cocoa 的 [NSResponder swipeWithGesture:] 和相关方法的功能,这些方法可以报告滑动、旋转和操作。触控板上的其他手势似乎与 Windows 7 上的相同。
I'm writing some code to handle WM_GESTURE and WM_TOUCH events in Windows 7, but I can't figure out how to test it. I do my development in Boot Camp on a 17" Mac Book Pro.
So far, I have determined that the Boot Camp trackpad driver in Windows 7 does not generate those events, and this generic trackpad I found on Amazon.com that claims to be 'multi-touch' works as advertised, but not by creating WM_GESTURE or WM_TOUCH events. I verified this by using Spy++ to report the events; nothing with the WM_GESTURE or WM_TOUCH value was reported.
What kind of hardware is supposed to generate these kinds of events? At this point, I'm assuming it's only for tablet or mobile (Windows CE) hardware, but I'd appreciate any other suggestions.
I suppose there's another way to approach this -- I want to get functionality similar to Cocoa's [NSResponder swipeWithGesture:] and related methods, which report back swipes, rotation, and other gestures on the trackpad. WM_GESTURE appears to be the equivalent on Windows 7.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
另一种选择,只需要另一个物理鼠标设备即可使用,并且应该可以让您至少完成 95% 的操作 Multi-Touch Vista 项目,可以使用物理设备模拟多达 256 个触摸点 - 因此需要一个或两个额外的鼠标,因为它可能很尴尬一只手同时使用鼠标,另一只手使用触控板。
An other option, which would require only another physical mouse device to work with, and should get you at least 95% of the way there is the Multi-Touch Vista project, which can emulate up to 256 touch points using physical devices - thus the need for an extra mouse, or two since it can be awkward to simultaneously work with a mouse in one hand and trackpad with another.
有多种显示器支持 Windows 7 触摸。例如:Acer T230H。
华泰
There are several monitors out there supporting touch with Windows 7. For example: Acer T230H.
HTH
Wacom 生产了多种支持多点触控的触摸板;一个特别便宜的版本是Bamboo Touch。这使您无需购买另一台显示器即可实现触摸 - 尽管它并没有给人那种直接交互的感觉。
Wacom makes several touchpads that support multitouch; a particularly inexpensive version is the Bamboo Touch. This gives you touch without having to buy another monitor - although it doesn't give that direct interaction feeling.