LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   X and multiple mice (https://www.linuxquestions.org/questions/linux-software-2/x-and-multiple-mice-109619/)

m0rl0ck 10-28-2003 03:42 PM

X and multiple mice
 
I have a usb optical mouse and a usb wheel mouse and both work.
The problem is that I'd like to have one on the left side of the keyboard and one on the right side of the keyboard, configured so that the button closest to the keyboard is the click button and the button farthest away from the keyboard is the right click key.
The left mouse works fine this way, Im using xmodmap to reconfigure the keys like so:
xmodmap -e "pointer = 3 2 1 4 5"&

How do I configure the right side mouse to click for the left button and right click for the right button? xmodmap doesnt seem to have designations for different pointing devices, is there another way?

acid_kewpie 10-28-2003 04:24 PM

apparently not according to the manpage... quite possbily the second device might start it's numbering from after the first e.g. 6, 7, 8.... ? see what xev says

davecs 10-28-2003 05:46 PM

While we're on the subject I have a M$ optical wheel mouse (OK shoot me ? I also got a M$ keyboard!) which connects through PS2. I have a serial "graphics tablet" which I have not connected. Is it possible to get that going in Linux at the same time? It also has pseudo F-keys as well...

DAVE

m0rl0ck 10-28-2003 08:22 PM

Got it. In case anyone else is interested heres the solution. Apparently the device xmodmap modifies is the one devined as CorePointer, the other mouse (right side) doesnt need any modification.
Pertinent sections of my XF86Config:

##### Mouse1 is a touchpad with two buttons built into my keyboard ######

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/ttyS0"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
EndSection

Section "InputDevice"
Identifier "Mouse3"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse1"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Mouse2"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "CorePointer"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5"
EndSection

Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse2" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents"
InputDevice "Mouse3" "SendCoreEvents"
Screen "screen1"
EndSection

CanadianPenguin 10-28-2003 09:25 PM

Just curious, what do you use two mice for at the same time?

m0rl0ck 10-28-2003 09:38 PM

Sometimes I have people want to use my computer and seeing linux (flux) is bad enough but when they try to cope with linux AND a left-handed mouse, they just go right off the deep end.
Thought it might be nice to have a right handed mouse too.

davecs 10-29-2003 04:36 PM

In my case the graphics tablet acts like a mouse but is for more specialist situations for normal use the standard mouse is easier to use.

DAVE


All times are GMT -5. The time now is 08:05 AM.