--- In solarisx86@yahoogroups.com, Cyril Plisko <cyril.plisko@c...> wrote:
> I recall some time ago there was a discussion on configuring
> additional button on modern mice. Can someone hint how to do it ?
> I have a Logitech MouseMan Wheel mouse and its thumb button
> acts as button 4, which is same as scrolling wheel up.
> I'd like to assign something different to it.
The following should work: use the Xsun "wheelmaps" feature to map the
mouse wheel scroll events to button events for buttons that do *not*
exist as physical mouse buttons. For a four button mouse, use buttons
5 & 6 (instead of the standard 4 & 5).
See
<URL:http://blogs.sun.com/roller/page/alanc/20040716#wheel_mouse_support_for_sol\
aris1>
for the wheelmaps syntax. Almost the same "wheelmaps" syntax should
work with my PS/2 wheel mouse drivers
<URL:http://www.tools.de/solaris/ps2wheel/>.
Then use xmodmap to create a pointer button map, to shuffle around the
the buttons, so that the thumb button 4 is remapped to button 6, and
the scroll button events 5 & 6 get remapped to buttons 4 & 5 (4 & 5
are the buttons most X11 applications expect for mouse wheel scroll
events):
xmodmap -e "pointer = 1 2 3 6 4 5"'