Re: xfree and mouse buttons
On Tue, Jun 10, 2003 at 09:04:37PM +0200, LeVA wrote:
> I'm using 4.1.0 xfree, and a m$ intellimouse explorer 3.0a usb mouse.
> The mouse has 5 buttons. I want to use all of the 5 buttons, and the
> scrolling wheel too, which also has button numbers, what I must assign
> to the 'ZAxisMapping' option in the XF86Config file.
> Here is my config:
>
> Option "Buttons" "5"
> Option "ZAxisMapping" "6 7"
>
> With 'xev' I can see, that the scrolling wheel is button 6 and 7. So I
> was happy, and set up the config file like the above. There is the 5
> buttons, and the button 6th-7th for the scrolling wheel.
> Guess what, it didn't work :D
It won't. You've told X that you only have 5 buttons, then tried to
tell it what 6 and 7 do. That simply won't work. Try changing your
Buttons directive to 7.
Here's my config:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
#Option "Protocol" "ExplorerPS/2"
Option "Protocol" "MouseManPlusPS/2"
Option "Emulate3Buttons" "true"
Option "Buttons" "6"
Option "ZAxisMapping" "5 6"
EndSection
I then also do some remapping of the buttons to suit my tastes using
xmodmap:
# Physical Buttons Reported as:
# ------------------------------------
# 1 Left Button Button 1
# 2 Wheel Button Button 6
# 3 Right Button Button 3
# 4 Side Button Button 2
# 5 Wheel - Move Button 4
# 6 Wheel + Move Button 5
xmodmap -e "pointer = 1 6 3 2 4 5"
The above remapping probably won't work straight away for you, but will
give you an idea of how to go about remapping the buttons.
--
Jamin W. Collins
Remember, root always has a loaded gun. Don't run around with it unless
you absolutely need it. -- Vineet Kumar
Reply to: