Click to See Complete Forum and Search --> : Intellimouse USB and binding side buttons


Disciple
08-26-2001, 04:45 PM
This is what I have:

Section "InputDevice"
Identifier "Mouse0"
# Modified by mouseconfig
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "IMPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

When I am done with that I excute:
xmodmap -e "pointer = 1 2 3 6 7 4 5"

Go into Q3 no luck with the side buttons. Now I this works fine with PS/2, but what I want to do is get it working with USB.

So I decided to:
xmodmap -e "pointer = 1 2 3 6 7 37 108"

108 = KP_Enter
77 = Num_Lock

No luck. For some reason it will not reassign the buttons to act as keys. Don't know, couldn't tell you. No errors, seems to take the command with out a hitch. I check it to see if they stayed, and they are there, but no go with the Q3. Any ideas.

PS
Do not give me that page link please. I have read it. Didn't help

PS2
I disabled gpm as well thinking that might help. Nada =/

PS3
With PS/2 one of the side buttons gets assigned to KP_Equal, but when I go to xmodmap -km , I can't find that key anywhere. I am assuming that is the ENTER key on the num_lock pad, but in my key list it is marked as KP_ENTER =/.

Malakin
08-26-2001, 09:21 PM
So I decided to:
xmodmap -e "pointer = 1 2 3 6 7 37 108"

108 = KP_Enter
77 = Num_Lock
Those numbers aren't scan codes. It's simply the "button number", so when X grabs a button event it's referenced with this number and all this is allowing is physical remapping.

Malakin
08-26-2001, 10:13 PM
I've been trying to map the extra buttons for a little while without using imwheel.

It apears that QT only supports 3 pointer buttons and a wheel, I'm not a qt programmer just looking through the documentation.
http://doc.trolltech.com/qmouseevent.html#de3f35

ButtonState QMouseEvent::button () const

Returns the button that caused the event.

Possible return values are LeftButton, RightButton, MidButton and NoButton.


If you do want to use imwheel to do it, edit the /etc/X11/imwheelrc file, up/down will be buttons 6 and 7, then run it like this:
imwheel -b "67"
This assumes you have the rest setup properly with the xmodmap mapping etc..

If I find some more info I'll post it.