Jason S. on Tue, 7 Sep 1999 09:56:47 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Plug] Wheel mice


Make your wheel mouse work in X. 

I have a Microsoft intellimouse pro. Its got that wheel doodad.
To get it to work completely, first get it to work as a 3 button
mouse. In the pointer section of your XF86config, set it up as an
IntelliMouse PS/2. Then set the number of buttons to 5. There's the 
3 for pressing down on, the other 2 are wheel up and wheel down.
Finally set your ZAxisMapping to use buttons 4 and 5. When you're
done, you should have a pointer section like this:

 Section "Pointer"
	Protocol        "IMPS/2"
	Device          "/dev/mouse"
	SampleRate      150
	Resolution      400
	Buttons         5
	ZAxisMapping 4 5
EndSection

Now you can pageup/down in xterm, rxvt, whatever with the wheel. 
To get netscape to work, paste this to the bottom of your .Xdefaults:

!## NETSCAPE
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\
 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

!# NEdit
NEdit*text.Translations: #override\n\
        Shift<Btn4Down>,<Btn4Up>: scroll_up(1)\n\
        Shift<Btn5Down>,<Btn5Up>: scroll_down(1)\n\
        Ctrl<Btn4Down>,<Btn4Up>: previous_page()\n\
        Ctrl<Btn5Down>,<Btn5Up>: next_page(1)\n\
        <Btn4Down>,<Btn4Up>: scroll_up(3)\n\
________________________________________________________________________


If you have a logitech or whatever mouse, there should be a different
protocol to use for the pointer. Everything else should be the same.

Yay for boredom! :)

Jason 


--
"Every day I feel anonymous hate
Forever in the shadow of disgrace" 
												-Fear Factory





_______________________________________________
Plug maillist  -  Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug