# Configure the Kensington trackball
[...]
Section "InputClass"
Identifier "Trackball Wheel Emulation"
MatchProduct "Kensington Trackball Slimblade"
MatchDevicePath "/ dev / input / event *"
# Enable the mouse wheel emulation (similar to the navigation mode)
Option "EmulateWheel" "true"
# Upper-right button to trigger the navigation mode
Option "EmulateWheelButton" "8"
# Make it work for vertical and horizontal scroll Both
Option "XAxisMapping" "June 7"
Option "YAxisMapping" "4 5"
# Remap the buttons a little bit, since firefox will use
# 8 as button back button and that's not what I want
Option "ButtonMapping" "1 2 3 4 5 6 7 10 9 8 11 12"
EndSection