我是steam
用来玩CS:GO
的Arch Linux
。到目前为止一切正常,但鼠标拇指按钮。我试图在游戏中映射它们,然后我意识到游戏根本无法识别这些键。我经历了拇指按钮 - 前进和后退,但我认为这里的问题evdev
是没有将拇指按钮事件识别为按钮。(我正在使用Arch Linux
++设置bspwm
)sxhkd
xev
向前拇指按钮的输出
LeaveNotify event, serial 33, synthetic NO, window 0x4c00001,
root 0x1e6, subw 0x0, time 4046616, (2,420), root:(974,442),
mode NotifyGrab, detail NotifyAncestor, same_screen YES,
focus YES, state 0
EnterNotify event, serial 33, synthetic NO, window 0x4c00001,
root 0x1e6, subw 0x0, time 4046777, (2,420), root:(974,442),
mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
focus YES, state 0
KeymapNotify event, serial 33, synthetic NO, window 0x0,
keys: 4294967270 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
xev
后拇指按钮的输出
LeaveNotify event, serial 33, synthetic NO, window 0x4a00001,
root 0x1e6, subw 0x0, time 3944070, (7,455), root:(979,477),
mode NotifyGrab, detail NotifyAncestor, same_screen YES,
focus YES, state 0
EnterNotify event, serial 33, synthetic NO, window 0x4a00001,
root 0x1e6, subw 0x0, time 3944181, (7,455), root:(979,477),
mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
focus YES, state 0
KeymapNotify event, serial 33, synthetic NO, window 0x0,
keys: 4294967270 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
我也尝试xorg
了以下配置。
Section "InputDevice"
Identifier "Evdev Mouse"
Driver "evdev"
Option "Name" "Kingsis Peripherals ZOWIE Gaming mouse"
Option "evBits" "+1-2"
Option "keyBits" "~272-287"
Option "relBits" "~0-2 ~6 ~8"
Option "Pass" "3"
Option "CorePointer"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
InputDevice "Evdev Mouse" "CorePointer"
EndSection
我试过杀人sxhkd
根据this question中的解决方案,可以全局抓取密钥。只有潜在的应用程序才会sxhkd
如此,所以我终止了该进程并尝试了xev
窗口上的拇指按钮,但它给出了与上述相同的结果。
如何让拇指按钮工作?
还不能评论,所以写这个作为答案。我建议使用一些已知配置来检查另一个常见的鼠标,如以下链接所示: https ://wiki.archlinux.org/index.php/Mouse_buttons
例如,他们在那里指出大多数罗技 MX 鼠标中的拇指按钮解析为 8 和 9。一旦一切都与其他普通鼠标一起工作,使用 Zowie 进行故障排除可能会更清晰、更容易。
我完全忘记了我
imwheel
在后台运行以提高滚轮速度。鼠标按钮被全局捕获imwheel
但从未出现。我可以限制imwheel
捕获按钮 4 和 5,就像这个问题的答案一样