Listing of Xmodmap pointer versus button actions

Alan Coopersmith alan.coopersmith at sun.com
Mon Mar 2 12:52:11 PST 2009


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.
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.

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering




More information about the xorg mailing list