让拇指按钮正常工作 |佐维EC2-B

让拇指按钮正常工作 |佐维EC2-B

我用的是steam玩.到目前为止,除了鼠标拇指按钮之外,一切正常。我尝试在游戏中映射它们,然后我意识到游戏根本无法识别这些键。我浏览了拇指按钮 - 前进和后退,但我认为这里的问题是没有将拇指按钮事件识别为按钮。 (我正在使用++设置)CS:GOArch LinuxevdevArch Linuxbspwmsxhkd

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

根据解中问题是,钥匙可以在全球范围内被获取。唯一潜在的应用程序是,sxhkd所以我杀死了该进程并尝试了xev窗口上的拇指按钮,但它给出了与上面提到的相同的结果。

如何让拇指按钮正常工作?

答案1

还不能发表评论,所以将此写为答案。我建议使用其他常见鼠标使用一些已知的配置进行检查,如以下链接所示: https://wiki.archlinux.org/index.php/Mouse_buttons

例如,它们表明大多数 Logitech MX 鼠标中的拇指按钮解析为 8 和 9。 一旦一切都与其他常见鼠标配合使用,使用 Zowie 进行故障排除可能会更清晰、更容易。

答案2

我完全忘记了我是imwheel在后台运行来提高滚轮速度的。鼠标按钮被全局捕获imwheel但从未出来。我可以限制imwheel捕获按钮 4 和 5,如答案所示这个问题

相关内容