Button number assignments - where are they specified?

Chris G cl at isbd.net
Mon Aug 23 12:22:26 UTC 2010


On Sun, Aug 22, 2010 at 04:08:05PM -0700, NoOp wrote:
> On 08/22/2010 07:01 AM, Chris G wrote:
> > Where are the mouse button actions defined?  I.e. where is it defined
> > that a double-click of button 1 will select a word and a single click 
> > of button 2 (middle) will paste it?
> > 
> > Alternatively (and better for what I want to do probably) where are    
> > the button numbers assigned to 'Left', 'Middle' and 'Right'?
> > 
> 
> Short answer is on Lucid I don't know. However, you might try:
> http://packages.ubuntu.com/lucid/gpointing-device-settings

Hmm, still doesn't allow me to assign functions to buttons, all it
does is emulate other things with the existing buttons.


> and
> <http://www.google.com/search?hl=en&complete=0&q=ubuntu+%2Blucid+%2Bmouse+configuration&btnG=Search>
> 
That might be useful but hacking around with xorg.conf isn't really my
cup of tea.  :-)


> Also in https://help.ubuntu.com/ search for 'xorg +mouse +10.04'
> and you might find some helpful info that may not apply directly to your
> mouse, but may give you some hints on how to configure. Example:
> https://help.ubuntu.com/community/Logitech_Marblemouse_USB
> 
I had found that last one already, unfortunately it only does some of
what I'm trying to do. The remapping of the mouse buttons is actually
much easier if you use xmodmap, just put the following in the .Xmodmap
file and it happens automagically:-

    pointer = 1 8 3 4 5 6 7 2 9 10

But the other bit I want to do is assign the "select a word" to button
9 rather than having it assigned to a double-click of button 1.  Doing
the other way about (making button 9 pretend to be a double-click of
button 1) is a messy bodge which I got working in 9.04 and 9.10 but no
longer works in 10.04.

-- 
Chris Green





More information about the ubuntu-users mailing list