我已经将我的系统更新到 10.10,从那时起我的“鼠标中键”(在我的笔记本电脑上,在触摸板下)被识别为我的“鼠标左键”。如果我打开xev,我可以看到我的“鼠标左键和中键”都被称为“按钮 1”。
任何人都可以解决这个问题并使我的鼠标中键再次表现得像鼠标中键吗?
https://help.ubuntu.com/community/ManyButtonsMouseHowto#Remapping%20buttons文档如何重新映射鼠标上的按钮。引用一下:
某些指点设备具有奇怪的按钮映射,因此需要进行一些调整以匹配 X 对事物的感知。这种调整可以在运行时使用 xinput 执行 - 在 xinput 列表中找到您的设备并运行 xinput set-button-map 1 2 3 6 7,将这些数字替换为您所需的按钮映射。您也许可以通过搜索具有相同硬件的其他人来找到它,或者您可能需要尝试一下,看看什么有效。
以下是 xinput(1) 手册页对 --set-button-map 选项的解释:
Run Code Online (Sandbox Code Playgroud)--set-button-map device map_button_1 [map_button_2 [...]] Change the button mapping of device. The buttons are specified in physical order (starting with button 1) and are mapped to the logical button provided. 0 disables a button. The default button mapping for a device is 1 2 3 4 5 6 etc.
这应该允许您重新映射鼠标中键,以便将其正确检测为鼠标中键。