Can mouse buttons be mapped higher than physical count?

Daniel Stone daniel at fooishbar.org
Thu Apr 12 05:53:40 PDT 2007


On Thu, Apr 12, 2007 at 06:56:02AM -0400, Lee P. wrote:
> I'm having a problem with ButtonMapping that I hope someone can shed some 
> light on. (Using xorg 7.1.1)
> 
> I currently have three input devices, a PS/2 mouse (Mouse0 Corepointer), a 
> USB mouse (usbmouse) and a touchscreen (touchscreen).
> 
> Mouse0 has 3 physical buttons, what I'd like to do is map these higher (say 
> 7,8,9) while leaving usbmouse unaffected. No matter what I try, this won't 
> work.
> 
> Using xmodmap, changes both mice. Using xinput doesn't appear to do 
> anything.
> 
> If I do an xinput list, I see Mouse0, but if I try something like
> xinput set-button-map Mouse0 4 5 6 1 2 3,
> 
> I get an error Unable to find device "Mouse0"

Try using the device ID, instead of the name?  Then again, I've never
used xinput.

> If I try and use ButtonMapping in xorg.conf, it will use the same 
> ButtonMapping for both mice, even though they both have separate 
> ButtonMappings.

This has been fixed in xserver git, which will become xserver 1.4.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070412/9c161c9e/attachment.pgp>


More information about the xorg mailing list