PDA

View Full Version : add second USB mouse and treat input separately



windsword
9th November 2010, 03:36
I'm searching the forums for clues or code snippets on how to add two usb mice to a linux system and treat the input from each USB mouse as separate input, and not have the 2nd usb mouse behave as the primary usb mouse.

I'm trying to implement a simple push-button using the 2nd usb mouse. Another option I'm looking into is using a joystick an only track the main push-button.

We are currently using the usb PHIDGET Sensor device, but it doesn't work well under heavy and continuous use.

Any suggestions any of you an offer will be greatly appreciated.

// Sal @ Northwestern University

ChrisW67
9th November 2010, 04:46
The initial setup of multiple independent pointers in X:
http://ao2.it/en/blog/2010/01/19/poor-mans-multi-touch-using-multiple-mice-xorg
How you plumb them (or indeed if you can plumb them) into QGesture is probably covered here (http://doc.trolltech.com/latest/gestures-overview.html).