blob: 68ed69216f8512c2847680f9d34e21480abdf9ff [file] [log] [blame]
Section "InputClass"
Identifier "generic mouse for Chromium OS"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
# Map mouse vertical scroll wheel to buttons 8 and 9.
# These scroll button events are only used for mice and processed slightly
# differently in Chrome than buttons 4 and 5, which are used for trackpad
# scrolling.
# Unfortunately, this disables mouse wheel scrolling in the crosh shell.
Option "ButtonMapping" "1 2 3 8 9"
# 3-Button Mouse emulation, while useful for copy/paste, causes mouse
# clicks to miss their targets when the mouse is moving quickly.
# This is particularly noticeable on quick click+drags.
Option "Emulate3Buttons" "false"
Option "AccelerationProfile" "8" # Chromium accel profile
Option "VelocityScale" "1"
Option "ConstantDeceleration" "1000"
Option "Evdev Wheel Button Acceleration" "0"
Option "Evdev Wheel Axes Acceleration" "1"
# Some mice expose Absolute axes, which take precedence over relative,
# which causes all axes valuator labels to be absolute. E.g., we get
# ABS_X instead of REL_X for horizontal movement. This is especially
# bad for scroll wheel activity, b/c Chrome looks for specific
# relative valuators for that; if absolute valuators are used, scroll
# wheel won't work.
Option "IgnoreAbsoluteAxes" "true"
EndSection