目次 ↑
(global (initial-mode . tmm-normal) ) (normal-mode ;; normal mode: ;; button 1 => button 1 click ;; button 2 => button 2 click ;; button 1+2 => button 3 click ;; button 5 => change to scroll mode (only vertical) (tmm-normal (button-d-1 . (button-d 1)) (button-u-1 . (button-u 1)) (button-d-2 . (button-d 2)) (button-u-2 . (button-u 2)) (button-d-1+2 . (button-d 3)) (button-u-1+2 . (button-u 3)) (button-d-5 . (scroll-mode tmm-scroll-v)) (wheel . (post-wheel-message)) ) ) (scroll-mode ;; scroll mode (only vertical) ;; button 5 release => return to normal mode (tmm-scroll-v (scroll-ratio 0.0 1.0) (button-u-5 . (normal-mode tmm-normal)) (wheel . (post-wheel-message)) ) )
(global (initial-mode . tmm-normal) ) (normal-mode ;; normal mode: ;; button 1+2 => change to scroll mode (only vertical) ;; button 4 => button 3 click ;; button 5 => button 3 click (tmm-normal (button-d-1 . (button-d 1)) (button-u-1 . (button-u 1)) (button-d-2 . (button-d 2)) (button-u-2 . (button-u 2)) (button-d-1+2 . (scroll-mode tmm-scroll-v)) (button-d-4 . (button-d 3)) (button-u-4 . (button-u 3)) (button-d-5 . (button-d 3)) (button-u-5 . (button-u 3)) (wheel . (post-wheel-message)) ) ) (scroll-mode ;; scroll mode (only vertical) ;; button 1+2 release => return to normal mode (tmm-scroll-v (scroll-ratio 0.0 1.0) (button-u-1+2 . (normal-mode tmm-normal)) (wheel . (post-wheel-message)) ) )
(global (initial-mode . tmm-normal) ) (normal-mode ;; normal mode: ;; button 2 down => change to scroll mode ;; button 1+2 => button 2 click ;; button 4 => button 3 click ;; button 5 => button 3 click (tmm-normal (button-d-1 . (button-d 1)) (button-u-1 . (button-u 1)) (button-d-2 . (scroll-mode tmm-scroll-v)) (button-d-1+2 . (button-d 2)) (button-u-1+2 . (button-u 2)) (button-d-4 . (button-d 3)) (button-u-4 . (button-u 3)) (button-d-5 . (button-d 3)) (button-u-5 . (button-u 3)) (wheel . (post-wheel-message)) ) ) (scroll-mode ;; scroll mode (only vertical) ;; button 2 up => return to normal mode (tmm-scroll-v (scroll-ratio 0.0 1.0) (button-u-2 . (normal-mode tmm-normal)) (wheel . (post-wheel-message)) ) )
Section "InputClass" Identifier "Marble Mouse" MatchProduct "Logitech USB Trackball" MatchIsPointer "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "ButtonMapping" "1 2 3 4 5 6 7 2 2" Option "EmulateWheel" "true" Option "EmulateWheelButton" "3" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "false" EndSection
Section "InputClass" Identifier "Marble Mouse" MatchProduct "Logitech USB Trackball" MatchIsPointer "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "ButtonMapping" "1 2 3 4 5 6 7 2 9" Option "EmulateWheel" "true" Option "EmulateWheelButton" "9" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "false" EndSection