出于某种原因,我想倒置使用轨迹球 Logitech(又名 Logicool)大理石鼠标(又名 Trackman Marble)。有没有办法在不修改硬件的情况下分别在软件方面反转左右滚动和上下滚动?我通过编写一个配置文件来尝试这个,/etc/X11/xorg.conf.g/
例如
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "8"
Option "XAxisMapping" "6 7"
Option "Emulate3Buttons" "true"
Option "ButtonMapping" "1 2 3 5 4 7 6 2 2"
EndSection
Run Code Online (Sandbox Code Playgroud)
关键是我切换了键 4 和 5 以及 6 和 7,而不是:
Option "ButtonMapping" "1 2 3 4 5 6 7 2 2"
Run Code Online (Sandbox Code Playgroud)
我有:
Option "ButtonMapping" "1 2 3 5 4 7 6 2 2"
Run Code Online (Sandbox Code Playgroud)
但这不起作用,这可能仅对滚轮仿真模式有效。我怎样才能逆转滚动?
在游戏中,我们只是将其称为“反转鼠标”。
Option "InvX" "boolean"
Invert the X axis. Default: off.
Option "InvY" "boolean"
Invert the Y axis. Default: off.
Run Code Online (Sandbox Code Playgroud)