如何为我的触摸板编写软件?

发布于 2024-08-11 00:42:09 字数 187 浏览 7 评论 0原文

我对触摸板的改进有一些想法,从底部水平滚动、右键点击区域到更复杂的区域。但我不知道从哪里开始?我正在使用 Windows 7 Home Premium(一台华硕笔记本电脑),但我本身没有这些选项。无论如何,我想写一些任何人都可以使用的东西。

我该从哪里开始呢?

(用c++编写会很好吗?可能吗?这里有什么要求?推荐什么语言?)

I have some ideas for improvements on my touchpad, ranging from the run of the mill scroll horizontally at the bottom, tapzones for right click, to more complicated ones. But I have no idea where to get started? I'm working on Windows 7 Home Premium, its an Asus laptop, and I have none of these options natively available to me. Regardless, I want to write something that anyone can use.

Where would I start?

(it'd be nice to write in c++? is that possible? what are the requirements here? what language would be recommended?)

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

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

发布评论

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

评论(2

恍梦境° 2024-08-18 00:42:09

您所描述的滚动功能是在触摸板驱动程序中处理的,这是特定于硬件的。但是,您可以通过使用

Scrolling functionality such as you describe is handled in touchpad drivers, which are hardware specific. However, you may be able to accomplish what you want by using a hook. This is a mechanism by which you intercept and pre-process system messages before they're sent to applications. This could allow you to designate some areas of the touchpad for extra functionality without having to write a driver. But you're probably better off seeing if there is an existing driver with the functionality you want available from the ASUS site. If your laptop didn't come with Windows 7 originally, you're probably just running a generic driver and an actual touchpad specific driver might fix your problem.

浅忆 2024-08-18 00:42:09

这取决于触摸板的硬件和驱动程序。仅仅因为 Windows 7 支持手势和多点触控,并不意味着您的触摸板会自动支持;假设硬件支持它(值得怀疑),则必须专门更新驱动程序以支持它。

如果您本身没有任何可用选项,则仅通过升级到 Windows 7 就无法自动获得它们。

如果您计划编写支持手势或多点触控的软件,那么除了投资硬件之外,您别无选择。毕竟,如果没有它,您将如何测试您的软件呢?

This is dependent on the hardware and driver for the touchpad. Just because Windows 7 supports gestures and multitouch doesn't mean that your touchpad does automatically; assuming that the hardware supports it (doubtful), the driver has to be specifically updated to support it as well.

If you have none of the options available natively, you won't automagically get them just by upgrading to Windows 7.

If you plan on writing software that supports gestures or multitouch, you have no real option other than investing in the hardware as well. After all, how will you test your software without it?

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