挂钩第三的X鼠标按钮?鼠标、按钮

2023-09-04 02:52:21 作者:玛丽莲梦兔

我写了一个低级别鼠标钩子在C#中,应抓住XBUTTON事件。对于第一和第二xButton它工作得很好,但在我的鼠标没有任何消息,为第三xButton。好像没有捕捉到该按钮的事件没有可能的方式?

I wrote a low-level mouse hook in C#, which should capture XBUTTON events. For the 1st and 2nd xButton it works just fine, but there is no message for the 3rd xButton on my mouse. It seems like there is no possible way to capture events for that button?

我有一个游戏鼠标,并在那里,两个第一xButtons之间,是第三xButton。当我点击它,什么也没有发生,所以我想写一个自定义的C#鼠标钩子的应用程序编程该按钮的自定义行为...

I have a gaming mouse and there, between the two first xButtons, is a third xButton. When I click it, nothing happens, so I wanted to write a custom C# Mouse-Hook app to program a custom behaviour for that button...

推荐答案

这是正确的。第三个的X按钮是由您的鼠标驱动程序来处理,而不是Windows本身。 Windows不具备的两个以上的X按钮,内置的知识和支持。这些额外的按钮不会在所有没有安装特殊的驱动程序做任何事情。

That's correct. The third X-button is handled by your mouse drivers, not by Windows itself. Windows doesn't have built-in knowledge of or support for more than two X-buttons. Those additional buttons wouldn't do anything at all without special drivers installed.

您需要了解如何使用您的鼠标驱动程序软件进行通信。这是得到通知时这些按钮被点击的唯一途径。

You need to find out how to communicate with your mouse driver software. That's the only way to get notifications when those buttons are clicked.