C# .NET 轨迹球支持 - 但不是作为鼠标!
我想在我的 C# .NET 应用程序中使用轨迹球。但我不希望 Windows 将轨迹球用作鼠标。当我连接轨迹球和鼠标时,它们都可以控制光标。
因此,本质上有两个问题:
如何删除/禁用/诱导轨迹球放弃对光标的控制?
执行此操作后,如何从 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:
How can the trackball be removed/disabled/coaxed into giving up control of the cursor?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您需要安装一个特殊的驱动程序,该驱动程序不会将鼠标识别为鼠标,而是将其识别为流式传输移动的输入设备。
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.
我强烈推荐 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