C# .NET 轨迹球支持 - 但不是作为鼠标!

发布于 2024-11-07 23:33:06 字数 315 浏览 0 评论 0原文

我想在我的 C# .NET 应用程序中使用轨迹球。但我不希望 Windows 将轨迹球用作鼠标。当我连接轨迹球和鼠标时,它们都可以控制光标。

因此,本质上有两个问题:

  1. 如何删除/禁用/诱导轨迹球放弃对光标的控制?

  2. 执行此操作后,如何从 C# .NET 应用程序访问轨迹球移动信息。

谢谢你!!

Ash

PS:我特别想要轨迹球支持,但希望操纵杆支持类似,因为我将来可能会扩展到此功能。由于操纵杆默认不控制光标,我可以看到这可能有何不同......也许更容易?

I want to use a trackball in my C# .NET application. But I do not want the trackball to be used by Windows as a mouse. When I connect both a trackball and a mouse the are both given control of the cursor.

So there are essentially two questions:

  1. How can the trackball be removed/disabled/coaxed into giving up control of the cursor?

  2. After doing this how can I access the trackball movement information from my C# .NET application.

Thank you!!

Ash

PS: I specifically want trackball support, but am hoping that joystick support will be similar as I may expand to this functionality in the future. Since the joystick does not default to having control of the cursor I can see how this may be different...perhaps easier?

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

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

发布评论

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

评论(2

谈下烟灰 2024-11-14 23:33:06

我认为您需要安装一个特殊的驱动程序,该驱动程序不会将鼠标识别为鼠标,而是将其识别为流式传输移动的输入设备。

Windows 驱动程序工具包可能会有所帮助。它说他们有一个HID 设备示例

I would think you need to install a special driver that would not identify the mouse as a mouse, but as an input device that streams the movement.

The windows driver kit might help. It says they have a HID device example.

爱给你人给你 2024-11-14 23:33:06

我强烈推荐 Edward Tse 的 SDG Toolkit(单一桌面组件工具包)。几年前,我将它用于需要多个鼠标和显示器的应用程序。

您还可以获取 C# 源代码:http://grouplab.cpsc。 ucalgary.ca/cookbook/index.php/Toolkits/SDGSourceCode

I highly recommend Edward Tse's SDG Toolkit (Single Desktop Groupware Toolkit). I used it several years ago for an application that required multiple mice and monitors.

You can also get the C# source code: http://grouplab.cpsc.ucalgary.ca/cookbook/index.php/Toolkits/SDGSourceCode

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