I’m hoping some people can help me with this.
I have a crappy Logitech mouse with a tendency to register middle clicks when I scroll with the combined scroll wheel and middle click button.
I thought I’d fix this by disabling the middle click on the scroll wheel, and enabling middle click emulation, and I also thought this would be as simple as:
$ xinput --set-button-map 14 1 0 3 4 5 6 7 # disabling the middle button
$ xinput --set-prop 14 'Evdev Middle Button Emulation' 1 # enabling middle click emulation`
(Where 14 is the device number for the mouse in question.)
However, it seems that if the middle button is disabled, so is the emulation.
The same thing happens if I try to achieve the same thing with this bit of X config:
Section "InputClass"
Identifier "Enable 3-button emulation"
MatchProduct "Logitech USB Receiver"
MatchIsPointer "True"
Option "ButtonMapping" "1 0 3 4 5 6 7"
Option "Emulate3Button" "True"
EndSection
Does anyone have an idea on how to achieve this, i.e. to turn off the real middle button and instead using middle button emulation?