概括:
在这篇文章中,我解释了如何通过 xorg.conf 文件配置轨迹球并询问我应该做什么,因为知道 xorg.conf 已被弃用。
长介绍:
我一直在 GNOME 桌面下使用 Logitech Trackman Marble 轨迹球一段时间,我对这种感觉非常满意。( http://www.logitech.com/fr-be/mice-pointers/trackballs/devices/4786 )
不幸的是,当您将它插入任何 Linux 发行版(使用 Ubuntu、OpenSuse GNOME 和 Fedora 进行测试)时,没有中间单击和滚动。只有基本的鼠标移动和左键和右键单击有效。
我想要实现的是以下内容:
通过使用以下内容创建 /etc/X11/xorg.conf 可以实现该配置:
Section "InputClass"
Identifier "Marble Mouse"
Driver "evdev"
MatchProduct "Logitech USB Trackball"
MatchDevicePath "/dev/input/event*"
MatchIsPointer "yes"
Option "ButtonMapping" "1 9 3 4 5 6 7 2 8"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "3"
Option "ZAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "Emulate3Buttons" "false"
EndSection
Run Code Online (Sandbox Code Playgroud)
问题:
1) 知道 xorg.conf …