Listing of Xmodmap pointer versus button actions

Marius Gedminas marius at gedmin.as
Mon Mar 2 22:26:43 PST 2009


On Mon, Mar 02, 2009 at 12:52:11PM -0800, Alan Coopersmith wrote:
> R. G. Newbury wrote:
> > I have been trying to find a reference for the expected actions of mouse 
> > buttons (actually a Logitech trackball), in order to create a useful 
> > 'pointer = 1 2 3' etc. line.
> > 
> > For example what is 'pointer = 8' *supposed* to do? This action would be 
> > bound to button 1 if this line were fed to xmodmap.
> 
> It is supposed to report button 8 presses to the X clients - what the clients
> do on those is up to the client, toolkit & window manager, and is configurable
> in many of them.
> 
> There's a defacto standard that buttons ids 1 2 3 are the main mouse buttons
> (primary as 1, either leftmost or rightmost depending on whether you use your
>  mouse right-handed or left-handed, secondary as 3, and the "middle" one as 2),
> ids 4 & 5 are vertical scroll wheel events, and 6 & 7 are horizontal scroll
> wheel events - all others are just more buttons with no specific role assigned.

Buttons 8 and 9 are often interpreted as history navigation buttons
(e.g. by Firefox).

> Even what the scroll wheel does is up to the application - it can scroll your
> text area, zoom in and out on an image, go forward/back in a browser or
> perform some other application-specific function.

Marius Gedminas
-- 
"All programs evolve until they can send email."
	-- Richard Letts
"Except Microsoft Exchange."
	-- Art
(found on the Snort web site)
-------------- 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/20090303/563b98be/attachment.pgp>


More information about the xorg mailing list