"Andrew W. Gaunt" wrote:
> 
> Has anyone on this list tried  to get
> one on of those 'Intellimouse' mice with a middle button/wheel
> working with Linux. I know it will do the two button stuff OK, I'd
> like for the wheel to do something useful.

Works wonderfully.  In the Pointer section of your XF86Config file
make sure the following is set:

    Protocol    "MouseManPlusPS/2"    

    # Tell the XServer how many buttons are on the mouse

    Buttons 5

    # Tell the Xserver to send wheel events as button 4 and button 5.
    # 4 is negative movement, 5 is positive movement.

    ZAxisMapping 4 5


Most GTK applications will use the wheel mouse.  I don't think QT
(ie KDE) apps will do it without some hacking.  Netscape needs special
X resources for the wheel to work.  Eterm's and gnome-terminals work
nicely also.

Here is a listing of the X resources you need to set to get netscape
to listen to the wheel.  Just put these in your .Xdefaults file in
your home directory.  You can then merge them into your running
X session with: xrdb -merge ~/.Xdefaults
The file will be read by X automatically when X starts.  These 
and other hacks for other apps can be found out on the web somwhere.
(sorry I can't find the link)  If you use xmms, the wheel functions
as a nice volume control when the pointer is over xmms :)

Netscape*drawingArea.translations:  #replace    \
        <Btn1Down>:      ArmLink()   \n\
        <Btn2Down>:      ArmLink()   \n\
        ~Shift<Btn1Up>:  ActivateLink()  \n\
        ~Shift<Btn2Up>:  ActivateLink(new-window)  \
                                 DisarmLink()    \n\
        Shift<Btn1Up>:   ActivateLink(save-only)  \
                                 DisarmLink()    \n\
        Shift<Btn2Up>:   ActivateLink(save-only)  \
                                 DisarmLink()    \n\
        <Btn1Motion>:    DisarmLinkIfMoved()  \n\
        <Btn2Motion>:    DisarmLinkIfMoved()  \n\
        <Btn3Motion>:    DisarmLinkIfMoved()  \n\
        <Motion>:        DescribeLink()  \n\
        <Btn3Down>:      xfeDoPopup()    \n\
        <Btn3Up>:        ActivatePopup() \n\
        Ctrl<Btn4Down>:  PageUp()\n\
        Ctrl<Btn5Down>:  PageDown()\n\
        Shift<Btn4Down>: LineUp()\n\
        Shift<Btn5Down>: LineDown()\n\
        None<Btn4Down>:  LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\
        None<Btn5Down>:  
LineDown()LineDown()LineDown()LineDown()LineDown()LineDown()\n\
        Alt<Btn4Down>:   xfeDoCommand(forward)\n\
        Alt<Btn5Down>:   xfeDoCommand(back)\n

Netscape*globalNonTextTranslations: #override\n\
 Shift<Btn4Down>: LineUp()\n\
 Shift<Btn5Down>: LineDown()\n\
 <Btn4Down>:      LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\
 <Btn5Down>:      LineDown()LineDown()LineDown()LineDown()LineDown()LineDown()\n\
 Alt<Btn4Down>:   xfeDoCommand(forward)\n\
 Alt<Btn5Down>:   xfeDoCommand(back)\n

Hope this helps

-Matt

-- 
Matthew W. Herbert   x75764
Spectrum Advanced Applications
http://www.aprisma.com/
mailto:[EMAIL PROTECTED]

**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to