我用steam在Arch Linux上玩CS:GO。到目前为止,除了鼠标拇指按钮外,一切正常工作。我试着在游戏中映射它们,然后我意识到游戏根本无法识别那些键。我经历了拇指按钮-向前和向后,但我认为问题是,这里的问题是,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" EndSectionsxhkd根据这问题的解决方案,可以在全球范围内抓取密钥。只有潜在的应用程序将是sxhkd,所以我终止了这个过程,并尝试了xev窗口上的拇指按钮,但是它给出了相同的结果。
我怎么才能让拇指按钮工作?
发布于 2020-03-02 05:11:48
我完全忘记了在后台运行imwheel是为了提高滚动轮的速度。鼠标按钮是由imwheel全局捕获的,但从未出现过。我可以限制imwheel捕获按钮4&5,就像这个问题的答案一样
发布于 2020-02-28 13:52:37
还不能评论,所以把这个写成答案吧。我建议使用一些已知的配置来检查另一个普通鼠标,如下面的链接所示:https://wiki.archlinux.org/index.php/Mouse_按钮
例如,它们表明,大多数Logitech MX鼠标中的拇指按钮将分解为8和9。一旦所有的操作都与另一个普通鼠标一起工作,对Zowie的故障排除可能会更清晰、更容易。
https://unix.stackexchange.com/questions/569488
复制相似问题