LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Remapping Mouse Buttons on a MS Comfort Optical Mouse 3000 (https://www.linuxquestions.org/questions/linux-hardware-18/remapping-mouse-buttons-on-a-ms-comfort-optical-mouse-3000-a-661432/)

Seph64 08-08-2008 11:06 AM

Remapping Mouse Buttons on a MS Comfort Optical Mouse 3000
 
I hope this is in the right place, but here it goes.

I have a MS Comfort Optical Mouse 3000, and of course I want it to behave similarly to the way I have it setup in Windows.

It has a tilt/scroll wheel (it scrolls up and down normally, but also can be pressed to the right/left to scroll horizontally), and a thumb button (magnifier by default in Windows with it's software setup, but I changed it to a "back" button).

Currently the xorg.conf file has the following in the relavent sections:

Code:

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "IMPS/2"      # IntelliMouse PS/2
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping"  "4 5"
    Option "Buttons"        "8"
EndSection

The reason for "Option "Buttons" "8"" is because with middle click, scroll wheel, tilt, and thumb button (with the normal left and right buttons), the total comes to 8.

The xorg file also stated that "6&7" are normally mapped to horizontally scrolling, but the tilt wheel still does nothing when "Option "ZAxisMapping" "4 5 6 7"" is set.

Thumb buttons acts like a right click, which is not desired.

Hope someone can help me.

makuyl 08-10-2008 02:55 PM

You should try "6 7" and not "4 5 6 7". Anyway, this is what I use for an 11 button mouse:
Code:

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"              "11"
        Option          "ButtonMapping"        "1 2 3 6 7 4 5 8 9 10 11"
        Option          "Emulate3Buttons"      "true"
        Option          "Emulate3Timeout"      "70"
        Option          "SendCoreEvents"        "true"
EndSection

YMMV, so you probably have to experiment with the mapping unless you google your model and ButtonMapping. You might want to change the protocol as well to "ExplorerPS/2".


All times are GMT -5. The time now is 07:57 PM.