Configuration
反轉軌跡球的方向
出於某種原因,我想倒置使用軌跡球羅技(又名 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
關鍵部分是我切換了鍵 4 和 5 以及 6 和 7,而不是:
Option "ButtonMapping" "1 2 3 4 5 6 7 2 2"
我有:
Option "ButtonMapping" "1 2 3 5 4 7 6 2 2"
但這不起作用,這可能僅對滾輪仿真模式有效。我怎樣才能扭轉滾動?
在遊戲中,我們只是將其稱為“反轉滑鼠”。
Option "InvX" "boolean" Invert the X axis. Default: off. Option "InvY" "boolean" Invert the Y axis. Default: off.
如果您使用
xinput
如下方式,是一種反轉滾動的方法:xinput set-button-map "Logitech USB Trackball" 1 2 3 4 5 6 7 8 9 xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 8 xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1 xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5 xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation X Axis" 8 6 xinput set-int-prop "Logitech USB Trackball" "Evdev Drag Lock Buttons" 8 9